mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 18:47:47 +00:00
esp8266: add target for d1mini board and add pin mappings for SPI/I2C to help out implementers
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -19,3 +19,17 @@ const (
|
||||
|
||||
// Onboard blue LED (on the AI-Thinker module).
|
||||
const LED = D4
|
||||
|
||||
// SPI pins
|
||||
const (
|
||||
SPI0_SCK_PIN = D5
|
||||
SPI0_SDO_PIN = D7
|
||||
SPI0_SDI_PIN = D6
|
||||
SPI0_CS0_PIN = D8
|
||||
)
|
||||
|
||||
// I2C pins
|
||||
const (
|
||||
SDA_PIN = D2
|
||||
SCL_PIN = D1
|
||||
)
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"inherits": ["nodemcu"]
|
||||
}
|
||||
Reference in New Issue
Block a user