Can someone help me with my code,

Can someone help me with my code, it errors out with expected } at end of input

#include <FastLED.h>
#define NUM_LEDS_TURNLEFT 50
#define NUM_LEDS_TURNRIGHT 50
#define NUM_LEDS_BRAKE 50
#define LEFTTURN_PIN 5
#define RIGHTTURN_PIN 4
#define BRAKE_PIN 3
#define BRIGHTNESS 75
#define LED_TYPE NEOPIXEL
#define COLOR_ORDER GRB
#define UPDATES_PER_SECOND 75
CRGB leftTurnStrip[NUM_LEDS_TURNLEFT];
CRGB rightTurnStrip[NUM_LEDS_TURNRIGHT];
CRGB brakeStrip[NUM_LEDS_BRAKE];
CRGBPalette16 currentPalette;
TBlendType currentBlending;
const int pin12 = 12;
const int pin11 = 11;
const int pin10 = 10;
const int pin9 = 9;
const int pin8 = 8;
const int pin7 = 7;
const int pin6 = 6;
const int pin5 = 5;

void setup() {
// put your setup code here, to run once:
delay(3000);
FastLED.addLeds<LED_TYPE, LEFTTURN_PIN>(leftTurnStrip, NUM_LEDS_TURNLEFT);
FastLED.addLeds<LED_TYPE, RIGHTTURN_PIN>(rightTurnStrip, NUM_LEDS_TURNRIGHT);
FastLED.addLeds<LED_TYPE, BRAKE_PIN>(brakeStrip, NUM_LEDS_BRAKE);
FastLED.setBrightness(BRIGHTNESS);
currentPalette = RainbowStripeColors_p;
currentBlending = NOBLEND;
pinMode(pin12, INPUT_PULLUP);
pinMode(pin11, INPUT_PULLUP);
pinMode(pin10, INPUT_PULLUP);

}

void leftTurnStripFill (CRGB color, uint8_t from, uint8_t to) {
for (uint8_t i = from; i <= to; i++) {
leftTurnStrip[i] = color;
}
}

void rightTurnStripFill (CRGB color, uint8_t from, uint8_t to) {
for (uint8_t i = from; i <= to; i++) {
rightTurnStrip[i] = color;
}
}

void brakeStripFill (CRGB color, uint8_t from, uint8_t to) {
for (uint8_t i = from; i <= to; i++) {
brakeStrip[i] = color;
}
}

/void leftStripWipe {
for(int i = NUM_LEDS_TURNLEFT; i++) {
leftTurnStrip[i] = CRGB::Red;
FastLED.show();
leftTurnStrip[i] = CRGB::Red;
FastLED.show();
delay(5);
}
}
/

void loop() {
// put your main code here, to run repeatedly:
int d12 = digitalRead(pin12);
int d11 = digitalRead(pin11);
int d10 = digitalRead(pin10);
{
if (d12 == 1 && d11 == 1 && d10 == 1) {
leftTurnStripFill(CRGB::Black, 0, 50);
rightTurnStripFill(CRGB::Black, 0, 50);
brakeStripFill(CRGB::Black, 0, 50);
FastLED.show();
}

{
  if (d12 == 0 && d11 == 1 && d10 == 1) {
    for (int i = 0; i < NUM_LEDS_TURNLEFT; i++) {
      leftTurnStrip[i] = CRGB::Red;
      FastLED.show();
    }
  }

From a quick look, in your main loop, looks like you have unneeded { above both lines that start with “if (d12…”, and then you’re missing the closing } at the bottom for the main loop.

If you encounter this type of error again, here’s a good trick…

Put your cursor immediately after a { within your program text. You will see a small box appear around what the IDE thinks is the corresponding }

The reverse is also true, put your cursor immediately after a } and you will see a small box appear around what the IDE thinks is the corresponding {

Note that with larger programs, you may need to page-up or page-down to see it.

Note also that if you are missing a { or a } you would not see that small box around any curly brace.

Thank you, thats exactly what i had done right before you commented actually. forgot the ide would do that.

Very good code so far, Are you using arduino to control the SPI leds RGB?

Yes, Im using an arduino nano