Unverified Commit 9a9e3e59 authored by jerry-jho's avatar jerry-jho Committed by GitHub

Add Wemos D1 Uno R32 (#6944)

parent 4b08182c
......@@ -11751,6 +11751,99 @@ d1_mini32.menu.DebugLevel.verbose.build.code_debug=5
##############################################################
d1_uno32.name=WEMOS D1 R32
d1_uno32.bootloader.tool=esptool_py
d1_uno32.bootloader.tool.default=esptool_py
d1_uno32.upload.tool=esptool_py
d1_uno32.upload.tool.default=esptool_py
d1_uno32.upload.tool.network=esp_ota
d1_uno32.upload.maximum_size=1310720
d1_uno32.upload.maximum_data_size=327680
d1_uno32.upload.flags=
d1_uno32.upload.extra_flags=
d1_uno32.serial.disableDTR=true
d1_uno32.serial.disableRTS=true
d1_uno32.build.tarch=xtensa
d1_uno32.build.bootloader_addr=0x1000
d1_uno32.build.target=esp32
d1_uno32.build.mcu=esp32
d1_uno32.build.core=esp32
d1_uno32.build.variant=d1_uno32
d1_uno32.build.board=D1_UNO32
d1_uno32.build.f_cpu=240000000L
d1_uno32.build.flash_mode=dio
d1_uno32.build.flash_size=4MB
d1_uno32.build.boot=dio
d1_uno32.build.partitions=default
d1_uno32.build.defines=
d1_uno32.menu.FlashFreq.80=80MHz
d1_uno32.menu.FlashFreq.80.build.flash_freq=80m
d1_uno32.menu.FlashFreq.40=40MHz
d1_uno32.menu.FlashFreq.40.build.flash_freq=40m
d1_uno32.menu.PartitionScheme.default=Default
d1_uno32.menu.PartitionScheme.default.build.partitions=default
d1_uno32.menu.PartitionScheme.no_ota=No OTA (Large APP)
d1_uno32.menu.PartitionScheme.no_ota.build.partitions=no_ota
d1_uno32.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
d1_uno32.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (Large APPS with OTA)
d1_uno32.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
d1_uno32.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
d1_uno32.menu.CPUFreq.240=240MHz (WiFi/BT)
d1_uno32.menu.CPUFreq.240.build.f_cpu=240000000L
d1_uno32.menu.CPUFreq.160=160MHz (WiFi/BT)
d1_uno32.menu.CPUFreq.160.build.f_cpu=160000000L
d1_uno32.menu.CPUFreq.80=80MHz (WiFi/BT)
d1_uno32.menu.CPUFreq.80.build.f_cpu=80000000L
d1_uno32.menu.CPUFreq.40=40MHz (40MHz XTAL)
d1_uno32.menu.CPUFreq.40.build.f_cpu=40000000L
d1_uno32.menu.CPUFreq.26=26MHz (26MHz XTAL)
d1_uno32.menu.CPUFreq.26.build.f_cpu=26000000L
d1_uno32.menu.CPUFreq.20=20MHz (40MHz XTAL)
d1_uno32.menu.CPUFreq.20.build.f_cpu=20000000L
d1_uno32.menu.CPUFreq.13=13MHz (26MHz XTAL)
d1_uno32.menu.CPUFreq.13.build.f_cpu=13000000L
d1_uno32.menu.CPUFreq.10=10MHz (40MHz XTAL)
d1_uno32.menu.CPUFreq.10.build.f_cpu=10000000L
d1_uno32.menu.UploadSpeed.921600=921600
d1_uno32.menu.UploadSpeed.921600.upload.speed=921600
d1_uno32.menu.UploadSpeed.115200=115200
d1_uno32.menu.UploadSpeed.115200.upload.speed=115200
d1_uno32.menu.UploadSpeed.256000.windows=256000
d1_uno32.menu.UploadSpeed.256000.upload.speed=256000
d1_uno32.menu.UploadSpeed.230400.windows.upload.speed=256000
d1_uno32.menu.UploadSpeed.230400=230400
d1_uno32.menu.UploadSpeed.230400.upload.speed=230400
d1_uno32.menu.UploadSpeed.460800.linux=460800
d1_uno32.menu.UploadSpeed.460800.macosx=460800
d1_uno32.menu.UploadSpeed.460800.upload.speed=460800
d1_uno32.menu.UploadSpeed.512000.windows=512000
d1_uno32.menu.UploadSpeed.512000.upload.speed=512000
d1_uno32.menu.DebugLevel.none=None
d1_uno32.menu.DebugLevel.none.build.code_debug=0
d1_uno32.menu.DebugLevel.error=Error
d1_uno32.menu.DebugLevel.error.build.code_debug=1
d1_uno32.menu.DebugLevel.warn=Warn
d1_uno32.menu.DebugLevel.warn.build.code_debug=2
d1_uno32.menu.DebugLevel.info=Info
d1_uno32.menu.DebugLevel.info.build.code_debug=3
d1_uno32.menu.DebugLevel.debug=Debug
d1_uno32.menu.DebugLevel.debug.build.code_debug=4
d1_uno32.menu.DebugLevel.verbose=Verbose
d1_uno32.menu.DebugLevel.verbose.build.code_debug=5
##############################################################
gpy.name=Pycom GPy
gpy.bootloader.tool=esptool_py
......
#ifndef Pins_Arduino_h
#define Pins_Arduino_h
// Board Pinmap: https://www.botnroll.com/en/esp/3639-wemos-d1-r32-w-esp32-uno-r3-pinout.html
#include <stdint.h>
#define EXTERNAL_NUM_INTERRUPTS 16
#define NUM_DIGITAL_PINS 40
#define NUM_ANALOG_INPUTS 16
#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
#define digitalPinHasPWM(p) (p < 34)
static const uint8_t TX = 1;
static const uint8_t RX = 3;
static const uint8_t SDA = 21;
static const uint8_t SCL = 22;
static const uint8_t SS = 5;
static const uint8_t MOSI = 23;
static const uint8_t MISO = 19;
static const uint8_t SCK = 18;
static const uint8_t A0 = 2;
static const uint8_t A1 = 4;
static const uint8_t A2 = 35;
static const uint8_t A3 = 34;
static const uint8_t A4 = 36;
static const uint8_t A5 = 39;
static const uint8_t LED_BUILTIN = 2;
#define BUILTIN_LED LED_BUILTIN // backward compatibility
#define LED_BUILTIN LED_BUILTIN
#define PIN_WIRE_SDA SDA // backward compatibility
#define PIN_WIRE_SCL SCL // backward compatibility
static const uint8_t D0 = 3;
static const uint8_t D1 = 1;
static const uint8_t D2 = 26;
static const uint8_t D3 = 25;
static const uint8_t D4 = 17;
static const uint8_t D5 = 16;
static const uint8_t D6 = 27;
static const uint8_t D7 = 14;
static const uint8_t D8 = 12;
static const uint8_t D9 = 13;
static const uint8_t D10 = 5;
static const uint8_t D11 = 23;
static const uint8_t D12 = 19;
static const uint8_t D13 = 18;
#define PIN_SPI_SS SS // backward compatibility
#define PIN_SPI_MOSI MOSI // backward compatibility
#define PIN_SPI_MISO MISO // backward compatibility
#define PIN_SPI_SCK SCK // backward compatibility
#define PIN_A0 A0 // backward compatibility
#endif /* Pins_Arduino_h */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment