etboard pinmap upload (#4748)
Co-authored-by: ketri-kjy <jinyoung@ketri.re.kr> Co-authored-by: ketri2484 <ketri2484@gamil.com>
This commit is contained in:
parent
a0ddd8a16e
commit
419ba32432
66
boards.txt
66
boards.txt
@ -6199,3 +6199,69 @@ healthypi4.menu.DebugLevel.debug=Debug
|
|||||||
healthypi4.menu.DebugLevel.debug.build.code_debug=4
|
healthypi4.menu.DebugLevel.debug.build.code_debug=4
|
||||||
healthypi4.menu.DebugLevel.verbose=Verbose
|
healthypi4.menu.DebugLevel.verbose=Verbose
|
||||||
healthypi4.menu.DebugLevel.verbose.build.code_debug=5
|
healthypi4.menu.DebugLevel.verbose.build.code_debug=5
|
||||||
|
|
||||||
|
##############################################################
|
||||||
|
|
||||||
|
|
||||||
|
ETBoard.name=ETBoard
|
||||||
|
|
||||||
|
ETBoard.upload.tool=esptool_py
|
||||||
|
ETBoard.upload.maximum_size=1310720
|
||||||
|
ETBoard.upload.maximum_data_size=327680
|
||||||
|
ETBoard.upload.wait_for_upload_port=true
|
||||||
|
|
||||||
|
ETBoard.serial.disableDTR=true
|
||||||
|
ETBoard.serial.disableRTS=true
|
||||||
|
|
||||||
|
ETBoard.build.mcu=esp32
|
||||||
|
ETBoard.build.core=esp32
|
||||||
|
ETBoard.build.variant=ETBoard
|
||||||
|
ETBoard.build.board=ETBoard
|
||||||
|
ETBoard.build.f_cpu=240000000L
|
||||||
|
ETBoard.build.flash_mode=dio
|
||||||
|
ETBoard.build.flash_size=4MB
|
||||||
|
ETBoard.build.boot=dio
|
||||||
|
ETBoard.build.partitions=default
|
||||||
|
ETBoard.build.defines=
|
||||||
|
|
||||||
|
ETBoard.menu.PartitionScheme.default=Default
|
||||||
|
ETBoard.menu.PartitionScheme.default.build.partitions=default
|
||||||
|
ETBoard.menu.PartitionScheme.no_ota=No OTA (Large APP)
|
||||||
|
ETBoard.menu.PartitionScheme.no_ota.build.partitions=no_ota
|
||||||
|
ETBoard.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
|
||||||
|
ETBoard.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (Large APPS with OTA)
|
||||||
|
ETBoard.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
|
||||||
|
ETBoard.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
|
||||||
|
|
||||||
|
ETBoard.menu.FlashFreq.80=80MHz
|
||||||
|
ETBoard.menu.FlashFreq.80.build.flash_freq=80m
|
||||||
|
ETBoard.menu.FlashFreq.40=40MHz
|
||||||
|
ETBoard.menu.FlashFreq.40.build.flash_freq=40m
|
||||||
|
|
||||||
|
ETBoard.menu.UploadSpeed.921600=921600
|
||||||
|
ETBoard.menu.UploadSpeed.921600.upload.speed=921600
|
||||||
|
ETBoard.menu.UploadSpeed.115200=115200
|
||||||
|
ETBoard.menu.UploadSpeed.115200.upload.speed=115200
|
||||||
|
ETBoard.menu.UploadSpeed.256000.windows=256000
|
||||||
|
ETBoard.menu.UploadSpeed.256000.upload.speed=256000
|
||||||
|
ETBoard.menu.UploadSpeed.230400.windows.upload.speed=256000
|
||||||
|
ETBoard.menu.UploadSpeed.230400=230400
|
||||||
|
ETBoard.menu.UploadSpeed.230400.upload.speed=230400
|
||||||
|
ETBoard.menu.UploadSpeed.460800.linux=460800
|
||||||
|
ETBoard.menu.UploadSpeed.460800.macosx=460800
|
||||||
|
ETBoard.menu.UploadSpeed.460800.upload.speed=460800
|
||||||
|
ETBoard.menu.UploadSpeed.512000.windows=512000
|
||||||
|
ETBoard.menu.UploadSpeed.512000.upload.speed=512000
|
||||||
|
|
||||||
|
ETBoard.menu.DebugLevel.none=None
|
||||||
|
ETBoard.menu.DebugLevel.none.build.code_debug=0
|
||||||
|
ETBoard.menu.DebugLevel.error=Error
|
||||||
|
ETBoard.menu.DebugLevel.error.build.code_debug=1
|
||||||
|
ETBoard.menu.DebugLevel.warn=Warn
|
||||||
|
ETBoard.menu.DebugLevel.warn.build.code_debug=2
|
||||||
|
ETBoard.menu.DebugLevel.info=Info
|
||||||
|
ETBoard.menu.DebugLevel.info.build.code_debug=3
|
||||||
|
ETBoard.menu.DebugLevel.debug=Debug
|
||||||
|
ETBoard.menu.DebugLevel.debug.build.code_debug=4
|
||||||
|
ETBoard.menu.DebugLevel.verbose=Verbose
|
||||||
|
ETBoard.menu.DebugLevel.verbose.build.code_debug=5
|
47
variants/ETBoard/pins_arduino.h
Normal file
47
variants/ETBoard/pins_arduino.h
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
#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 7
|
||||||
|
|
||||||
|
#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 TX = 34;
|
||||||
|
static const uint8_t RX = 35;
|
||||||
|
|
||||||
|
static const uint8_t SDA = 33;
|
||||||
|
static const uint8_t SCL = 36;
|
||||||
|
|
||||||
|
static const uint8_t SS = 29;
|
||||||
|
static const uint8_t MOSI = 37;
|
||||||
|
static const uint8_t MISO = 31;
|
||||||
|
static const uint8_t SCK = 30;
|
||||||
|
|
||||||
|
static const uint8_t A0 = 36; // BUILTIN_Potentiometer
|
||||||
|
static const uint8_t A1 = 39; // BUILTIN_CDS
|
||||||
|
static const uint8_t A2 = 32; // BUILTIN_temperature
|
||||||
|
static const uint8_t A3 = 33; // Analog Input
|
||||||
|
static const uint8_t A4 = 34; // Analog Input
|
||||||
|
static const uint8_t A5 = 35; // Analog Input
|
||||||
|
static const uint8_t A6 = 25; // Analog Input
|
||||||
|
static const uint8_t A7 = 26; // Analog Input
|
||||||
|
|
||||||
|
|
||||||
|
static const uint8_t D2 = 27; // BUILTIN_LED_Red
|
||||||
|
static const uint8_t D3 = 14; // BUILTIN_LED_Blue
|
||||||
|
static const uint8_t D4 = 12; // BUILTIN_LED_Green
|
||||||
|
static const uint8_t D5 = 13; // BUILTIN_LED_Yellow
|
||||||
|
static const uint8_t D6 = 15; // BUILTIN_BUTTON_Red
|
||||||
|
static const uint8_t D7 = 16; // BUILTIN_BUTTON_Blue
|
||||||
|
static const uint8_t D8 = 17; // BUILTIN_BUTTON_Green
|
||||||
|
static const uint8_t D9 = 4; // BUILTIN_BUTTON_Yellow
|
||||||
|
|
||||||
|
static const uint8_t DAC1 = 25;
|
||||||
|
static const uint8_t DAC2 = 26;
|
||||||
|
|
||||||
|
#endif /* Pins_Arduino_h */
|
Loading…
Reference in New Issue
Block a user