Compare commits
2 commits
e023b45118
...
ec9e9f09ee
Author | SHA1 | Date | |
---|---|---|---|
ec9e9f09ee | |||
9c1fd5f7dd |
3 changed files with 5 additions and 1 deletions
|
@ -353,6 +353,9 @@ void display_standingDisarmedDisplay(ESCSerialComm& escFront, ESCSerialComm& esc
|
|||
if (control_buttonB){
|
||||
display.print(" B");
|
||||
}
|
||||
if (button_start_state){
|
||||
display.print(" S");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include <Adafruit_NeoPixel.h>
|
||||
|
||||
|
||||
#define LED_PIN 3
|
||||
#define LED_PIN 20
|
||||
#define LED_COUNT 16
|
||||
|
||||
// NeoPixel brightness, 0 (min) to 255 (max)
|
||||
|
|
|
@ -610,6 +610,7 @@ void readButtons() {
|
|||
static bool button_start_wait_release_flag=false;
|
||||
bool last_button_start_state=button_start_state;
|
||||
|
||||
|
||||
if (loopmillis > button_start_lastchange+DEBOUNCE_TIME) { //wait some time after last change
|
||||
if (digitalRead(PIN_PWRBUTTON) && !button_start_state) { //start engine button pressed and was not pressed before
|
||||
button_start_state=true; //pressed
|
||||
|
|
Loading…
Add table
Reference in a new issue