#include <FastLED.h>
/*********************************************
/* Modifié pour K SIGN WILLERS LE 19-11-2021 */
/*********************************************/
#define LED_PIN 8 // Output pin for LEDs [6]
#define COLOR_ORDER GRB // Color order of LED string [RGB]
#define CHIPSET WS2811 // LED string type [WS2811]
#define BRIGHTNESS 50 // Overall brightness [50]
#define LAST_VISIBLE_LED 135 // Last LED that's visible [135]
#define MAX_MILLIAMPS 5000 // Max current in mA to draw from supply [500]
#define SAMPLE_WINDOW 100 // How many ms to sample audio for [100]
#define BTN_PIN 3 // Pin for button [3]
#define DEBOUNCE_MS 20 // Number of ms to debounce the button [20]
#define LONG_PRESS 500 // Number of ms to hold the button to count as long press [500]
#define PATTERN_TIME 10 // Seconds to show each pattern on autoChange [10]
#define kMatrixWidth 7 // Matrix width [15]
#define kMatrixHeight 13 // Matrix height [11]
#define NUM_LEDS 182 // Total number of Leds
#define MAX_DIMENSION ((kMatrixWidth>kMatrixHeight) ? kMatrixWidth : kMatrixHeight) // Largest dimension of matrix
CRGB leds[ NUM_LEDS + 1 ];
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
FastLED.addLeds<CHIPSET, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS).setCorrection(TypicalSMD5050);
FastLED.setBrightness( BRIGHTNESS );
//Serial.begin(115200);
FastLED.clear();
FastLED.show();
/*leds[0]=CRGB(0, 64, 255);
leds[1]=CRGB::Red;
leds[2]=CRGB(4, 255, 0);
FastLED.show();*/
int i;
for(i=0; i<=NUM_LEDS;i++){
if(i%2!=0){
leds[i] = CRGB(255, 0, 0);
}
}
//leds[135] = CRGB::Red;
FastLED.show();
}
void loop() {
// put your main code here, to run repeatedly:
}