Skip to content

Instantly share code, notes, and snippets.

@reefwing
Last active December 11, 2022 00:03
Show Gist options
  • Select an option

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

Select an option

Save reefwing/52199261fc400db7035bd4ca61b6f90a to your computer and use it in GitHub Desktop.
Peripheral definition for the TWatch Variants
// Extract from LilyGoWatch.h...
#elif defined(LILYGO_WATCH_2020_V1)
#include "board/twatch2020_v1.h"
// Has
#define LILYGO_WATCH_HAS_TOUCH // ->getTouch() defined
#define LILYGO_WATCH_HAS_DISPLAY // ->tft defined
#define LILYGO_WATCH_HAS_BUZZER
#define LILYGO_WATCH_HAS_MOTOR // ->motor_begin() & shake()
#define LILYGO_WATCH_HAS_PCF8563 // ->rtc defined
#define LILYGO_WATCH_HAS_BMA423 // ->bma defined
#define LILYGO_WATCH_HAS_AXP202 // ->power defined
#define LILYGO_WATCH_HAS_IRREMOTE // Use IRremote.h
#define LILYGO_WATCH_HAS_BACKLIGHT // ->bl defined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment