mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-14 07:53:40 +00:00
esp8266: provide hardware pin constants like GPIO2
This commit is contained in:
committed by
Ron Evans
parent
57cddf5657
commit
153ff09cc5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user