aboutsummaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2019-04-28 18:49:17 +0200
committerRon Evans <[email protected]>2019-05-26 20:48:50 +0200
commit94b8214529f1cebad2cc45b5c1820695a7dd8201 (patch)
tree62ea7f3171ba0a3f106998e2ddc8ed1c7e799f59 /README.md
parent421ef04efb87889d73d5b404202a655f41d2e1e4 (diff)
downloadtinygo-94b8214529f1cebad2cc45b5c1820695a7dd8201.tar.gz
tinygo-94b8214529f1cebad2cc45b5c1820695a7dd8201.zip
machine: refactor pins to be of Pin type
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 36f0bf22f..b0b281dbe 100644
--- a/README.md
+++ b/README.md
@@ -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)