Closed soypat closed 1 week ago
Please use forums for help: https://forums.raspberrypi.com/viewforum.php?f=143
but no, this is not a silicon bug; you are using the wrong register; 0x14 is the offset of the "SET" register which turns GPIO on per bit set, leaving the others unmodified (so if you write 0, you make no changes)
You are right- sorry for the noise. Using GPIO_OUT register works as expected.
I've written the following program in Go that blinks the LED via raw writes to registers. Setting the GPIO_OUT of the LED (pin 25) on the pico turns the LED on, but when we write 0 to the register to clear all the bits it does not turn off.
Writing to GPIO_OUT_CLR does turn the LED off, and this is in effect what pico-sdk does to turn LEDs off. Is this an issue with the silicon?