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