esp8266: provide hardware pin constants like GPIO2

This commit is contained in:
Ayke van Laethem
2022-06-28 16:14:33 +02:00
committed by Ron Evans
parent 57cddf5657
commit 153ff09cc5
2 changed files with 30 additions and 9 deletions
+21
View File
@@ -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