go-rpio
go-rpio copied to clipboard
[BUG] Issues using SPI and GPIO with
I am porting over the python for the waveshare 128x128 1.44in GPIO LCD display (ST7735S
),
The pins that control the buttons are by default, value 1 when no input is provided, and are dropped to value 0
The moment i use a SPI function from this library, pins 21 and 20 (key 1 and key2 respectively) are set to 0
and their state cannot be altered until either the pi Reboots, or i run the original python code, which has a gpio.cleanup
function that fixes this issue on runtime.
https://pastebin.com/L1kJXVax < main.go https://pastebin.com/3mBfE0JD < lcd.go
Same problem here. I'm trying to let the raspberry pi 3 talk with arduino UNO, sending a simple word ("hello") from the pi 3. Once the program terminates, the SPI pins on the pi 3 are set to low.
which has a gpio.cleanup function that fixes this issue on runtime
I think that a similar function in this library would be a fix.