Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 02ee799

Browse filesBrowse files
lewisxheme-no-dev
authored andcommitted
Add T-Beam Board Support (espressif#1852)
1 parent ce61074 commit 02ee799
Copy full SHA for 02ee799

File tree

Expand file treeCollapse file tree

2 files changed

+122
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+122
-0
lines changed

‎boards.txt

Copy file name to clipboardExpand all lines: boards.txt
+61Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2272,3 +2272,64 @@ wipy3.menu.DebugLevel.debug=Debug
22722272
wipy3.menu.DebugLevel.debug.build.code_debug=4
22732273
wipy3.menu.DebugLevel.verbose=Verbose
22742274
wipy3.menu.DebugLevel.verbose.build.code_debug=5
2275+
2276+
##############################################################
2277+
2278+
t-beam.name=T-Beam
2279+
2280+
t-beam.upload.tool=esptool
2281+
t-beam.upload.maximum_size=1310720
2282+
t-beam.upload.maximum_data_size=327680
2283+
t-beam.upload.wait_for_upload_port=true
2284+
2285+
t-beam.serial.disableDTR=true
2286+
t-beam.serial.disableRTS=true
2287+
2288+
t-beam.build.mcu=esp32
2289+
t-beam.build.core=esp32
2290+
t-beam.build.variant=t-beam
2291+
t-beam.build.board=T-Beam
2292+
2293+
t-beam.build.f_cpu=240000000L
2294+
t-beam.build.flash_mode=dio
2295+
t-beam.build.flash_size=4MB
2296+
t-beam.build.boot=dio
2297+
t-beam.build.partitions=default
2298+
2299+
t-beam.menu.PSRAM.disabled=Disabled
2300+
t-beam.menu.PSRAM.disabled.build.defines=
2301+
t-beam.menu.PSRAM.enabled=Enabled
2302+
t-beam.menu.PSRAM.enabled.build.defines=-DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue
2303+
2304+
t-beam.menu.FlashFreq.80=80MHz
2305+
t-beam.menu.FlashFreq.80.build.flash_freq=80m
2306+
t-beam.menu.FlashFreq.40=40MHz
2307+
t-beam.menu.FlashFreq.40.build.flash_freq=40m
2308+
2309+
t-beam.menu.UploadSpeed.921600=921600
2310+
t-beam.menu.UploadSpeed.921600.upload.speed=921600
2311+
t-beam.menu.UploadSpeed.115200=115200
2312+
t-beam.menu.UploadSpeed.115200.upload.speed=115200
2313+
t-beam.menu.UploadSpeed.256000.windows=256000
2314+
t-beam.menu.UploadSpeed.256000.upload.speed=256000
2315+
t-beam.menu.UploadSpeed.230400.windows.upload.speed=256000
2316+
t-beam.menu.UploadSpeed.230400=230400
2317+
t-beam.menu.UploadSpeed.230400.upload.speed=230400
2318+
t-beam.menu.UploadSpeed.460800.linux=460800
2319+
t-beam.menu.UploadSpeed.460800.macosx=460800
2320+
t-beam.menu.UploadSpeed.460800.upload.speed=460800
2321+
t-beam.menu.UploadSpeed.512000.windows=512000
2322+
t-beam.menu.UploadSpeed.512000.upload.speed=512000
2323+
2324+
t-beam.menu.DebugLevel.none=None
2325+
t-beam.menu.DebugLevel.none.build.code_debug=0
2326+
t-beam.menu.DebugLevel.error=Error
2327+
t-beam.menu.DebugLevel.error.build.code_debug=1
2328+
t-beam.menu.DebugLevel.warn=Warn
2329+
t-beam.menu.DebugLevel.warn.build.code_debug=2
2330+
t-beam.menu.DebugLevel.info=Info
2331+
t-beam.menu.DebugLevel.info.build.code_debug=3
2332+
t-beam.menu.DebugLevel.debug=Debug
2333+
t-beam.menu.DebugLevel.debug.build.code_debug=4
2334+
t-beam.menu.DebugLevel.verbose=Verbose
2335+
t-beam.menu.DebugLevel.verbose.build.code_debug=5

‎variants/t-beam/pins_arduino.h

Copy file name to clipboard
+61Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
#include <stdint.h>
5+
6+
#define EXTERNAL_NUM_INTERRUPTS 16
7+
#define NUM_DIGITAL_PINS 20
8+
#define NUM_ANALOG_INPUTS 16
9+
10+
#define analogInputToDigitalPin(p) (((p)<20)?(esp32_adc2gpio[(p)]):-1)
11+
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
12+
#define digitalPinHasPWM(p) (p < 34)
13+
14+
// SPI LoRa Radio
15+
#define LORA_SCK 5 // GPIO5 - SX1276 SCK
16+
#define LORA_MISO 19 // GPIO19 - SX1276 MISO
17+
#define LORA_MOSI 27 // GPIO27 - SX1276 MOSI
18+
#define LORA_CS 18 // GPIO18 - SX1276 CS
19+
#define LORA_RST 23 // GPIO23 - SX1276 RST
20+
#define LORA_IO0 26 // GPIO26 - SX1276 IO0
21+
#define LORA_IO1 33 // GPIO33 - SX1276 IO1
22+
#define LORA_IO2 32 // GPIO32 - SX1276 IO2
23+
24+
static const uint8_t TX = 1;
25+
static const uint8_t RX = 3;
26+
27+
static const uint8_t SDA = 21;
28+
static const uint8_t SCL = 22;
29+
30+
static const uint8_t SS = 18;
31+
static const uint8_t MOSI = 27;
32+
static const uint8_t MISO = 19;
33+
static const uint8_t SCK = 5;
34+
35+
static const uint8_t A0 = 36;
36+
static const uint8_t A3 = 39;
37+
static const uint8_t A4 = 32;
38+
static const uint8_t A5 = 33;
39+
static const uint8_t A6 = 34;
40+
static const uint8_t A7 = 35;
41+
42+
static const uint8_t A10 = 4;
43+
static const uint8_t A11 = 0;
44+
static const uint8_t A12 = 2;
45+
static const uint8_t A14 = 13;
46+
static const uint8_t A16 = 14;
47+
static const uint8_t A17 = 27; //lora
48+
static const uint8_t A18 = 25;
49+
static const uint8_t A19 = 26; //lora
50+
51+
static const uint8_t T0 = 4;
52+
static const uint8_t T1 = 0;
53+
static const uint8_t T2 = 2;
54+
static const uint8_t T4 = 13;
55+
static const uint8_t T6 = 14;
56+
static const uint8_t T8 = 32;
57+
static const uint8_t T9 = 33;
58+
59+
static const uint8_t DAC2 = 25;
60+
61+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.