1. add IntoRobot Fig support (#284)
This commit is contained in:
parent
b46f1e2e3c
commit
ba1efb9897
41
boards.txt
41
boards.txt
@ -463,3 +463,44 @@ firebeetle32.menu.UploadSpeed.460800.macosx=460800
|
|||||||
firebeetle32.menu.UploadSpeed.460800.upload.speed=460800
|
firebeetle32.menu.UploadSpeed.460800.upload.speed=460800
|
||||||
firebeetle32.menu.UploadSpeed.512000.windows=512000
|
firebeetle32.menu.UploadSpeed.512000.windows=512000
|
||||||
firebeetle32.menu.UploadSpeed.512000.upload.speed=512000
|
firebeetle32.menu.UploadSpeed.512000.upload.speed=512000
|
||||||
|
|
||||||
|
##############################################################
|
||||||
|
|
||||||
|
intorobot-fig.name=IntoRobot Fig
|
||||||
|
|
||||||
|
intorobot-fig.upload.tool=esptool
|
||||||
|
intorobot-fig.upload.maximum_size=1044464
|
||||||
|
intorobot-fig.upload.maximum_data_size=294912
|
||||||
|
intorobot-fig.upload.wait_for_upload_port=true
|
||||||
|
|
||||||
|
intorobot-fig.serial.disableDTR=true
|
||||||
|
intorobot-fig.serial.disableRTS=true
|
||||||
|
|
||||||
|
intorobot-fig.build.mcu=esp32
|
||||||
|
intorobot-fig.build.core=esp32
|
||||||
|
intorobot-fig.build.variant=intorobot-fig
|
||||||
|
intorobot-fig.build.board=INTOROBOT_ESP32_DEV
|
||||||
|
|
||||||
|
intorobot-fig.build.f_cpu=240000000L
|
||||||
|
intorobot-fig.build.flash_mode=dio
|
||||||
|
intorobot-fig.build.flash_size=4MB
|
||||||
|
|
||||||
|
intorobot-fig.menu.FlashFreq.80=80MHz
|
||||||
|
intorobot-fig.menu.FlashFreq.80.build.flash_freq=80m
|
||||||
|
intorobot-fig.menu.FlashFreq.40=40MHz
|
||||||
|
intorobot-fig.menu.FlashFreq.40.build.flash_freq=40m
|
||||||
|
|
||||||
|
intorobot-fig.menu.UploadSpeed.921600=921600
|
||||||
|
intorobot-fig.menu.UploadSpeed.921600.upload.speed=921600
|
||||||
|
intorobot-fig.menu.UploadSpeed.115200=115200
|
||||||
|
intorobot-fig.menu.UploadSpeed.115200.upload.speed=115200
|
||||||
|
intorobot-fig.menu.UploadSpeed.256000.windows=256000
|
||||||
|
intorobot-fig.menu.UploadSpeed.256000.upload.speed=256000
|
||||||
|
intorobot-fig.menu.UploadSpeed.230400.windows.upload.speed=256000
|
||||||
|
intorobot-fig.menu.UploadSpeed.230400=230400
|
||||||
|
intorobot-fig.menu.UploadSpeed.230400.upload.speed=230400
|
||||||
|
intorobot-fig.menu.UploadSpeed.460800.linux=460800
|
||||||
|
intorobot-fig.menu.UploadSpeed.460800.macosx=460800
|
||||||
|
intorobot-fig.menu.UploadSpeed.460800.upload.speed=460800
|
||||||
|
intorobot-fig.menu.UploadSpeed.512000.windows=512000
|
||||||
|
intorobot-fig.menu.UploadSpeed.512000.upload.speed=512000
|
||||||
|
64
variants/intorobot-fig/pins_arduino.h
Normal file
64
variants/intorobot-fig/pins_arduino.h
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
#ifndef Pins_Arduino_h
|
||||||
|
#define Pins_Arduino_h
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#define EXTERNAL_NUM_INTERRUPTS 16
|
||||||
|
#define NUM_DIGITAL_PINS 7
|
||||||
|
#define NUM_ANALOG_INPUTS 10
|
||||||
|
|
||||||
|
#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 = 4;
|
||||||
|
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
||||||
|
|
||||||
|
static const uint8_t RGB_R_BUILTIN = 27;
|
||||||
|
static const uint8_t RGB_G_BUILTIN = 21;
|
||||||
|
static const uint8_t RGB_B_BUILTIN = 22;
|
||||||
|
|
||||||
|
static const uint8_t KEY_BUILTIN = 0;
|
||||||
|
|
||||||
|
static const uint8_t TX = 1;
|
||||||
|
static const uint8_t RX = 3;
|
||||||
|
|
||||||
|
static const uint8_t SDA = 23;
|
||||||
|
static const uint8_t SCL = 19;
|
||||||
|
|
||||||
|
static const uint8_t SS = 5;
|
||||||
|
static const uint8_t MOSI = 16;
|
||||||
|
static const uint8_t MISO = 17;
|
||||||
|
static const uint8_t SCK = 18;
|
||||||
|
|
||||||
|
static const uint8_t A0 = 36;
|
||||||
|
static const uint8_t A1 = 39;
|
||||||
|
static const uint8_t A2 = 35;
|
||||||
|
static const uint8_t A3 = 25;
|
||||||
|
static const uint8_t A4 = 26;
|
||||||
|
static const uint8_t A5 = 14;
|
||||||
|
static const uint8_t A6 = 12;
|
||||||
|
static const uint8_t A7 = 15;
|
||||||
|
static const uint8_t A8 = 13;
|
||||||
|
static const uint8_t A9 = 2;
|
||||||
|
|
||||||
|
static const uint8_t D0 = 19;
|
||||||
|
static const uint8_t D1 = 23;
|
||||||
|
static const uint8_t D2 = 18;
|
||||||
|
static const uint8_t D3 = 17;
|
||||||
|
static const uint8_t D4 = 16;
|
||||||
|
static const uint8_t D5 = 5;
|
||||||
|
static const uint8_t D6 = 4;
|
||||||
|
|
||||||
|
static const uint8_t T0 = 19;
|
||||||
|
static const uint8_t T1 = 23;
|
||||||
|
static const uint8_t T2 = 18;
|
||||||
|
static const uint8_t T3 = 17;
|
||||||
|
static const uint8_t T4 = 16;
|
||||||
|
static const uint8_t T5 = 5;
|
||||||
|
static const uint8_t T6 = 4;
|
||||||
|
|
||||||
|
static const uint8_t DAC1 = 25;
|
||||||
|
static const uint8_t DAC2 = 26;
|
||||||
|
|
||||||
|
#endif /* Pins_Arduino_h */
|
Loading…
Reference in New Issue
Block a user