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
Adafruit lightsaber
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_carter
- Posts: 29150
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Adafruit lightsaber
Are you saving the code as code.py in your CIRCUITPY folder?
- Enriquecast
- Posts: 9
- Joined: Mon Jan 11, 2021 7:13 pm
Re: Adafruit lightsaber
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
- adafruit_support_carter
- Posts: 29150
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Adafruit lightsaber
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.
- Enriquecast
- Posts: 9
- Joined: Mon Jan 11, 2021 7:13 pm
Re: Adafruit lightsaber
I re ran the repl right now and now it says code done running
- adafruit_support_carter
- Posts: 29150
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Adafruit lightsaber
Try changing your code.py to just:
and verify you can see that output.
Code: Select all
print("hello")
- Enriquecast
- Posts: 9
- Joined: Mon Jan 11, 2021 7:13 pm
Re: Adafruit lightsaber
I ran it with the code you told me to try and it said the same thing code done running.
- adafruit_support_carter
- Posts: 29150
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Adafruit lightsaber
And you never saw "hello" printed? Just a message that says code done running?
- adafruit_support_carter
- Posts: 29150
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Adafruit lightsaber
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?
How are you interacting with the board? Using Mu? Something else?
- adafruit_support_carter
- Posts: 29150
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Adafruit lightsaber
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.
https://learn.adafruit.com/welcome-to-c ... 2977482-44
if you have any of: code.txt, main.py, main.txt
delete them.
- Enriquecast
- Posts: 9
- Joined: Mon Jan 11, 2021 7:13 pm
Re: Adafruit lightsaber
alright thank you.
Please be positive and constructive with your questions and comments.