exit status 1
‘leds’ was not declared in this scope
#include <bitswap.h>
#include <chipsets.h>
#include <color.h>
#include <colorpalettes.h>
#include <colorutils.h>
#include <controller.h>
#include <cpp_compat.h>
#include <dmx.h>
#include <FastLED.h>
#include <fastled_config.h>
#include <fastled_delay.h>
#include <fastled_progmem.h>
#include <fastpin.h>
#include <fastspi.h>
#include <fastspi_bitbang.h>
#include <fastspi_dma.h>
#include <fastspi_nop.h>
#include <fastspi_ref.h>
#include <fastspi_types.h>
#include <hsv2rgb.h>
#include <led_sysdefs.h>
#include <lib8tion.h>
#include <noise.h>
#include <pixelset.h>
#include <pixeltypes.h>
#include <platforms.h>
#include <power_mgt.h>
#include <FastLED.h>
#define DATA_PIN 2
#define CLOCK_PIN 3
#define LED_PIN 2
#define NUM_LEDS 50
#define LED_TYPE WS2811
#define MAX_BRIGHTNESS 255
#define BRIGHTNESS 255
void setup() {
Serial.begin(9600); //enables serial output for debugging
FastLED.addLeds<WS2811, LED_PIN, RGB>(leds, NUM_LEDS).setCorrection( TypicalLEDStrip );
FastLED.setBrightness(BRIGHTNESS);
}
void loop() {
step(1);
for(int x = 0; x < 5; x = x + 1)
face();
delay(5000);
void leds_init()
{
for ( int x = 0; x < NUM_LEDS; x=x+1 ) {
leds[x] = CRGB::Black;
}
FastLED.show();
}
void face(){
for(int x = 0; x < NUM_LEDS; x = x + 1){
leds[1] = CRGB::Red;
FastLED.delay(500)
leds[2] = CRGB::Red;
FastLED.delay(500)
leds[43] = CRGB::Red;
FastLED.delay(500)
leds[44] = CRGB::Red;
FastLED.delay(500)
}