aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/machine/machine_esp8266.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/machine/machine_esp8266.go')
-rw-r--r--src/machine/machine_esp8266.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/machine/machine_esp8266.go b/src/machine/machine_esp8266.go
index 77fb0ba63..3b27a1915 100644
--- a/src/machine/machine_esp8266.go
+++ b/src/machine/machine_esp8266.go
@@ -19,6 +19,27 @@ const (
PinInput
)
+// Hardware pin numbers
+const (
+ GPIO0 Pin = iota
+ GPIO1
+ GPIO2
+ GPIO3
+ GPIO4
+ GPIO5
+ GPIO6
+ GPIO7
+ GPIO8
+ GPIO9
+ GPIO10
+ GPIO11
+ GPIO12
+ GPIO13
+ GPIO14
+ GPIO15
+ GPIO16
+)
+
// Pins that are fixed by the chip.
const (
UART_TX_PIN Pin = 1