0

Adafruit lightsaber
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Adafruit lightsaber

by Enriquecast on Mon May 03, 2021 1:43 pm

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

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

Re: Adafruit lightsaber

by adafruit_support_carter on Mon May 03, 2021 2:21 pm

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

adafruit_support_carter
 
Posts: 20372
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit lightsaber

by Enriquecast on Mon May 03, 2021 3:59 pm

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

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

Re: Adafruit lightsaber

by adafruit_support_carter on Mon May 03, 2021 4:15 pm

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.

adafruit_support_carter
 
Posts: 20372
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit lightsaber

by Enriquecast on Mon May 03, 2021 4:52 pm

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

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

Re: Adafruit lightsaber

by adafruit_support_carter on Mon May 03, 2021 4:59 pm

Try changing your code.py to just:
Code: Select all | TOGGLE FULL SIZE
print("hello")

and verify you can see that output.

adafruit_support_carter
 
Posts: 20372
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit lightsaber

by Enriquecast on Sun May 09, 2021 12:11 am

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

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

Re: Adafruit lightsaber

by adafruit_support_carter on Mon May 10, 2021 10:07 am

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

adafruit_support_carter
 
Posts: 20372
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit lightsaber

by Enriquecast on Mon May 10, 2021 2:22 pm

Yes

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

Re: Adafruit lightsaber

by adafruit_support_carter on Mon May 10, 2021 2:30 pm

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?

adafruit_support_carter
 
Posts: 20372
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit lightsaber

by Enriquecast on Fri May 14, 2021 12:26 pm

Yes I’m using mu

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

Re: Adafruit lightsaber

by adafruit_support_carter on Fri May 14, 2021 4:25 pm

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.

adafruit_support_carter
 
Posts: 20372
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit lightsaber

by Enriquecast on Wed May 26, 2021 6:53 pm

alright thank you.

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

Please be positive and constructive with your questions and comments.