Fix several bugs
This commit is contained in:
@@ -123,7 +123,10 @@ void loop() {
|
||||
switch (run_rgbprog) {
|
||||
case RGB_INIT: { // just started running a program
|
||||
digitalWrite(PIN_LED_PWRENA, HIGH); // enable LED power supply,
|
||||
delay(20); // wait a moment for LEDs to stabilize,
|
||||
delay(15); // wait a moment for LEDs to stabilize,
|
||||
/*for (uint16_t i = 0; i < (8000000UL / 4 / 1000) * 20; i++) {
|
||||
asm("nop");
|
||||
}*/
|
||||
|
||||
rgbprog_idx++; // select the next program in sequence,
|
||||
if (rgbprog_idx >= PROG_COUNT) {
|
||||
|
||||
Reference in New Issue
Block a user