esp8266: add target for d1mini board and add pin mappings for SPI/I2C to help out implementers
Signed-off-by: deadprogram <ron@hybridgroup.com>
Этот коммит содержится в:
родитель
47dc1087e8
коммит
d382f3a259
2 изменённых файлов: 17 добавлений и 0 удалений
|
@ -19,3 +19,17 @@ const (
|
||||||
|
|
||||||
// Onboard blue LED (on the AI-Thinker module).
|
// Onboard blue LED (on the AI-Thinker module).
|
||||||
const LED = D4
|
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
|
||||||
|
)
|
||||||
|
|
3
targets/d1mini.json
Обычный файл
3
targets/d1mini.json
Обычный файл
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"inherits": ["nodemcu"]
|
||||||
|
}
|
Загрузка…
Создание таблицы
Сослаться в новой задаче