Add Dongsen Tech Pocket 32 and fake "WeMos" WiFi&Bluetooth Battery (which is a Pocket 32 clone) (#620)
* Create new pocket_32 diretory for Pocket 32 board * Create pins_arduino.h for pocket_32 * Update boards.txt to support Dongsen Tech Pocket 32 and fake "WeMos" WiFi&Bluetooth Battery
This commit is contained in:
parent
59a6800cdf
commit
bb078ca943
86
boards.txt
86
boards.txt
@ -294,6 +294,92 @@ lolin32.menu.UploadSpeed.512000.upload.speed=512000
|
||||
|
||||
##############################################################
|
||||
|
||||
pocket_32.name=Dongsen Tech Pocket 32
|
||||
|
||||
pocket_32.upload.tool=esptool
|
||||
pocket_32.upload.maximum_size=1310720
|
||||
pocket_32.upload.maximum_data_size=294912
|
||||
pocket_32.upload.wait_for_upload_port=true
|
||||
|
||||
pocket_32.serial.disableDTR=true
|
||||
pocket_32.serial.disableRTS=true
|
||||
|
||||
pocket_32.build.mcu=esp32
|
||||
pocket_32.build.core=esp32
|
||||
pocket_32.build.variant=pocket_32
|
||||
pocket_32.build.board=Pocket32
|
||||
|
||||
pocket_32.build.f_cpu=240000000L
|
||||
pocket_32.build.flash_mode=dio
|
||||
pocket_32.build.flash_size=4MB
|
||||
pocket_32.build.boot=bootloader
|
||||
pocket_32.build.partitions=default
|
||||
|
||||
pocket_32.menu.FlashFreq.80=80MHz
|
||||
pocket_32.menu.FlashFreq.80.build.flash_freq=80m
|
||||
pocket_32.menu.FlashFreq.40=40MHz
|
||||
pocket_32.menu.FlashFreq.40.build.flash_freq=40m
|
||||
|
||||
pocket_32.menu.UploadSpeed.921600=921600
|
||||
pocket_32.menu.UploadSpeed.921600.upload.speed=921600
|
||||
pocket_32.menu.UploadSpeed.115200=115200
|
||||
pocket_32.menu.UploadSpeed.115200.upload.speed=115200
|
||||
pocket_32.menu.UploadSpeed.256000.windows=256000
|
||||
pocket_32.menu.UploadSpeed.256000.upload.speed=256000
|
||||
pocket_32.menu.UploadSpeed.230400.windows.upload.speed=256000
|
||||
pocket_32.menu.UploadSpeed.230400=230400
|
||||
pocket_32.menu.UploadSpeed.230400.upload.speed=230400
|
||||
pocket_32.menu.UploadSpeed.460800.linux=460800
|
||||
pocket_32.menu.UploadSpeed.460800.macosx=460800
|
||||
pocket_32.menu.UploadSpeed.460800.upload.speed=460800
|
||||
pocket_32.menu.UploadSpeed.512000.windows=512000
|
||||
pocket_32.menu.UploadSpeed.512000.upload.speed=512000
|
||||
|
||||
##############################################################
|
||||
|
||||
WeMosBat.name="WeMos" WiFi&Bluetooth Battery
|
||||
|
||||
WeMosBat.upload.tool=esptool
|
||||
WeMosBat.upload.maximum_size=1310720
|
||||
WeMosBat.upload.maximum_data_size=294912
|
||||
WeMosBat.upload.wait_for_upload_port=true
|
||||
|
||||
WeMosBat.serial.disableDTR=true
|
||||
WeMosBat.serial.disableRTS=true
|
||||
|
||||
WeMosBat.build.mcu=esp32
|
||||
WeMosBat.build.core=esp32
|
||||
WeMosBat.build.variant=pocket_32
|
||||
WeMosBat.build.board=Pocket32
|
||||
|
||||
WeMosBat.build.f_cpu=240000000L
|
||||
WeMosBat.build.flash_mode=dio
|
||||
WeMosBat.build.flash_size=4MB
|
||||
WeMosBat.build.boot=bootloader
|
||||
WeMosBat.build.partitions=default
|
||||
|
||||
WeMosBat.menu.FlashFreq.80=80MHz
|
||||
WeMosBat.menu.FlashFreq.80.build.flash_freq=80m
|
||||
WeMosBat.menu.FlashFreq.40=40MHz
|
||||
WeMosBat.menu.FlashFreq.40.build.flash_freq=40m
|
||||
|
||||
WeMosBat.menu.UploadSpeed.921600=921600
|
||||
WeMosBat.menu.UploadSpeed.921600.upload.speed=921600
|
||||
WeMosBat.menu.UploadSpeed.115200=115200
|
||||
WeMosBat.menu.UploadSpeed.115200.upload.speed=115200
|
||||
WeMosBat.menu.UploadSpeed.256000.windows=256000
|
||||
WeMosBat.menu.UploadSpeed.256000.upload.speed=256000
|
||||
WeMosBat.menu.UploadSpeed.230400.windows.upload.speed=256000
|
||||
WeMosBat.menu.UploadSpeed.230400=230400
|
||||
WeMosBat.menu.UploadSpeed.230400.upload.speed=230400
|
||||
WeMosBat.menu.UploadSpeed.460800.linux=460800
|
||||
WeMosBat.menu.UploadSpeed.460800.macosx=460800
|
||||
WeMosBat.menu.UploadSpeed.460800.upload.speed=460800
|
||||
WeMosBat.menu.UploadSpeed.512000.windows=512000
|
||||
WeMosBat.menu.UploadSpeed.512000.upload.speed=512000
|
||||
|
||||
##############################################################
|
||||
|
||||
espea32.name=ESPea32
|
||||
|
||||
espea32.upload.tool=esptool
|
||||
|
61
variants/pocket_32/pins_arduino.h
Normal file
61
variants/pocket_32/pins_arduino.h
Normal file
@ -0,0 +1,61 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define EXTERNAL_NUM_INTERRUPTS 16
|
||||
#define NUM_DIGITAL_PINS 40
|
||||
#define NUM_ANALOG_INPUTS 16
|
||||
|
||||
#define analogInputToDigitalPin(p) (((p)<20)?(esp32_adc2gpio[(p)]):-1)
|
||||
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
|
||||
#define digitalPinHasPWM(p) (p < 34)
|
||||
|
||||
static const uint8_t LED_BUILTIN = 16;
|
||||
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
||||
|
||||
|
||||
|
||||
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 = 36;
|
||||
static const uint8_t A3 = 39;
|
||||
static const uint8_t A4 = 32;
|
||||
static const uint8_t A5 = 33;
|
||||
static const uint8_t A6 = 34;
|
||||
static const uint8_t A7 = 35;
|
||||
static const uint8_t A10 = 4;
|
||||
static const uint8_t A11 = 0;
|
||||
static const uint8_t A12 = 2;
|
||||
static const uint8_t A13 = 15;
|
||||
static const uint8_t A14 = 13;
|
||||
static const uint8_t A15 = 12;
|
||||
static const uint8_t A16 = 14;
|
||||
static const uint8_t A17 = 27;
|
||||
static const uint8_t A18 = 25;
|
||||
static const uint8_t A19 = 26;
|
||||
|
||||
static const uint8_t T0 = 4;
|
||||
static const uint8_t T1 = 0;
|
||||
static const uint8_t T2 = 2;
|
||||
static const uint8_t T3 = 15;
|
||||
static const uint8_t T4 = 13;
|
||||
static const uint8_t T5 = 12;
|
||||
static const uint8_t T6 = 14;
|
||||
static const uint8_t T7 = 27;
|
||||
static const uint8_t T8 = 33;
|
||||
static const uint8_t T9 = 32;
|
||||
|
||||
static const uint8_t DAC1 = 25;
|
||||
static const uint8_t DAC2 = 26;
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
Loading…
Reference in New Issue
Block a user