davecheney / gpio

GPIO for Go
BSD 2-Clause "Simplified" License
228 stars 52 forks source link

Support pull up/down resistor for RPi #19

Open samuel opened 9 years ago

samuel commented 9 years ago

The sleep values are somewhat arbitrary (not sure what they should be in reality), but I think it's fine since the Python RPi library just does a NOP for 150 cycles. I tested this with some buttons on the GPIO.