11. Arduino Blink using Gobot
Read the sample code, to understand how Gobot works.
$ vim ~/go/src/github.com/kerkerj/arduino_gobot/arduino.go
(or sample code from gobot.io)
read more:
● type Gobot
● type Robot
18. In my demo
● I used Echo to create API endpoints to controll Sphero.
○ Another micro web framework for Go.
● Use http request to set Sphero’s color or tell Sphero to roll...etc.
19. Sphero Demo
$ j gtg15
$ cd bin && ./sphero
$ open http://localhost:5566