Пример #1
0
func resetLeds(robot *gobot.Robot) {
	robot.Device("red").(*gpio.LedDriver).Off()
	robot.Device("green").(*gpio.LedDriver).Off()
	robot.Device("blue").(*gpio.LedDriver).Off()
}
Пример #2
0
func turnOn(robot *gobot.Robot, device string) {
	robot.Device(device).(*gpio.LedDriver).On()
}