From f6811b0fad708e62bbee5a900acbf3dcfceca527 Mon Sep 17 00:00:00 2001 From: jblb Date: Wed, 8 Dec 2021 17:11:37 +0100 Subject: [PATCH] plus de commantaires gestion du bouton dans amination 1 --- src/CycloTiny85.ino | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/CycloTiny85.ino b/src/CycloTiny85.ino index 01b5572..e828205 100644 --- a/src/CycloTiny85.ino +++ b/src/CycloTiny85.ino @@ -105,6 +105,8 @@ if (run_mod){ break; } } + if (breaked) break; + if (check_button()) break; delay(tempo_anim); for (int i = 0; i < NUM_LEDS; i++) { leds[i] = CRGB::Green; @@ -121,18 +123,23 @@ if (run_mod){ if (check_button()) break; } } + +// dual color if (run_mod) { for (int i = 0; i < 5; i++) { dual_color(CRGB::Red, CRGB::Green, tempo_anim); if (check_button()) break; } - } +} +// Xmas if (run_mod){ for (int i = 0; i < 20; i++) { xmas( tempo_anim); if (check_button()) break; } } + +// aller-retour if (run_mod){ int i =1; int j= 0;