|
|
|
@ -53,8 +53,8 @@ void setup() { |
|
|
|
|
|
|
|
/** BOUTON **/ |
|
|
|
// powering button
|
|
|
|
pinMode(POWERPIN, OUTPUT); |
|
|
|
digitalWrite(POWERPIN, HIGH); |
|
|
|
pinMode(BUTTON_POWER_PIN, OUTPUT); |
|
|
|
digitalWrite(BUTTON_POWER_PIN, HIGH); |
|
|
|
// initialize the pushbutton pin as an input:
|
|
|
|
pinMode(BUTTON_PIN, INPUT); |
|
|
|
buttonState = 0; |
|
|
|
@ -77,6 +77,8 @@ void loop() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** LEDS **/ |
|
|
|
// TODO : il faudra ici conditioner l'animation au fait que le button n'ai pas été pressé
|
|
|
|
// Add entropy to random number generator; we use a lot of it.
|
|
|
|
random16_add_entropy(random()); |
|
|
|
Fire2012(); // run simulation frame
|
|
|
|
|