From 4e57bc9b55f44f907d60927a086390cfc820d124 Mon Sep 17 00:00:00 2001 From: Julien Cabillot Date: Wed, 17 Jul 2019 19:28:20 -0400 Subject: [PATCH] SYNC WIP --- arduino/alarmclock/alarmclock.cpp | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/arduino/alarmclock/alarmclock.cpp b/arduino/alarmclock/alarmclock.cpp index c832985..e6e7cc9 100644 --- a/arduino/alarmclock/alarmclock.cpp +++ b/arduino/alarmclock/alarmclock.cpp @@ -259,15 +259,7 @@ void ledDisplay() fill_solid(leds, LED_NUM, color); FastLED.setBrightness(breath); - /* Debug - EVERY_N_SECONDS(1) { - Debug.print(breath); - Debug.print(" | "); - Debug.print(curbrightness); - Debug.print("/"); - Debug.println(maxBrightness); - } - */ + fps++; if (SHOW_FPS) { EVERY_N_SECONDS(1) { @@ -279,6 +271,16 @@ void ledDisplay() FastLED.show(); } +/** + * On test déjà à pleine puissance. + */ +void ledDisplayTest() +{ + fill_solid(leds, LED_NUM, color); + FastLED.setBrightness(maxBrightness); + FastLED.show(); +} + void loop() { // OTA ArduinoOTA.handle(); @@ -306,7 +308,8 @@ void loop() { } } - ledDisplay(); + //ledDisplay(); + ledDisplayTest(); } } }