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 4a1cbeb

Browse filesBrowse files
authored
Add Watchy board (espressif#6158)
1 parent a593206 commit 4a1cbeb
Copy full SHA for 4a1cbeb

File tree

2 files changed

+131
-0
lines changed
Filter options

2 files changed

+131
-0
lines changed

‎boards.txt

Copy file name to clipboardExpand all lines: boards.txt
+71Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11099,3 +11099,74 @@ lionbit.menu.DebugLevel.verbose=Verbose
1109911099
lionbit.menu.DebugLevel.verbose.build.code_debug=5
1110011100

1110111101
##############################################################
11102+
11103+
watchy.name=Watchy
11104+
11105+
watchy.upload.tool=esptool_py
11106+
watchy.upload.maximum_size=1310720
11107+
watchy.upload.maximum_data_size=327680
11108+
watchy.upload.flags=
11109+
watchy.upload.extra_flags=
11110+
11111+
watchy.serial.disableDTR=true
11112+
watchy.serial.disableRTS=true
11113+
11114+
watchy.build.tarch=xtensa
11115+
watchy.build.bootloader_addr=0x1000
11116+
watchy.build.target=esp32
11117+
watchy.build.mcu=esp32
11118+
watchy.build.core=esp32
11119+
watchy.build.variant=watchy
11120+
watchy.build.board=WATCHY
11121+
11122+
watchy.build.f_cpu=240000000L
11123+
watchy.build.flash_size=4MB
11124+
watchy.build.flash_freq=80m
11125+
watchy.build.flash_mode=dio
11126+
watchy.build.boot=qio
11127+
watchy.build.partitions=min_spiffs
11128+
watchy.build.defines=
11129+
11130+
watchy.menu.Revision.v10=Watchy v1.0
11131+
watchy.menu.Revision.v10.build.board=WATCHY_V10
11132+
watchy.menu.Revision.v15=Watchy v1.5
11133+
watchy.menu.Revision.v15.build.board=WATCHY_V15
11134+
watchy.menu.Revision.v20=Watchy v2.0
11135+
watchy.menu.Revision.v20.build.board=WATCHY_V20
11136+
11137+
watchy.menu.PartitionScheme.huge_app=Huge APP (3MB No OTA/1MB SPIFFS)
11138+
watchy.menu.PartitionScheme.huge_app.build.partitions=huge_app
11139+
watchy.menu.PartitionScheme.huge_app.upload.maximum_size=3145728
11140+
watchy.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
11141+
watchy.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
11142+
watchy.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
11143+
11144+
watchy.menu.UploadSpeed.921600=921600
11145+
watchy.menu.UploadSpeed.921600.upload.speed=921600
11146+
watchy.menu.UploadSpeed.115200=115200
11147+
watchy.menu.UploadSpeed.115200.upload.speed=115200
11148+
watchy.menu.UploadSpeed.256000.windows=256000
11149+
watchy.menu.UploadSpeed.256000.upload.speed=256000
11150+
watchy.menu.UploadSpeed.230400.windows.upload.speed=256000
11151+
watchy.menu.UploadSpeed.230400=230400
11152+
watchy.menu.UploadSpeed.230400.upload.speed=230400
11153+
watchy.menu.UploadSpeed.460800.linux=460800
11154+
watchy.menu.UploadSpeed.460800.macosx=460800
11155+
watchy.menu.UploadSpeed.460800.upload.speed=460800
11156+
watchy.menu.UploadSpeed.512000.windows=512000
11157+
watchy.menu.UploadSpeed.512000.upload.speed=512000
11158+
11159+
watchy.menu.DebugLevel.none=None
11160+
watchy.menu.DebugLevel.none.build.code_debug=0
11161+
watchy.menu.DebugLevel.error=Error
11162+
watchy.menu.DebugLevel.error.build.code_debug=1
11163+
watchy.menu.DebugLevel.warn=Warn
11164+
watchy.menu.DebugLevel.warn.build.code_debug=2
11165+
watchy.menu.DebugLevel.info=Info
11166+
watchy.menu.DebugLevel.info.build.code_debug=3
11167+
watchy.menu.DebugLevel.debug=Debug
11168+
watchy.menu.DebugLevel.debug.build.code_debug=4
11169+
watchy.menu.DebugLevel.verbose=Verbose
11170+
watchy.menu.DebugLevel.verbose.build.code_debug=5
11171+
11172+
##############################################################

‎variants/watchy/pins_arduino.h

Copy file name to clipboard
+60Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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 40
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+
static const uint8_t TX = 1;
15+
static const uint8_t RX = 3;
16+
17+
static const uint8_t SDA = 21;
18+
static const uint8_t SCL = 22;
19+
20+
static const uint8_t SS = 5;
21+
static const uint8_t MOSI = 23;
22+
static const uint8_t MISO = 19;
23+
static const uint8_t SCK = 18;
24+
25+
static const uint8_t MENU_BTN_PIN = 26;
26+
static const uint8_t BACK_BTN_PIN = 25;
27+
static const uint8_t DOWN_BTN_PIN = 4;
28+
static const uint8_t DISPLAY_CS = 5;
29+
static const uint8_t DISPLAY_RES = 9;
30+
static const uint8_t DISPLAY_DC = 10;
31+
static const uint8_t DISPLAY_BUSY = 19;
32+
static const uint8_t ACC_INT_1_PIN = 14;
33+
static const uint8_t ACC_INT_2_PIN = 12;
34+
static const uint8_t VIB_MOTOR_PIN = 13;
35+
static const uint8_t RTC_INT_PIN = 27;
36+
37+
#if defined (ARDUINO_WATCHY_V10)
38+
static const uint8_t UP_BTN_PIN = 32;
39+
static const uint8_t BATT_ADC_PIN = 33;
40+
#define UP_BTN_MASK GPIO_SEL_32
41+
#define RTC_TYPE 1 //DS3231
42+
#elif defined (ARDUINO_WATCHY_V15)
43+
static const uint8_t UP_BTN_PIN = 32;
44+
static const uint8_t BATT_ADC_PIN = 35;
45+
#define UP_BTN_MASK GPIO_SEL_32
46+
#define RTC_TYPE 2 //PCF8563
47+
#elif defined (ARDUINO_WATCHY_V20)
48+
static const uint8_t UP_BTN_PIN = 35;
49+
static const uint8_t BATT_ADC_PIN = 34;
50+
#define UP_BTN_MASK GPIO_SEL_35
51+
#define RTC_TYPE 2 //PCF8563
52+
#endif
53+
54+
#define MENU_BTN_MASK GPIO_SEL_26
55+
#define BACK_BTN_MASK GPIO_SEL_25
56+
#define DOWN_BTN_MASK GPIO_SEL_4
57+
#define ACC_INT_MASK GPIO_SEL_14
58+
#define BTN_PIN_MASK MENU_BTN_MASK|BACK_BTN_MASK|UP_BTN_MASK|DOWN_BTN_MASK
59+
60+
#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.