Skip to content

Commit feeb0b0

Browse files
committed
add dfrobot_lorawan_esp32s3 board
1 parent f122366 commit feeb0b0

File tree

2 files changed

+136
-0
lines changed

2 files changed

+136
-0
lines changed

boards.txt

+81
Original file line numberDiff line numberDiff line change
@@ -12706,6 +12706,87 @@ dfrobot_romeo_esp32s3.menu.EraseFlash.none.upload.erase_cmd=
1270612706
dfrobot_romeo_esp32s3.menu.EraseFlash.all=Enabled
1270712707
dfrobot_romeo_esp32s3.menu.EraseFlash.all.upload.erase_cmd=-e
1270812708

12709+
##############################################################
12710+
dfrobot_lorawan_esp32s3.name=DFRobot LoRaWAN ESP32-S3
12711+
#dfrobot_lorawan_esp32s3.vid.0=0x303a
12712+
#dfrobot_lorawan_esp32s3.pid.0=0x1001
12713+
12714+
dfrobot_lorawan_esp32s3.bootloader.tool=esptool_py
12715+
dfrobot_lorawan_esp32s3.bootloader.tool.default=esptool_py
12716+
12717+
dfrobot_lorawan_esp32s3.upload.tool=esptool_py
12718+
dfrobot_lorawan_esp32s3.upload.tool.default=esptool_py
12719+
dfrobot_lorawan_esp32s3.upload.tool.network=esp_ota
12720+
12721+
dfrobot_lorawan_esp32s3.upload.speed=921600
12722+
dfrobot_lorawan_esp32s3.upload.erase_cmd=
12723+
dfrobot_lorawan_esp32s3.upload.maximum_size=1310720
12724+
dfrobot_lorawan_esp32s3.upload.maximum_data_size=327680
12725+
dfrobot_lorawan_esp32s3.upload.flags=
12726+
dfrobot_lorawan_esp32s3.upload.extra_flags=
12727+
dfrobot_lorawan_esp32s3.upload.use_1200bps_touch=false
12728+
dfrobot_lorawan_esp32s3.upload.wait_for_upload_port=false
12729+
12730+
dfrobot_lorawan_esp32s3.serial.disableDTR=false
12731+
dfrobot_lorawan_esp32s3.serial.disableRTS=false
12732+
12733+
dfrobot_lorawan_esp32s3.build.tarch=xtensa
12734+
dfrobot_lorawan_esp32s3.build.bootloader_addr=0x0
12735+
dfrobot_lorawan_esp32s3.build.target=esp32s3
12736+
dfrobot_lorawan_esp32s3.build.mcu=esp32s3
12737+
dfrobot_lorawan_esp32s3.build.core=esp32
12738+
dfrobot_lorawan_esp32s3.build.variant=dfrobot_lorawan_esp32s3
12739+
dfrobot_lorawan_esp32s3.build.board=ESP32S3_DEV
12740+
12741+
dfrobot_lorawan_esp32s3.build.usb_mode=1
12742+
dfrobot_lorawan_esp32s3.build.cdc_on_boot=1
12743+
dfrobot_lorawan_esp32s3.build.msc_on_boot=0
12744+
dfrobot_lorawan_esp32s3.build.dfu_on_boot=0
12745+
dfrobot_lorawan_esp32s3.build.f_cpu=240000000L
12746+
dfrobot_lorawan_esp32s3.build.flash_size=4MB
12747+
dfrobot_lorawan_esp32s3.build.flash_freq=80m
12748+
dfrobot_lorawan_esp32s3.build.flash_mode=dio
12749+
dfrobot_lorawan_esp32s3.build.boot=qio
12750+
dfrobot_lorawan_esp32s3.build.boot_freq=80m
12751+
dfrobot_lorawan_esp32s3.build.partitions=default
12752+
dfrobot_lorawan_esp32s3.build.defines=-D{build.band}
12753+
dfrobot_lorawan_esp32s3.build.loop_core=
12754+
dfrobot_lorawan_esp32s3.build.event_core=
12755+
dfrobot_lorawan_esp32s3.build.psram_type=qspi
12756+
dfrobot_lorawan_esp32s3.build.memory_type={build.boot}_{build.psram_type}
12757+
dfrobot_lorawan_esp32s3.build.region=
12758+
12759+
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.0=REGION_EU868
12760+
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.0.build.band=REGION_EU868
12761+
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.1=REGION_EU433
12762+
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.1.build.band=REGION_EU433
12763+
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.2=REGION_CN470
12764+
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.2.build.band=REGION_CN470
12765+
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.3=REGION_US915
12766+
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.3.build.band=REGION_US915
12767+
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.4=REGION_AU915
12768+
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.4.build.band=REGION_AU915
12769+
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.5=REGION_CN779
12770+
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.5.build.band=REGION_CN779
12771+
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.6=REGION_AS923
12772+
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.6.build.band=REGION_AS923
12773+
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.7=REGION_KR920
12774+
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.7.build.band=REGION_KR920
12775+
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.8=REGION_IN865
12776+
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.8.build.band=REGION_IN865
12777+
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.9=REGION_US915_HYBRID
12778+
dfrobot_lorawan_esp32s3.menu.LORAWAN_REGION.9.build.band=REGION_US915_HYBRID
12779+
12780+
dfrobot_lorawan_esp32s3.menu.LoopCore.1=Core 1
12781+
dfrobot_lorawan_esp32s3.menu.LoopCore.1.build.loop_core=-DARDUINO_RUNNING_CORE=1
12782+
dfrobot_lorawan_esp32s3.menu.LoopCore.0=Core 0
12783+
dfrobot_lorawan_esp32s3.menu.LoopCore.0.build.loop_core=-DARDUINO_RUNNING_CORE=0
12784+
12785+
dfrobot_lorawan_esp32s3.menu.EventsCore.1=Core 1
12786+
dfrobot_lorawan_esp32s3.menu.EventsCore.1.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=1
12787+
dfrobot_lorawan_esp32s3.menu.EventsCore.0=Core 0
12788+
dfrobot_lorawan_esp32s3.menu.EventsCore.0.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=0
12789+
1270912790
##############################################################
1271012791

