diff options
author | Ayke van Laethem <[email protected]> | 2019-04-28 18:49:17 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2019-05-26 20:48:50 +0200 |
commit | 94b8214529f1cebad2cc45b5c1820695a7dd8201 (patch) | |
tree | 62ea7f3171ba0a3f106998e2ddc8ed1c7e799f59 /README.md | |
parent | 421ef04efb87889d73d5b404202a655f41d2e1e4 (diff) | |
download | tinygo-94b8214529f1cebad2cc45b5c1820695a7dd8201.tar.gz tinygo-94b8214529f1cebad2cc45b5c1820695a7dd8201.zip |
machine: refactor pins to be of Pin type
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -17,8 +17,8 @@ import ( ) func main() { - led := machine.GPIO{machine.LED} - led.Configure(machine.GPIOConfig{Mode: machine.GPIO_OUTPUT}) + led := machine.LED + led.Configure(machine.PinConfig{Mode: machine.PinOutput}) for { led.Low() time.Sleep(time.Millisecond * 1000) |