Using the example code from the Sipping Power with Neopixels Guide

Play with it! Please tell us which board you're using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
laffingskull
 
Posts: 11
Joined: Tue Sep 13, 2022 11:19 am

Using the example code from the Sipping Power with Neopixels Guide

Post by laffingskull »

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!
Attachments
sketch_errors.txt
(140.6 KiB) Downloaded 6 times

User avatar
Franklin97355
 
Posts: 23911
Joined: Mon Apr 21, 2008 2:33 pm

Re: Using the example code from the Sipping Power with Neopixels Guide

Post by Franklin97355 »

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>

User avatar
laffingskull
 
Posts: 11
Joined: Tue Sep 13, 2022 11:19 am

Re: Using the example code from the Sipping Power with Neopixels Guide

Post by laffingskull »

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.

User avatar
laffingskull
 
Posts: 11
Joined: Tue Sep 13, 2022 11:19 am

Re: Using the example code from the Sipping Power with Neopixels Guide

Post by laffingskull »

I rebooted the IDE and reconnected everything after all those lib installs and updates. It is now working! Thank you!

User avatar
Franklin97355
 
Posts: 23911
Joined: Mon Apr 21, 2008 2:33 pm

Re: Using the example code from the Sipping Power with Neopixels Guide

Post by Franklin97355 »

Great! Glad it worked and I was able to help you. Program on!

Locked
Please be positive and constructive with your questions and comments.

Return to “Circuit Playground Classic, Circuit Playground Express, Circuit Playground Bluefruit”