Help Needed for NeoPixel Program on CP Classic

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
Ryan2638
 
Posts: 1
Joined: Mon Apr 11, 2022 2:03 am

Help Needed for NeoPixel Program on CP Classic

Post by Ryan2638 »

Hello all,

I would like to preface that I am new to programming, and I have no idea what I'm doing. Referring to the Adafruit article here: https://learn.adafruit.com/circuit-play ... playground.

I'm trying to get the CP Classic LEDs to execute a "breathing" animation for a Dungeons and Dragons table set that I've custom made via Tinkercad and then 3D printed. I can't seem to get an altered bitmap to convert to code. I don't know what technical part I'm missing, but I have successfully taken each step up until this point. I put *NOTE for my side notes for you as you read.

"Now, you can adjust the animation. Open the neoAnim.png file in an image editor, such as Preview on OSX or MS Paint on Windows, or GIMP on Linux, and make some changes, such as the color of the non-black pixels. Save the file (it's OK to overwrite, you can redownload the original here). *NOTE: Did this without issue (MS Paint).

In order to convert the new version of neoAnim.png to the neoAnim.h file, you'll need to follow these steps:

1. Install Python 3.5 https://www.python.org/downloads/ *NOTE: I have 3.10.
2. Add the Pillow or PIL imaging library to Python http://pillow.readthedocs.io/en/3.0.x/installation.html *NOTE: In place of PIL no longer existing, I downloaded a Pillow fork version 9.0 for Python 3.10 (https://pillow.readthedocs.io/en/stable/index.html)
3. Open a command shell and navigate to the NeoAnim directory inside your Arduino sketches directory
4. type the command to convert the bitmap: python convert.py neoAnim.png > neoAnim.h"

I have the latest Python, Arduino, and a Pillow port installed.
I've tried typing the command to convert the bitmap, but I keep getting the same error message:

"Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "Adafruit Circuit Playground Classic"

NeoAnim:80:1: error: 'python' does not name a type

python convert.py neoAnim.png > neoAnim.h

^~~~~~

Multiple libraries were found for "Adafruit_CircuitPlayground.h"

Used: C:\Users\ryan2\Documents\Arduino\libraries\Adafruit_Circuit_Playground

Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\libraries\Adafruit_Circuit_Playground

Multiple libraries were found for "Wire.h"

Used: C:\Users\ryan2\Documents\ArduinoData\packages\adafruit\hardware\avr\1.4.15\libraries\Wire

Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\libraries\Wire

exit status 1

'python' does not name a type


This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences."

I have no idea what this means and I am beyond confused. Perhaps I'm just doing it wrong? Any help would be greatly appreciated.

User avatar
rpiloverbd
 
Posts: 198
Joined: Mon Nov 29, 2021 8:13 am

Re: Help Needed for NeoPixel Program on CP Classic

Post by rpiloverbd »

Here you can see how to fix the 'Does not name a type' error. https://moviecultists.com/does-not-name ... uino-error

Looks like the multiple library message is not an error. It means the wire.h libraries have been installed twice or more in your Arduino library. I suggest you go to the location where you have installed the Arduino IDE and open the 'libraries' folder and check. This issue has been discussed here: https://forum.arduino.cc/t/multiple-lib ... h/495253/8

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

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