ajust BTN & Led pins

in_progress_old_board
JbLb 5 years ago
parent ddfa0582d8
commit 059e4d41b9

@ -31,9 +31,9 @@
// *******************************************************************
#define VERSION_TAG "V test 0.1"
#define BTN_PLUS 2
#define BTN_MOINS 3
#define BTN_MARCHE 4
#define BTN_PLUS 4
#define BTN_MOINS 5
#define BTN_MARCHE 6
#define MAX_SPEED 300
@ -106,8 +106,8 @@ bool rel_marche = true;
// ################ Led definition ########################
#define LED_PIN 5
#define NUM_LEDS 1
#define LED_PIN 7
#define NUM_LEDS 2
#define BRIGHTNESS 64
#define LED_TYPE WS2812
#define COLOR_ORDER GRB
@ -126,6 +126,9 @@ void setup()
pinMode(LED_BUILTIN, OUTPUT);
consigne_speed = EEPROMReadInt(eeprom_address);
if (consigne_speed < 0) {
consigne_speed =0;
}
if (consigne_speed > MAX_SPEED) {
consigne_speed = MAX_SPEED ;
}

Loading…
Cancel
Save