mirror of
https://github.com/hybridgroup/gobot.git
synced 2025-04-27 13:48:56 +08:00
Use newer naming system for C.H.I.P. pins
This commit is contained in:
parent
7c355b8dcd
commit
f8f6dfeb0b
@ -49,7 +49,7 @@ func main() {
|
||||
gbot := gobot.NewGobot()
|
||||
|
||||
chipAdaptor := chip.NewChipAdaptor("chip")
|
||||
button := gpio.NewButtonDriver(chipAdaptor, "button", "U14_13")
|
||||
button := gpio.NewButtonDriver(chipAdaptor, "button", "XIO-P0")
|
||||
|
||||
work := func() {
|
||||
gobot.On(button.Event("push"), func(data interface{}) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user