From efdc9bc479065e3c53e62dfdd3ae81d662edab76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=AB=8B=E5=B8=AE?= <3294713004@qq.com> Date: Wed, 30 Apr 2025 00:21:00 +0800 Subject: [PATCH] =?UTF-8?q?feat(boards):=20arduino=20esp8266=E4=B8=8B?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0io1=E5=92=8Cio3=E7=AE=A1=E8=84=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../default_src/arduino_esp8266/pins/pins.js | 92 +++++++++---------- 1 file changed, 46 insertions(+), 46 deletions(-) diff --git a/boards/default_src/arduino_esp8266/pins/pins.js b/boards/default_src/arduino_esp8266/pins/pins.js index 770a4715..20bdfa6a 100644 --- a/boards/default_src/arduino_esp8266/pins/pins.js +++ b/boards/default_src/arduino_esp8266/pins/pins.js @@ -1,56 +1,56 @@ const pins = {}; pins.arduino_esp8266 = { - description: "esp8266_Arduino", - digital: [["0", "0"], ["2", "2"], ["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["16", "16"], ["A0", "A0"]], - analog: [["A0", "A0"]], - pwm: [["0", "0"], ["2", "2"], ["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["A0", "A0"]], - interrupt: [["0", "0"], ["2", "2"], ["4", "4"], ["5", "5"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"], ["A0", "A0"]], - SDA: [["4", "4"]], - SCL: [["5", "5"]], - MOSI: [["13", "13"]], - MISO: [["12", "12"]], - SCK: [["14", "14"]], - serial_select: [["Serial", "Serial"], ["SoftwareSerial", "mySerial"], ["SoftwareSerial1", "mySerial1"], ["SoftwareSerial2", "mySerial2"], ["SoftwareSerial3", "mySerial3"]], + description: 'esp8266_Arduino', + digital: [['0', '0'], ['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['12', '12'], ['13', '13'], ['14', '14'], ['15', '15'], ['16', '16'], ['A0', 'A0']], + analog: [['A0', 'A0']], + pwm: [['0', '0'], ['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['12', '12'], ['13', '13'], ['14', '14'], ['15', '15'], ['A0', 'A0']], + interrupt: [['0', '0'], ['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['12', '12'], ['13', '13'], ['14', '14'], ['15', '15'], ['A0', 'A0']], + SDA: [['4', '4']], + SCL: [['5', '5']], + MOSI: [['13', '13']], + MISO: [['12', '12']], + SCK: [['14', '14']], + serial_select: [['Serial', 'Serial'], ['SoftwareSerial', 'mySerial'], ['SoftwareSerial1', 'mySerial1'], ['SoftwareSerial2', 'mySerial2'], ['SoftwareSerial3', 'mySerial3']], serial: 9600 }; -pins["ESPectro Core"] = +pins['ESPectro Core'] = pins['Arduino ESP8266 Generic'] = -pins["Generic_ESP8266"] = -pins["ESP8266_Modules"] = -pins["Generic ESP8266 Module"] = -pins["Generic ESP8285 Module"] = -pins["Adafruit HUZZAH ESP8266"] = -pins["NodeMCU 0.9 (ESP-12 Module)"] = -pins["NodeMCU 1.0 (ESP-12E Module)"] = -pins["Olimex MOD-WIFI-ESP8266(-DEV)"] = -pins["SparkFun ESP8266 Thing"] = -pins["SweetPea ESP-210"] = -pins["ESPDuino"] = -pins["Adafruit Feather HUZZAH ESP8266"] = -pins["Invent One"] = -pins["XinaBox CW01"] = -pins["ESPresso Lite 1.0"] = -pins["ESPresso Lite 2.0"] = -pins["Phoenix 1.0"] = -pins["Phoenix 2.0"] = -pins["NodeMCU 0.9"] = -pins["NodeMCU 1.0"] = -pins["Olimex MOD-WIFI-ESP8266"] = -pins["SparkFun ESP8266 Thing Dev"] = -pins["LOLIN"] = -pins["WeMos D1 R1"] = -pins["ESPino"] = -pins["ThaiEasyElec's ESPino"] = -pins["Arduino ESP8266"] = -pins["WifInfo"] = -pins["esp8266_Arduino"] = -pins["4D Systems gen4 IoD Range"] = -pins["Digistump Oak"] = -pins["WiFiduino"] = -pins["Amperka WiFi Slot"] = -pins["Seeed Wio Link"] = +pins['Generic_ESP8266'] = +pins['ESP8266_Modules'] = +pins['Generic ESP8266 Module'] = +pins['Generic ESP8285 Module'] = +pins['Adafruit HUZZAH ESP8266'] = +pins['NodeMCU 0.9 (ESP-12 Module)'] = +pins['NodeMCU 1.0 (ESP-12E Module)'] = +pins['Olimex MOD-WIFI-ESP8266(-DEV)'] = +pins['SparkFun ESP8266 Thing'] = +pins['SweetPea ESP-210'] = +pins['ESPDuino'] = +pins['Adafruit Feather HUZZAH ESP8266'] = +pins['Invent One'] = +pins['XinaBox CW01'] = +pins['ESPresso Lite 1.0'] = +pins['ESPresso Lite 2.0'] = +pins['Phoenix 1.0'] = +pins['Phoenix 2.0'] = +pins['NodeMCU 0.9'] = +pins['NodeMCU 1.0'] = +pins['Olimex MOD-WIFI-ESP8266'] = +pins['SparkFun ESP8266 Thing Dev'] = +pins['LOLIN'] = +pins['WeMos D1 R1'] = +pins['ESPino'] = +pins['ThaiEasyElec\'s ESPino'] = +pins['Arduino ESP8266'] = +pins['WifInfo'] = +pins['esp8266_Arduino'] = +pins['4D Systems gen4 IoD Range'] = +pins['Digistump Oak'] = +pins['WiFiduino'] = +pins['Amperka WiFi Slot'] = +pins['Seeed Wio Link'] = pins.arduino_esp8266; export default pins; \ No newline at end of file