func resetLeds(robot *gobot.Robot) { robot.Device("red").(*gpio.LedDriver).Off() robot.Device("green").(*gpio.LedDriver).Off() robot.Device("blue").(*gpio.LedDriver).Off() }
func turnOn(robot *gobot.Robot, device string) { robot.Device(device).(*gpio.LedDriver).On() }