create variant for magicbit board (#2987)
* create varient for magicbit board * update boards.txt
This commit is contained in:
parent
9e32cec9a2
commit
509d31ba51
35
boards.txt
35
boards.txt
@ -230,7 +230,6 @@ esp32wrover.menu.DebugLevel.verbose=Verbose
|
|||||||
esp32wrover.menu.DebugLevel.verbose.build.code_debug=5
|
esp32wrover.menu.DebugLevel.verbose.build.code_debug=5
|
||||||
|
|
||||||
##############################################################
|
##############################################################
|
||||||
|
|
||||||
pico32.name=ESP32 Pico Kit
|
pico32.name=ESP32 Pico Kit
|
||||||
|
|
||||||
pico32.upload.tool=esptool_py
|
pico32.upload.tool=esptool_py
|
||||||
@ -353,7 +352,41 @@ tinypico.menu.DebugLevel.verbose=Verbose
|
|||||||
tinypico.menu.DebugLevel.verbose.build.code_debug=5
|
tinypico.menu.DebugLevel.verbose.build.code_debug=5
|
||||||
|
|
||||||
##############################################################
|
##############################################################
|
||||||
|
magicbit.name=MagicBit
|
||||||
|
|
||||||
|
magicbit.upload.tool=esptool_py
|
||||||
|
magicbit.upload.maximum_size=1310720
|
||||||
|
magicbit.upload.maximum_data_size=327680
|
||||||
|
magicbit.upload.wait_for_upload_port=true
|
||||||
|
|
||||||
|
magicbit.serial.disableDTR=true
|
||||||
|
magicbit.serial.disableRTS=true
|
||||||
|
|
||||||
|
magicbit.build.mcu=esp32
|
||||||
|
magicbit.build.core=esp32
|
||||||
|
magicbit.build.variant=esp32
|
||||||
|
magicbit.build.board=ESP32_DEV
|
||||||
|
|
||||||
|
magicbit.build.f_cpu=240000000L
|
||||||
|
magicbit.build.flash_size=4MB
|
||||||
|
magicbit.build.flash_freq=40m
|
||||||
|
magicbit.build.flash_mode=dio
|
||||||
|
magicbit.build.boot=dio
|
||||||
|
magicbit.build.partitions=default
|
||||||
|
|
||||||
|
magicbit.menu.CPUFreq.240=240MHz (WiFi/BT)
|
||||||
|
magicbit.menu.CPUFreq.240.build.f_cpu=240000000L
|
||||||
|
magicbit.menu.CPUFreq.160=160MHz (WiFi/BT)
|
||||||
|
magicbit.menu.CPUFreq.160.build.f_cpu=160000000L
|
||||||
|
magicbit.menu.CPUFreq.80=80MHz (WiFi/BT)
|
||||||
|
magicbit.menu.CPUFreq.80.build.f_cpu=80000000L
|
||||||
|
magicbit.menu.CPUFreq.40=40MHz (40MHz XTAL)
|
||||||
|
|
||||||
|
magicbit.menu.UploadSpeed.921600=921600
|
||||||
|
magicbit.menu.UploadSpeed.921600.upload.speed=921600
|
||||||
|
magicbit.menu.UploadSpeed.115200=115200
|
||||||
|
magicbit.menu.UploadSpeed.115200.upload.speed=115200
|
||||||
|
##############################################################
|
||||||
turta_iot_node.name=Turta IoT Node
|
turta_iot_node.name=Turta IoT Node
|
||||||
|
|
||||||
turta_iot_node.upload.tool=esptool_py
|
turta_iot_node.upload.tool=esptool_py
|
||||||
|
71
variants/magicbit/pins_arduino.h
Normal file
71
variants/magicbit/pins_arduino.h
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
#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 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;
|
||||||
|
|
||||||
|
static const uint8_t BUZZER = 25;
|
||||||
|
static const uint8_t RED_LED = 32;
|
||||||
|
static const uint8_t YELLOW_LED = 33;
|
||||||
|
static const uint8_t GREEN_LED = 16;
|
||||||
|
static const uint8_t BLUE_LED = 17;
|
||||||
|
static const uint8_t LDR = 36;
|
||||||
|
static const uint8_t POT = 39;
|
||||||
|
static const uint8_t RIGHT_PUTTON = 34;
|
||||||
|
static const uint8_t LEFT_BUTTON = 35;
|
||||||
|
static const uint8_t MOTOR1A = 32;
|
||||||
|
static const uint8_t MOTOR1B = 33;
|
||||||
|
static const uint8_t MOTOR2A = 16;
|
||||||
|
static const uint8_t MOTOR2B = 17;
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* Pins_Arduino_h */
|
Loading…
Reference in New Issue
Block a user