Slide 1

Slide 1 text

Edmonton Go August 2014

Slide 2

Slide 2 text

WiFi powered by Telus

Slide 3

Slide 3 text

Teams Nine Spheros Go Git

Slide 4

Slide 4 text

Sphero Wake up Three colors Sphero-RGB

Slide 5

Slide 5 text

Bluetooth Pairing

Slide 6

Slide 6 text

Device Mac:
 /dev/tty.Sphero-RGB-RN-SPP Windows:
 COM1 Linux:
 /dev/rfcomm1

Slide 7

Slide 7 text

Channels Make a channel
 channel := make(chan int) Take a value from the channel
 num := <- channel Check if channel is closed
 num, ok := <- channel Tick returns a channel
 channel := time.Tick(1 * time.Second)

Slide 8

Slide 8 text

Goroutines Launch a function
 go someFunc() Anonymous function
 go func() {
 }()

Slide 9

Slide 9 text

Select Wait on multiple channels
 select {
 case <-ticker:
 / / do this
 case event := <-robot.Events:
 / / do that
 }

Slide 10

Slide 10 text

https:/ /github.com/edmontongo/ go-zombies