Adafruit lightsaber

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Enriquecast
 
Posts: 9
Joined: Mon Jan 11, 2021 7:13 pm

Adafruit lightsaber

Post by Enriquecast »

Hi I started working on the lightsaber project by the Ruiz brothers. My code isn’t working properly. When I run the repl is says when I run the repl it says


soft reboot

Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.


Code done running.

Adafruit CircuitPython 6.1.0 on 2021-01-21; Adafruit Feather M4 Express with samd51j19
>>>

Sorry I am very new to coding and this is my first time working on a project like this. I followed the guide and have everything wired. My only changes I made are I substituted the led lights for some alitove fully adressable ones. Any help is appreciated. Thanks

User avatar
adafruit_support_carter
 
Posts: 29150
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit lightsaber

Post by adafruit_support_carter »

Are you saving the code as code.py in your CIRCUITPY folder?

User avatar
Enriquecast
 
Posts: 9
Joined: Mon Jan 11, 2021 7:13 pm

Re: Adafruit lightsaber

Post by Enriquecast »

Yes I think the problem I have is downloading the nessecary drivers it says it needs such as the adafruit_bus_device, adafruit_lis3dh, and neopixel. The drivers didn’t come pre installed in the lib folder

User avatar
adafruit_support_carter
 
Posts: 29150
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit lightsaber

Post by adafruit_support_carter »

It should still try and run code.py. If there are missing libraries, you'd see error messages. Your output looks like there is no code.py to run, so it just drops right into REPL.

User avatar
Enriquecast
 
Posts: 9
Joined: Mon Jan 11, 2021 7:13 pm

Re: Adafruit lightsaber

Post by Enriquecast »

I re ran the repl right now and now it says code done running

User avatar
adafruit_support_carter
 
Posts: 29150
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit lightsaber

Post by adafruit_support_carter »

Try changing your code.py to just:

Code: Select all

print("hello")
and verify you can see that output.

User avatar
Enriquecast
 
Posts: 9
Joined: Mon Jan 11, 2021 7:13 pm

Re: Adafruit lightsaber

Post by Enriquecast »

I ran it with the code you told me to try and it said the same thing code done running.

User avatar
adafruit_support_carter
 
Posts: 29150
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit lightsaber

Post by adafruit_support_carter »

And you never saw "hello" printed? Just a message that says code done running?

User avatar
Enriquecast
 
Posts: 9
Joined: Mon Jan 11, 2021 7:13 pm

Re: Adafruit lightsaber

Post by Enriquecast »

Yes

User avatar
adafruit_support_carter
 
Posts: 29150
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit lightsaber

Post by adafruit_support_carter »

OK, it sounds like either the wrong file is being edited, or it's being put in the wrong place. Otherwise you'd see the output from the code.py.

How are you interacting with the board? Using Mu? Something else?

User avatar
Enriquecast
 
Posts: 9
Joined: Mon Jan 11, 2021 7:13 pm

Re: Adafruit lightsaber

Post by Enriquecast »

Yes I’m using mu

User avatar
adafruit_support_carter
 
Posts: 29150
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit lightsaber

Post by adafruit_support_carter »

Check and make sure code.py is the only file in the CIRCUITPY folder and that you don't have any of these other possible "auto run" file names.
https://learn.adafruit.com/welcome-to-c ... 2977482-44
if you have any of: code.txt, main.py, main.txt
delete them.

User avatar
Enriquecast
 
Posts: 9
Joined: Mon Jan 11, 2021 7:13 pm

Re: Adafruit lightsaber

Post by Enriquecast »

alright thank you.

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

Return to “General Project help”