POWERPIN -> BUTTON_POWER_PIN
This commit is contained in:
parent
41ab2ebf0d
commit
eb78801b22
@ -53,8 +53,8 @@ void setup() {
|
|||||||
|
|
||||||
/** BOUTON **/
|
/** BOUTON **/
|
||||||
// powering button
|
// powering button
|
||||||
pinMode(POWERPIN, OUTPUT);
|
pinMode(BUTTON_POWER_PIN, OUTPUT);
|
||||||
digitalWrite(POWERPIN, HIGH);
|
digitalWrite(BUTTON_POWER_PIN, HIGH);
|
||||||
// initialize the pushbutton pin as an input:
|
// initialize the pushbutton pin as an input:
|
||||||
pinMode(BUTTON_PIN, INPUT);
|
pinMode(BUTTON_PIN, INPUT);
|
||||||
buttonState = 0;
|
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.
|
// Add entropy to random number generator; we use a lot of it.
|
||||||
random16_add_entropy(random());
|
random16_add_entropy(random());
|
||||||
Fire2012(); // run simulation frame
|
Fire2012(); // run simulation frame
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#define SERIAL_SPEED 115200
|
#define SERIAL_SPEED 115200
|
||||||
|
|
||||||
/** BOUTON **/
|
/** BOUTON **/
|
||||||
#define POWERPIN 2
|
#define BUTTON_POWER_PIN 2
|
||||||
#define BUTTON_PIN 8
|
#define BUTTON_PIN 8
|
||||||
|
|
||||||
int buttonState;
|
int buttonState;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user