mirror of https://github.com/sqfmi/Watchy.git
Merge branch 'master' into dev
commit
44c51fce90
|
@ -15,9 +15,8 @@ Visit [**https://watchy.sqfmi.com**](https://watchy.sqfmi.com) for documentation
|
||||||
2. Install this library (search for **Watchy** in the library manager), and any other dependencies when prompted
|
2. Install this library (search for **Watchy** in the library manager), and any other dependencies when prompted
|
||||||
3. Check out the examples under ```Examples``` -> ```Watchy```
|
3. Check out the examples under ```Examples``` -> ```Watchy```
|
||||||
4. Compile & Upload with these board settings:
|
4. Compile & Upload with these board settings:
|
||||||
* Board: "Watchy"
|
* Board: "ESP32 Dev Module"
|
||||||
* Partition Scheme: "Huge App"
|
* Partition Scheme: "Huge App"
|
||||||
* Board Revision: "Watchy v2.0" (if purchased in 2022)
|
|
||||||
* All Other Settings: leave to default
|
* All Other Settings: leave to default
|
||||||
|
|
||||||
You may also have to install the [CP2104 USB to Serial drivers](https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers) if the port is not automatically detected.
|
You may also have to install the [CP2104 USB to Serial drivers](https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers) if the port is not automatically detected.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "Watchy",
|
"name": "Watchy",
|
||||||
"version": "1.4.0-dev",
|
"version": "1.4.1",
|
||||||
"description": "Watchy - An Open Source E-Paper Watch by SQFMI",
|
"description": "Watchy - An Open Source E-Paper Watch by SQFMI",
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name=Watchy
|
name=Watchy
|
||||||
version=1.4.0-dev
|
version=1.4.1
|
||||||
author=SQFMI
|
author=SQFMI
|
||||||
maintainer=SQFMI
|
maintainer=SQFMI
|
||||||
sentence=Watchy - An Open Source E-Paper Watch by SQFMI
|
sentence=Watchy - An Open Source E-Paper Watch by SQFMI
|
||||||
|
|
18
src/Watchy.h
18
src/Watchy.h
|
@ -1,20 +1,20 @@
|
||||||
#ifndef WATCHY_H
|
#ifndef WATCHY_H
|
||||||
#define WATCHY_H
|
#define WATCHY_H
|
||||||
|
|
||||||
#include "BLE.h"
|
|
||||||
#include "DSEG7_Classic_Bold_53.h"
|
|
||||||
#include "WatchyRTC.h"
|
|
||||||
#include "bma.h"
|
|
||||||
#include "config.h"
|
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
#include <Arduino_JSON.h>
|
#include <WiFiManager.h>
|
||||||
#include <Fonts/FreeMonoBold9pt7b.h>
|
|
||||||
#include <GxEPD2_BW.h>
|
|
||||||
#include <HTTPClient.h>
|
#include <HTTPClient.h>
|
||||||
#include <NTPClient.h>
|
#include <NTPClient.h>
|
||||||
#include <WiFiManager.h>
|
|
||||||
#include <WiFiUdp.h>
|
#include <WiFiUdp.h>
|
||||||
|
#include <Arduino_JSON.h>
|
||||||
|
#include <GxEPD2_BW.h>
|
||||||
#include <Wire.h>
|
#include <Wire.h>
|
||||||
|
#include <Fonts/FreeMonoBold9pt7b.h>
|
||||||
|
#include "DSEG7_Classic_Bold_53.h"
|
||||||
|
#include "WatchyRTC.h"
|
||||||
|
#include "BLE.h"
|
||||||
|
#include "bma.h"
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
typedef struct weatherData {
|
typedef struct weatherData {
|
||||||
int8_t temperature;
|
int8_t temperature;
|
||||||
|
|
46
src/config.h
46
src/config.h
|
@ -1,8 +1,50 @@
|
||||||
#ifndef CONFIG_H
|
#ifndef CONFIG_H
|
||||||
#define CONFIG_H
|
#define CONFIG_H
|
||||||
|
|
||||||
// display
|
//pins
|
||||||
#define DISPLAY_WIDTH 200
|
#define MENU_BTN_PIN 26
|
||||||
|
#define BACK_BTN_PIN 25
|
||||||
|
#define DOWN_BTN_PIN 4
|
||||||
|
#define DISPLAY_CS 5
|
||||||
|
#define DISPLAY_RES 9
|
||||||
|
#define DISPLAY_DC 10
|
||||||
|
#define DISPLAY_BUSY 19
|
||||||
|
#define ACC_INT_1_PIN 14
|
||||||
|
#define ACC_INT_2_PIN 12
|
||||||
|
#define VIB_MOTOR_PIN 13
|
||||||
|
#define RTC_INT_PIN 27
|
||||||
|
|
||||||
|
|
||||||
|
#if !defined(ARDUINO_WATCHY_V10) && !defined(ARDUINO_WATCHY_V15) && !defined(ARDUINO_WATCHY_V20)
|
||||||
|
#warning Hardware revision is not defined at the project level. Using hard-coded value
|
||||||
|
#define ARDUINO_WATCHY_V20
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined (ARDUINO_WATCHY_V10)
|
||||||
|
#define UP_BTN_PIN 32
|
||||||
|
#define BATT_ADC_PIN 33
|
||||||
|
#define UP_BTN_MASK GPIO_SEL_32
|
||||||
|
#define RTC_TYPE 1 //DS3231
|
||||||
|
#elif defined (ARDUINO_WATCHY_V15)
|
||||||
|
#define UP_BTN_PIN 32
|
||||||
|
#define BATT_ADC_PIN 35
|
||||||
|
#define UP_BTN_MASK GPIO_SEL_32
|
||||||
|
#define RTC_TYPE 2 //PCF8563
|
||||||
|
#elif defined (ARDUINO_WATCHY_V20)
|
||||||
|
#define UP_BTN_PIN 35
|
||||||
|
#define BATT_ADC_PIN 34
|
||||||
|
#define UP_BTN_MASK GPIO_SEL_35
|
||||||
|
#define RTC_TYPE 2 //PCF8563
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define MENU_BTN_MASK GPIO_SEL_26
|
||||||
|
#define BACK_BTN_MASK GPIO_SEL_25
|
||||||
|
#define DOWN_BTN_MASK GPIO_SEL_4
|
||||||
|
#define ACC_INT_MASK GPIO_SEL_14
|
||||||
|
#define BTN_PIN_MASK MENU_BTN_MASK|BACK_BTN_MASK|UP_BTN_MASK|DOWN_BTN_MASK
|
||||||
|
|
||||||
|
//display
|
||||||
|
#define DISPLAY_WIDTH 200
|
||||||
#define DISPLAY_HEIGHT 200
|
#define DISPLAY_HEIGHT 200
|
||||||
// wifi
|
// wifi
|
||||||
#define WIFI_AP_TIMEOUT 60
|
#define WIFI_AP_TIMEOUT 60
|
||||||
|
|
Loading…
Reference in New Issue