#Hi Neradoc 2644 Thanks for answering The
1 messages · Page 1 of 1 (latest)
hmmm can you add a print in the code ? like that
import board
import digitalio
import neopixel
pixel = neopixel.NeoPixel(board.NEOPIXEL, 1)
button = digitalio.DigitalInOut(board.BUTTON)
button.switch_to_input(pull=digitalio.Pull.UP)
while True:
if not button.value:
print("pressed")
pixel.fill((255, 0, 0))
else:
pixel.fill((0, 0, 0))
and see if it shows in the serial panel when you press boot
Look at that, nothing prints and no lights light. I think the code isn't runnning.
if it sits at "code.py output" then some code is running
if it reloads when you save, that's on the right drive, add a print at the start to see it show up if you are unsure of editing the right file
Yes, it does sit at :code.py output:
does it say "Code stopped by auto-reload. Reloading soon." and restart when you make a change and save ?
Yes it does say "Code stopped..."
ok, so maybe we have a defective boot button ?
I added a print statement :while True:
#print ("Foo")
if not button.value:
print("pressed")
pixel.fill((255, 0, 0))
else:
pixel.fill((0, 0, 0))
and it prints foo but not pressed when pressing
what happens if you hold down the boot button and press reset, does the CIRCUITPY drive come back up ?
When I hold boot and press reset nothing happens
nothing ? it should reset the board at minimum, disconnect the serial panel, the CIRCUITPY drive disappears ?
Nothing blinks, no USB connecting noise, No change on the Mu serial window.
and pressing reset alone, still nothing ?
Reset button press, doesn't do anything either.
and if you unplug it and plug it back you see the status LED go purple then yellow ?
(which is what you should see when pressing reset alone)
Unplugging and plugging in the usb cable makes it blink purple then yellow
ok so it looks like the buttons don't work at all
Weird how it will still run wifi and network programs.
if you plug the board while holding boot, does it do something different ?
(it should not show leds or a drive)
Holding the boot button while plugging in shows the purple and yellow flashes.
ok the buttons seem busted, so you should post in the support forums explaining the situation, a support person might do more troubleshooting, and can then authorize a replacement https://forums.adafruit.com/viewforum.php?f=19
but that seems pretty clear cut to me
Thanks so much @sly mantle, it's great to have you around🫂
you can link me the forum post here