mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-12 15:03:41 +00:00
avr: implement Get() function on AVR, and leave stubs for NRF and dummy machines
Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
committed by
Ayke van Laethem
parent
ec50db729d
commit
ab6757fe11
@@ -39,3 +39,9 @@ func (p GPIO) Set(high bool) {
|
||||
nrf.P0.OUTCLR = 1 << p.Pin
|
||||
}
|
||||
}
|
||||
|
||||
// Get returns the current value of a GPIO pin.
|
||||
func (p GPIO) Get() bool {
|
||||
// TODO: implement
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user