First version - rotary not working.

This commit is contained in:
Holger Weber
2026-05-15 00:34:46 +02:00
commit 088eb07ff3
11 changed files with 321 additions and 0 deletions

15
include/PulseTimer.h Normal file
View File

@@ -0,0 +1,15 @@
#pragma once
#include <stdint.h>
namespace trbc {
constexpr uint16_t kMinTimerMs = 2000;
constexpr uint16_t kMaxTimerMs = 10000;
constexpr uint16_t kTimerStepMs = 100;
uint16_t clampTimerMs(int valueMs);
uint16_t adjustTimerMs(uint16_t currentMs, int ticks);
uint16_t tasmotaPulseTimeValue(uint16_t timerMs);
} // namespace trbc

8
include/config.example.h Normal file
View File

@@ -0,0 +1,8 @@
#pragma once
// Copy this file to include/config.h and adjust the values for your network.
#define WIFI_SSID "your-wifi"
#define WIFI_PASSWORD "your-password"
#define TASMOTA_HOST "192.168.1.50"
#define INITIAL_TIMER_MS 5000

9
include/config.h Normal file
View File

@@ -0,0 +1,9 @@
#pragma once
// Local defaults. Adjust for your network or keep this file out of version control
// if the project is moved into a shared repository.
#define WIFI_SSID "Sternenlabor"
#define WIFI_PASSWORD "!Sternenlabor99!"
#define TASMOTA_HOST "192.168.240.101"
#define INITIAL_TIMER_MS 5000