POWERPIN -> BUTTON_POWER_PIN
This commit is contained in:
parent
41ab2ebf0d
commit
eb78801b22
@ -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
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#define SERIAL_SPEED 115200
|
||||
|
||||
/** BOUTON **/
|
||||
#define POWERPIN 2
|
||||
#define BUTTON_POWER_PIN 2
|
||||
#define BUTTON_PIN 8
|
||||
|
||||
int buttonState;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user