Hello!
I recently bought a Circuit Playground to test out some of the concepts from the Sipping Power With NeoPixels guide for a dotstar matrix project I will be working on. The provided code to use alongside the guide errors out when verifying the sketch.
I've attached the error log, I am not sure where to start with debugging this. Nothing has been done to modify the existing code here. I am very green with coding, I can follow concepts at surface level so you'll have to forgive me if the answer here is an obvious one. Thank you!
Using the example code from the Sipping Power with Neopixels Guide
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- laffingskull
- Posts: 11
- Joined: Tue Sep 13, 2022 11:19 am
Using the example code from the Sipping Power with Neopixels Guide
- Attachments
-
- sketch_errors.txt
- (140.6 KiB) Downloaded 12 times
- Franklin97355
- Posts: 23940
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Using the example code from the Sipping Power with Neopixels Guide
Make sure you have the latest software and libraries installed. I just tried to verify the code and was successful so you may have errors in your code. What board are you compiling this for?
// Sketch to accompany "Sipping Power With NeoPixels" guide. Designed for
// Adafruit Circuit Playground but could be adapted to other projects.
#include <Adafruit_CircuitPlayground.h>
// Sketch to accompany "Sipping Power With NeoPixels" guide. Designed for
// Adafruit Circuit Playground but could be adapted to other projects.
#include <Adafruit_CircuitPlayground.h>
- laffingskull
- Posts: 11
- Joined: Tue Sep 13, 2022 11:19 am
Re: Using the example code from the Sipping Power with Neopixels Guide
I am compiling this for the Circuit Playground Classic. I just verified that I am on 1.8.19 of the IDE, and installed the latest cores for the Arduino boards too. I have the latest version of Adafruit_CircuitPlayground.h library installed. The demo code that comes with the Circuit Playground library works when compiled and uploaded. Would I be missing something? The code doesn't call for any other libraries. Debugging hard stops at "mode_off," as it was not declared in the scope.
- laffingskull
- Posts: 11
- Joined: Tue Sep 13, 2022 11:19 am
Re: Using the example code from the Sipping Power with Neopixels Guide
I rebooted the IDE and reconnected everything after all those lib installs and updates. It is now working! Thank you!
- Franklin97355
- Posts: 23940
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Using the example code from the Sipping Power with Neopixels Guide
Great! Glad it worked and I was able to help you. Program on!
Please be positive and constructive with your questions and comments.