1271112792
firebeetle32.name=FireBeetle-ESP32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
#include <stdint.h>
5+
6+
// DFROBOT DFR1195
7+
#define EXTERNAL_NUM_INTERRUPTS 16
8+
#define NUM_DIGITAL_PINS 40
9+
#define NUM_ANALOG_INPUTS 16
10+
11+
#define analogInputToDigitalPin(p) (((p) < 20) ? (esp32_adc2gpio[(p)]) : -1)
12+
#define digitalPinToInterrupt(p) (((p) < 40) ? (p) : -1)
13+
#define digitalPinHasPWM(p) (p < 34)
14+
15+
#define LED_GREEN -1
16+
#define LED_BLUE 2
17+
18+
#define LED_BUILTIN LED_GREEN
19+
20+
static const uint8_t TX = 43;
21+
static const uint8_t RX = 44;
22+
23+
static const uint8_t SDA = 8;
24+
static const uint8_t SCL = 9;
25+
26+
#define WB_IO1 1
27+
#define WB_IO2 1
28+
#define WB_SW1 34
29+
#define WB_A0 36
30+
#define WB_LED1 -1
31+
#define WB_LED2 2
32+
33+
#define LORA_ANTPWR 42 //RXEN
34+
#define LORA_RST 41 //RST
35+
#define LORA_BUSY 40 //BUSY
36+
#define LORA_DIO1 4 //DIO
37+
38+
39+
static const uint8_t LORA_SS = 10;
40+
static const uint8_t LORA_MOSI = 6;
41+
static const uint8_t LORA_MISO = 5;
42+
static const uint8_t LORA_SCK = 7;
43+
44+
static const uint8_t SS = 17;
45+
static const uint8_t MOSI = 11;
46+
static const uint8_t MISO = 13;
47+
static const uint8_t SCK = 12;
48+
49+
// 屏幕
50+
#define TFT_DC 14
51+
#define TFT_CS 17
52+
#define TFT_RST 15
53+
#define TFT_BL 16 // Backlight pin
54+
55+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)