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 a0ad987

Browse filesBrowse files
lewisxheme-no-dev
authored andcommitted
Add TTGO T-Watch board definition (espressif#2681)
1 parent 271e5cd commit a0ad987
Copy full SHA for a0ad987

File tree

2 files changed

+111
-0
lines changed
Filter options

2 files changed

+111
-0
lines changed

‎boards.txt

Copy file name to clipboardExpand all lines: boards.txt
+68Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3580,4 +3580,72 @@ sparkfun_lora_gateway_1-channel.menu.UploadSpeed.512000.upload.speed=512000
35803580

35813581
##############################################################
35823582

3583+
ttgo-t-watch.name=TTGO T-Watch
3584+
3585+
ttgo-t-watch.upload.tool=esptool_py
3586+
ttgo-t-watch.upload.maximum_size=6553600
3587+
ttgo-t-watch.upload.maximum_data_size=4521984
3588+
ttgo-t-watch.upload.wait_for_upload_port=true
3589+
3590+
ttgo-t-watch.serial.disableDTR=true
3591+
ttgo-t-watch.serial.disableRTS=true
3592+
3593+
ttgo-t-watch.build.mcu=esp32
3594+
ttgo-t-watch.build.core=esp32
3595+
ttgo-t-watch.build.variant=twatch
3596+
ttgo-t-watch.build.board=T-Watch
3597+
3598+
ttgo-t-watch.build.f_cpu=240000000L
3599+
ttgo-t-watch.build.flash_size=16MB
3600+
ttgo-t-watch.build.flash_freq=80m
3601+
ttgo-t-watch.build.flash_mode=dio
3602+
ttgo-t-watch.build.boot=dio
3603+
ttgo-t-watch.build.partitions=default_16MB
3604+
ttgo-t-watch.build.defines=
3605+
3606+
ttgo-t-watch.menu.PSRAM.enabled=Enabled
3607+
ttgo-t-watch.menu.PSRAM.enabled.build.defines=-DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue
3608+
ttgo-t-watch.menu.PSRAM.disabled=Disabled
3609+
ttgo-t-watch.menu.PSRAM.disabled.build.defines=
3610+
3611+
ttgo-t-watch.menu.PartitionScheme.default=Default (2 x 6.5 MB app, 3.6 MB SPIFFS)
3612+
ttgo-t-watch.menu.PartitionScheme.default.build.partitions=default_16MB
3613+
ttgo-t-watch.menu.PartitionScheme.large_spiffs=Large SPIFFS (7 MB)
3614+
ttgo-t-watch.menu.PartitionScheme.large_spiffs.build.partitions=large_spiffs_16MB
3615+
ttgo-t-watch.menu.PartitionScheme.large_spiffs.upload.maximum_size=4685824
3616+
3617+
ttgo-t-watch.menu.UploadSpeed.2000000=2000000
3618+
ttgo-t-watch.menu.UploadSpeed.2000000.upload.speed=2000000
3619+
ttgo-t-watch.menu.UploadSpeed.1152000=1152000
3620+
ttgo-t-watch.menu.UploadSpeed.1152000.upload.speed=1152000
3621+
ttgo-t-watch.menu.UploadSpeed.921600=921600
3622+
ttgo-t-watch.menu.UploadSpeed.921600.upload.speed=921600
3623+
ttgo-t-watch.menu.UploadSpeed.115200=115200
3624+
ttgo-t-watch.menu.UploadSpeed.115200.upload.speed=115200
3625+
ttgo-t-watch.menu.UploadSpeed.256000.windows=256000
3626+
ttgo-t-watch.menu.UploadSpeed.256000.upload.speed=256000
3627+
ttgo-t-watch.menu.UploadSpeed.230400.windows.upload.speed=256000
3628+
ttgo-t-watch.menu.UploadSpeed.230400=230400
3629+
ttgo-t-watch.menu.UploadSpeed.230400.upload.speed=230400
3630+
ttgo-t-watch.menu.UploadSpeed.460800.linux=460800
3631+
ttgo-t-watch.menu.UploadSpeed.460800.macosx=460800
3632+
ttgo-t-watch.menu.UploadSpeed.460800.upload.speed=460800
3633+
ttgo-t-watch.menu.UploadSpeed.512000.windows=512000
3634+
ttgo-t-watch.menu.UploadSpeed.512000.upload.speed=512000
3635+
3636+
ttgo-t-watch.menu.DebugLevel.none=None
3637+
ttgo-t-watch.menu.DebugLevel.none.build.code_debug=0
3638+
ttgo-t-watch.menu.DebugLevel.error=Error
3639+
ttgo-t-watch.menu.DebugLevel.error.build.code_debug=1
3640+
ttgo-t-watch.menu.DebugLevel.warn=Warn
3641+
ttgo-t-watch.menu.DebugLevel.warn.build.code_debug=2
3642+
ttgo-t-watch.menu.DebugLevel.info=Info
3643+
ttgo-t-watch.menu.DebugLevel.info.build.code_debug=3
3644+
ttgo-t-watch.menu.DebugLevel.debug=Debug
3645+
ttgo-t-watch.menu.DebugLevel.debug.build.code_debug=4
3646+
ttgo-t-watch.menu.DebugLevel.verbose=Verbose
3647+
ttgo-t-watch.menu.DebugLevel.verbose.build.code_debug=5
3648+
3649+
##############################################################
3650+
35833651

‎variants/twatch/pins_arduino.h

Copy file name to clipboard
+43Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
// touch screen
15+
#define TP_SDA 14
16+
#define TP_SCL 15
17+
#define TP_INT 38
18+
19+
// Interrupt IO port
20+
#define RTC_INT 37
21+
#define APX20X_INT 35
22+
#define BMA42X_INT1 39
23+
#define BMA42X_INT2 4
24+
25+
//Serial1 Already assigned to GPS LORA
26+
#define TX1 33
27+
#define RX1 34
28+
29+
static const uint8_t KEY_BUILTIN = 36;
30+
31+
// Already assigned to BMA423 PCF8563 and external extensions
32+
static const uint8_t SDA = 21;
33+
static const uint8_t SCL = 22;
34+
// SPI has been configured as an SD card slot and must be removed when downloading
35+
static const uint8_t SS = 13;
36+
static const uint8_t MOSI = 15;
37+
static const uint8_t MISO = 2;
38+
static const uint8_t SCK = 14;
39+
// Externally programmable IO
40+
static const uint8_t DAC1 = 25;
41+
static const uint8_t DAC2 = 26;
42+
43+
#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.