Skip to content

Commit c4f0325

Browse files
authored
Merge pull request adafruit#3991 from TG-Techie/main
Revision to TG-Watch
2 parents 8c0a9a2 + c63d5a4 commit c4f0325

12 files changed

+109
-58
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ jobs:
176176
board:
177177
- "8086_commander"
178178
- "ADM_B_NRF52840_1"
179-
- "TG-Watch02A"
179+
- "TG-Watch"
180180
- "aloriumtech_evo_m51"
181181
- "aramcon_badge_2019"
182182
- "arduino_mkr1300"

.gitmodules

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,18 @@
156156
[submodule "ports/esp32s2/certificates/nina-fw"]
157157
path = ports/esp32s2/certificates/nina-fw
158158
url = https://github.com/adafruit/nina-fw.git
159+
[submodule "frozen/Adafruit_CircuitPython_ST7789"]
160+
path = frozen/Adafruit_CircuitPython_ST7789
161+
url = https://github.com/adafruit/Adafruit_CircuitPython_ST7789
162+
[submodule "frozen/Adafruit_CircuitPython_Display_Shapes"]
163+
path = frozen/Adafruit_CircuitPython_Display_Shapes
164+
url = https://github.com/adafruit/Adafruit_CircuitPython_Display_Shapes
165+
[submodule "frozen/Adafruit_CircuitPython_Display_Text"]
166+
path = frozen/Adafruit_CircuitPython_Display_Text
167+
url = https://github.com/adafruit/Adafruit_CircuitPython_Display_Text
168+
[submodule "frozen/Adafruit_CircuitPython_ProgressBar"]
169+
path = frozen/Adafruit_CircuitPython_ProgressBar
170+
url = https://github.com/adafruit/Adafruit_CircuitPython_ProgressBar
171+
[submodule "frozen/Adafruit_CircuitPython_LC709203F"]
172+
path = frozen/Adafruit_CircuitPython_LC709203F
173+
url = https://github.com/adafruit/Adafruit_CircuitPython_LC709203F

ports/nrf/boards/TG-Watch02A/mpconfigboard.h renamed to ports/nrf/boards/TG-Watch/mpconfigboard.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,15 @@
2727

2828
#include "nrfx/hal/nrf_gpio.h"
2929

30-
#define MICROPY_HW_BOARD_NAME "TG-Techie's TG-Watch02A"
30+
#define MICROPY_HW_BOARD_NAME "TG-Watch"
3131
#define MICROPY_HW_MCU_NAME "nRF52840"
3232

33-
#define MICROPY_HW_LED_STATUS (&pin_P0_07)
33+
#define MICROPY_HW_NEOPIXEL (&pin_P0_16)
34+
#define MICROPY_HW_LED_STATUS (&pin_P1_15)
35+
36+
// TG-Gui requires a deeper call stack than normal CircuitPython
37+
#define CIRCUITPY_PYSTACK_SIZE 8192 // 1536 is the normal size, (32 bytes/frame * 48 frames)
38+
#define BOARD_HAS_CRYSTAL 0
3439

3540
#if QSPI_FLASH_FILESYSTEM
3641
#define MICROPY_QSPI_DATA0 NRF_GPIO_PIN_MAP(0, 17)
@@ -48,8 +53,6 @@
4853
#define SPI_FLASH_CS_PIN &pin_P0_20
4954
#endif
5055

51-
#define BOARD_HAS_CRYSTAL 0
52-
5356
#define DEFAULT_I2C_BUS_SCL (&pin_P0_11)
5457
#define DEFAULT_I2C_BUS_SDA (&pin_P0_12)
5558

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
USB_VID = 0x239A
22
USB_PID = 0x80DB
3-
USB_PRODUCT = "TG-Watch02A"
4-
USB_MANUFACTURER = "TG-Tech"
3+
USB_PRODUCT = "TG-Watch"
4+
USB_MANUFACTURER = "TG-Techie"
55

66
MCU_CHIP = nrf52840
77

@@ -11,9 +11,14 @@ EXTERNAL_FLASH_DEVICES = "GD25Q16C, W25Q128JV_SQ"
1111

1212
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_BusDevice
1313
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_Register
14+
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_ST7789
15+
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_Display_Shapes
16+
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_Display_Text
17+
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_ProgressBar
1418
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_LSM6DS
1519
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_FocalTouch
1620
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_DS3231
21+
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_LC709203F
1722
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_DRV2605
1823
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_BLE
1924
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_BLE_Apple_Notification_Center

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy