Skip to content

Instantly share code, notes, and snippets.

@reefwing
Created December 9, 2022 08:17
Show Gist options
  • Select an option

  • Save reefwing/cf372d3842cb5cecfbd5ce75e5ac2113 to your computer and use it in GitHub Desktop.

Select an option

Save reefwing/cf372d3842cb5cecfbd5ce75e5ac2113 to your computer and use it in GitHub Desktop.
Pin Mapping for the TWatch 2020 v1
#pragma once
#define TFT_WIDTH 240
#define TFT_HEIGHT 240
#define TWATCH_TFT_MISO (gpio_num_t)0
#define TWATCH_TFT_MOSI (gpio_num_t)19
#define TWATCH_TFT_SCLK (gpio_num_t)18
#define TWATCH_TFT_CS (gpio_num_t)5
#define TWATCH_TFT_DC (gpio_num_t)27
#define TWATCH_TFT_RST (gpio_num_t)-1
#define TWATCH_TFT_BL (gpio_num_t)12
#define TOUCH_SDA 23
#define TOUCH_SCL 32
#define TOUCH_INT 38
#define SEN_SDA 21
#define SEN_SCL 22
#define RTC_INT_PIN 37
#define AXP202_INT 35
#define BMA423_INT1 39
#define MOTOR_PIN 4
#define TWATCH_2020_IR_PIN 13
#define TWATCH_DAC_IIS_BCK 26
#define TWATCH_DAC_IIS_WS 25
#define TWATCH_DAC_IIS_DOUT 33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment