back to normal
This commit is contained in:
parent
a9f098097c
commit
5b197288bc
@ -1 +1 @@
|
||||
Subproject commit 2edc89a3a9926c9ae870a69933696b3933f6c520
|
||||
Subproject commit 23e06c06a6026801a856141f64a6de54dd493b47
|
@ -139,8 +139,8 @@ void Treppe::setup(){
|
||||
// Deactive PCA9685 Phase Balancer due to LED Flickering
|
||||
// https://github.com/NachtRaveVL/PCA9685-Arduino/issues/15
|
||||
// see also lib/PCA9685-Arduin/PCA9685.h:204
|
||||
//pwmController.init(PCA9685_PhaseBalancer_None);
|
||||
pwmController.init(PCA9685_PhaseBalancer_Linear);
|
||||
pwmController.init(PCA9685_PhaseBalancer_None);
|
||||
//pwmController.init(PCA9685_PhaseBalancer_Linear);
|
||||
pwmController.setPWMFrequency(100);
|
||||
pwmController.setAllChannelsPWM(idle_brightness);
|
||||
|
||||
@ -199,7 +199,6 @@ void Treppe::task(){
|
||||
|
||||
ledsequence();
|
||||
|
||||
Serial.printf("LDR raw: %d\n", analogRead(A0));
|
||||
}
|
||||
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include "PCA9685.h"
|
||||
|
||||
#define SENSOR1 16
|
||||
#define SENSOR1 2
|
||||
#define SENSOR2 12
|
||||
#define OE 14
|
||||
|
||||
@ -12,8 +12,8 @@ class Treppe {
|
||||
private:
|
||||
uint8_t stairs;
|
||||
uint16_t time_per_stair = 300; // dimmtime per stair [ms]
|
||||
uint16_t idle_brightness = 0;
|
||||
uint16_t active_brightness = 3000;
|
||||
uint16_t idle_brightness = 100;
|
||||
uint16_t active_brightness = 2048;
|
||||
|
||||
uint8_t direction = 0;
|
||||
uint8_t switch_direction = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user