first approach with sensor controlled led sequence

This commit is contained in:
2021-06-25 10:55:27 +02:00
parent 2b2a135bd5
commit b7ba521c59
3 changed files with 56 additions and 10 deletions
+5
View File
@@ -2,6 +2,9 @@
#include "PCA9685.h"
#define SENSOR1 15
#define SENSOR2 12
class Treppe {
private:
uint8_t stairs;
@@ -10,8 +13,10 @@ class Treppe {
uint16_t active_brightness = 2048;
uint8_t direction = 0;
uint8_t switch_direction = 0;
uint8_t state = 0;
uint8_t switch_state = 0;
uint8_t finish = 1;
// initialize with i2c-Address 0, use Wire Library
PCA9685 pwmController;