led control and signaling -wip-

in_progress_old_board
JbLb 5 years ago
parent 059e4d41b9
commit 97261dd6e6

@ -108,8 +108,7 @@ bool rel_marche = true;
#define LED_PIN 7
#define NUM_LEDS 2
#define BRIGHTNESS 64
#define LED_TYPE WS2812
#define LED_TYPE WS2812B
#define COLOR_ORDER GRB
CRGB leds[NUM_LEDS];
@ -132,7 +131,11 @@ void setup()
if (consigne_speed > MAX_SPEED) {
consigne_speed = MAX_SPEED ;
}
LEDS.addLeds<LED_TYPE,LED_PIN,COLOR_ORDER>(leds,NUM_LEDS);
LEDS.setBrightness(64);
leds[0] = CRGB(255,0,0);
LEDS.show();
Serial.begin(SERIAL_BAUD);
if (Serial) {
Serial.println(VERSION_TAG);
@ -365,6 +368,8 @@ void loop(void)
speed_control();
}
LEDS.show(); // update LEDS
// Nunchuk_control();
// Blink the LED
digitalWrite(LED_BUILTIN, (timeNow % 2000) < 1000);

Loading…
Cancel
Save