From 89f77fa86193e6f72d21031b85ed73e311da88a0 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Sun, 3 Jun 2018 16:42:09 +0200 Subject: [PATCH] machine/dummy: Add LED1, LED2, etc to dummy machine --- src/machine/machine_dummy.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/machine/machine_dummy.go b/src/machine/machine_dummy.go index 060b82b3..8f355f6c 100644 --- a/src/machine/machine_dummy.go +++ b/src/machine/machine_dummy.go @@ -12,7 +12,14 @@ const ( GPIO_OUTPUT ) -const LED = 0 +// Fake LED numbers, for testing. +const ( + LED = LED1 + LED1 = 0 + LED2 = 0 + LED3 = 0 + LED4 = 0 +) func (p GPIO) Configure(config GPIOConfig) { }