Other post/duplicate DELETED
Please do NOT cross post / duplicate as it wastes peoples time and efforts to have more than one post for a single topic.
Continued cross posting could result in a time out from the forum.
ballscrewbob: Other post/duplicate DELETED
Please do NOT cross post / duplicate as it wastes peoples time and efforts to have more than one post for a single topic.
Continued cross posting could result in a time out from the forum.
If your code is too long to post, people probably won't want to spend their time digging through it. Especially, if it's messy and contains too much stuff unrelated to your problem.
The best thing is to post an MCVE. This is the smallest possible complete code that demonstrates the exact problem you're seeing and includes nothing unrelated to your problem.
gfvalvo:
If your code is too long to post, people probably won’t want to spend their time digging through it. Especially, if it’s messy and contains too much stuff unrelated to your problem.
The best thing is to post an MCVE. This is the smallest possible complete code that demonstrates the exact problem you’re seeing and includes nothing unrelated to your problem.
// Fast LED
FastLED.addLeds<WS2812B, DATA_PIN, CLOCK_PIN, LED_COLOR_ORDER>(leds, 300);
FastLED.setBrightness(BRIGHTNESS);
FastLED.setDither(1);
The code at the GitHub you linked: GitHub - Critters/TWANG: Arduino-based 1D dungeon crawler is using an APA102 LED strip. Those LEDS have data and clock inputs. The WS2812B LED you're specifying in your code do not use a clock pin. Yet, you're trying to tell FastLED that it does. So, the compiler is correct, you're trying to call a function that doesn't exist for the LEDs you've specified.
WS2812B does not have a clock line, only a data line.
Remove CLOCK_PIN.
gfvalvo:
The code at the GitHub you linked: GitHub - Critters/TWANG: Arduino-based 1D dungeon crawler is using an APA102 LED strip. Those LEDS have data and clock inputs. The WS2812B LED you’re specifying in your code do not use a clock pin. Yet, you’re trying to tell FastLED that it does. So, the compiler is correct, you’re trying to call a function that doesn’t exist for the LEDs you’ve specified.
This worked! Thanks so much. Now that the LEDs are working, there are no errors. The only problem is the gyroscope - it doesn’t seem to be letting me move the player, even though the light is on on it. I have the GND plugged into GND, VCC in 3.3V, SCL and SCA in the two at the end of the PWM side, I’ve tried moving the SCL and SDA to lots of different pins and nothing seems to work, and INT in 2. Do you have any idea why it wouldn’t be working? Thanks again!