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
+9 -9
View File
@@ -7,15 +7,15 @@ package machine
// GPIO pins on the NodeMCU board.
const (
D0 Pin = 16
D1 Pin = 5
D2 Pin = 4
D3 Pin = 0
D4 Pin = 2
D5 Pin = 14
D6 Pin = 12
D7 Pin = 13
D8 Pin = 15
D0 = GPIO16
D1 = GPIO5
D2 = GPIO4
D3 = GPIO0
D4 = GPIO2
D5 = GPIO14
D6 = GPIO12
D7 = GPIO13
D8 = GPIO15
)
// Onboard blue LED (on the AI-Thinker module).