0

Lightsaber Error Codes
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Lightsaber Error Codes

by 3DPrintJunkee on Sat Jun 25, 2022 6:22 pm

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

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

Re: Lightsaber Error Codes

by dastels on Sat Jun 25, 2022 7:06 pm

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-circuitpython/kattni-connecting-to-the-serial-console
https://learn.adafruit.com/welcome-to-circuitpython/interacting-with-the-serial-console
https://learn.adafruit.com/welcome-to-circuitpython/the-repl

Dave

dastels
 
Posts: 10546
Joined: Tue Oct 20, 2015 3:22 pm

Re: Lightsaber Error Codes

by 3DPrintJunkee on Sun Jun 26, 2022 8:10 am

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

Line 16 is import neopixel

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

Re: Lightsaber Error Codes

by 3DPrintJunkee on Sun Jun 26, 2022 8:27 am

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

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

Re: Lightsaber Error Codes

by dastels on Sun Jun 26, 2022 9:35 am

Cool.

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

Dave

dastels
 
Posts: 10546
Joined: Tue Oct 20, 2015 3:22 pm

Please be positive and constructive with your questions and comments.