First version - rotary not working.
This commit is contained in:
15
include/PulseTimer.h
Normal file
15
include/PulseTimer.h
Normal 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
8
include/config.example.h
Normal 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
9
include/config.h
Normal 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
|
||||
Reference in New Issue
Block a user