1
0
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:
deadprogram 2016-02-09 15:38:17 -08:00
parent 7c355b8dcd
commit f8f6dfeb0b

View File

@ -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{}) {