mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-18 03:24:00 +00:00
machine: reorder pin definitions to improve pin list on tinygo.org
This commit is contained in:
committed by
Ron Evans
parent
411333327e
commit
0a93347e1c
@@ -3,36 +3,33 @@
|
||||
|
||||
package machine
|
||||
|
||||
// Built-in LED on some ESP32 boards.
|
||||
const LED = IO2
|
||||
|
||||
const (
|
||||
CLK = GPIO6
|
||||
CMD = GPIO11
|
||||
IO0 = GPIO0
|
||||
IO1 = GPIO1
|
||||
IO2 = GPIO2
|
||||
IO3 = GPIO3
|
||||
IO4 = GPIO4
|
||||
IO5 = GPIO5
|
||||
IO9 = GPIO9
|
||||
IO10 = GPIO10
|
||||
IO16 = GPIO16
|
||||
IO17 = GPIO17
|
||||
IO18 = GPIO18
|
||||
IO19 = GPIO19
|
||||
IO2 = GPIO2
|
||||
IO21 = GPIO21
|
||||
IO22 = GPIO22
|
||||
IO23 = GPIO23
|
||||
IO25 = GPIO25
|
||||
IO26 = GPIO26
|
||||
IO27 = GPIO27
|
||||
IO3 = GPIO3
|
||||
IO32 = GPIO32
|
||||
IO33 = GPIO33
|
||||
IO34 = GPIO34
|
||||
IO35 = GPIO35
|
||||
IO36 = GPIO36
|
||||
IO39 = GPIO39
|
||||
IO4 = GPIO4
|
||||
IO5 = GPIO5
|
||||
IO9 = GPIO9
|
||||
RXD = GPIO3
|
||||
SD0 = GPIO7
|
||||
SD1 = GPIO8
|
||||
@@ -47,6 +44,9 @@ const (
|
||||
TXD = GPIO1
|
||||
)
|
||||
|
||||
// Built-in LED on some ESP32 boards.
|
||||
const LED = IO2
|
||||
|
||||
// SPI pins
|
||||
const (
|
||||
SPI0_SCK_PIN = IO18
|
||||
|
||||
Reference in New Issue
Block a user