Lightsaber Error Codes

Wearable electronics: boards, conductive materials, and projects from Adafruit!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
3DPrintJunkee
 
Posts: 3
Joined: Sat Jun 25, 2022 6:10 pm

Lightsaber Error Codes

Post by 3DPrintJunkee »

Hi,
Working on this build ( https://learn.adafruit.com/lightsaber-f ... g?view=all ) and have all connections made.
When I power up the board flashes 4 times yellow and 2 times red.
I am assuming this is some sort of error code but I don't know where to find these codes to troubleshoot myself.

Any assistance would be greatly appreciated.
Thanks

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: Lightsaber Error Codes

Post by dastels »

That is an error code.

Can you post what you see in the REPL when the code runs? That should give a better idea of what's happening.

If you aren't familiar with using the REPL (or even just the serial connection), see
https://learn.adafruit.com/welcome-to-c ... al-console
https://learn.adafruit.com/welcome-to-c ... al-console
https://learn.adafruit.com/welcome-to-c ... n/the-repl

Dave

User avatar
3DPrintJunkee
 
Posts: 3
Joined: Sat Jun 25, 2022 6:10 pm

Re: Lightsaber Error Codes

Post by 3DPrintJunkee »

File "code.py", line 16, in <module>
MpyError: Incompatible .mpy file.

Line 16 is import neopixel

User avatar
3DPrintJunkee
 
Posts: 3
Joined: Sat Jun 25, 2022 6:10 pm

Re: Lightsaber Error Codes

Post by 3DPrintJunkee »

Got it!!!
Just had to update the librairies.

I had to plug it in to my laptop and run Mu to get the Serial Console to work (Windows 10)
The Serial Console wouldn't work on my PC using Windows 11.

Weird but all good now.
Thanks

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: Lightsaber Error Codes

Post by dastels »

Cool.

Yeah, that's weird about Win11. Anti-virus software might be blocking it.

Dave

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

Return to “Wearables”