|
|
|
|
|
|
|
|
// 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.setPWMFrequency(200); |
|
|
|
|
|
|
|
|
//pwmController.init(PCA9685_PhaseBalancer_Linear); |
|
|
|
|
|
pwmController.setPWMFrequency(100); |
|
|
pwmController.setAllChannelsPWM(idle_brightness); |
|
|
pwmController.setAllChannelsPWM(idle_brightness); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pinMode(A0, INPUT); |
|
|
pinMode(SENSOR1, INPUT); |
|
|
pinMode(SENSOR1, INPUT); |
|
|
pinMode(SENSOR2, INPUT); |
|
|
pinMode(SENSOR2, INPUT); |
|
|
pinMode(OE, OUTPUT); |
|
|
pinMode(OE, OUTPUT); |
|
|
|
|
|
|
|
|
last_sensor_state[1] = current_sensor_state[1]; |
|
|
last_sensor_state[1] = current_sensor_state[1]; |
|
|
|
|
|
|
|
|
ledsequence(); |
|
|
ledsequence(); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|