|
|
|
|
|
|
|
|
|
|
|
|
|
|
void Treppe::setup(){ |
|
|
void Treppe::setup(){ |
|
|
pwmController.resetDevices(); |
|
|
pwmController.resetDevices(); |
|
|
pwmController.init(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Deactive PCA9685 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.setPWMFrequency(200); |
|
|
pwmController.setPWMFrequency(200); |
|
|
Serial.println("Hello from Treppe"); |
|
|
Serial.println("Hello from Treppe"); |
|
|
Serial.print("Treppe: initial parameters: stairs="); |
|
|
Serial.print("Treppe: initial parameters: stairs="); |