#Hi Neradoc 2644 Thanks for answering The

1 messages · Page 1 of 1 (latest)

light talon
#

No lights are on

sly mantle
#

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

light talon
#

Look at that, nothing prints and no lights light. I think the code isn't runnning.

sly mantle
#

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

light talon
#

Yes, it does sit at :code.py output:

sly mantle
#

does it say "Code stopped by auto-reload. Reloading soon." and restart when you make a change and save ?

light talon
#

Yes it does say "Code stopped..."

sly mantle
#

ok, so maybe we have a defective boot button ?

light talon
#

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

sly mantle
#

what happens if you hold down the boot button and press reset, does the CIRCUITPY drive come back up ?

light talon
#

When I hold boot and press reset nothing happens

sly mantle
#

nothing ? it should reset the board at minimum, disconnect the serial panel, the CIRCUITPY drive disappears ?

light talon
#

Nothing blinks, no USB connecting noise, No change on the Mu serial window.

sly mantle
#

and pressing reset alone, still nothing ?

light talon
#

Reset button press, doesn't do anything either.

sly mantle
#

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)

light talon
#

Unplugging and plugging in the usb cable makes it blink purple then yellow

sly mantle
#

ok so it looks like the buttons don't work at all

light talon
#

Weird how it will still run wifi and network programs.

sly mantle
#

if you plug the board while holding boot, does it do something different ?

#

(it should not show leds or a drive)

light talon
#

Holding the boot button while plugging in shows the purple and yellow flashes.

sly mantle
#

but that seems pretty clear cut to me

light talon
#

Thanks so much @sly mantle, it's great to have you around🫂

sly mantle
#

you can link me the forum post here