zero duty cycle fix

This commit is contained in:
2021-06-25 15:41:34 +02:00
parent 38c81ae182
commit 33499beb32
2 changed files with 9 additions and 6 deletions
+4 -3
View File
@@ -5,12 +5,13 @@
#define SENSOR1 15
#define SENSOR2 12
#define INT_TIME 20 // interrupt intervall [ms]
class Treppe {
private:
uint8_t stairs;
uint16_t time_per_stair = 300; // dimmtime per stair [ms]
uint16_t idle_brightness = 200;
uint16_t active_brightness = 2048;
uint16_t time_per_stair = 200; // dimmtime per stair [ms]
uint16_t idle_brightness = 0;
uint16_t active_brightness = 1048;
uint8_t direction = 0;
uint8_t switch_direction = 0;