Browse Source

Le rouge et en haut et le bleu en bas

main
Alex 2 years ago
parent
commit
aefe036889
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/my_leds.h

+ 2
- 2
src/my_leds.h View File

for (int i = 0; i <= (int) ((LED_COUNT/2) * value / 100); i++) { for (int i = 0; i <= (int) ((LED_COUNT/2) * value / 100); i++) {
// DEFINITION DE LA COULEUR // DEFINITION DE LA COULEUR
int value = 255 - i * 255/(LED_COUNT/2); int value = 255 - i * 255/(LED_COUNT/2);
color.R = value;
color.R = 255 - value;
color.V = 0; color.V = 0;
color.B = 255 - value;
color.B = value;




// ALLUMAGE DU BATON DE LEDS // ALLUMAGE DU BATON DE LEDS

Loading…
Cancel
Save