Skip to content

Commit

Permalink
print message when triggered
Browse files Browse the repository at this point in the history
Signed-off-by: Sola <[email protected]>
  • Loading branch information
unlimitedsola committed Sep 20, 2018
1 parent 2996912 commit 83a62db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions io/io.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,16 @@ func Start(signal chan<- bool) {
}

func coin(port *serial.Port) {
fmt.Println("Coin!")
port.Write([]byte("\xaa\x01\xa5"))
}

func test(port *serial.Port) {
fmt.Println("Test!")
port.Write([]byte("\xaa\x03\xa5"))
}

func service(port *serial.Port) {
fmt.Println("Service!")
port.Write([]byte("\xaa\x18\xa5"))
}

0 comments on commit 83a62db

Please sign in to comment.