Skip to content

Commit 498be2e

Browse files
committed
fix typos
1 parent 33c5306 commit 498be2e

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

ChronosESP32.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,14 @@ class ChronosESP32 : public BLEServerCallbacks, public BLECharacteristicCallback
188188
String getWeatherTime();
189189
Weather getWeatherAt(int index);
190190

191-
// settings
191+
// TODO (settings)
192192
// isQuietActive
193193
// isSleepActive
194194

195195
// alarms
196196
Alarm getAlarm(int index);
197197
void setAlarm(int index, Alarm alarm);
198+
// TODO (alarms)
198199
// alarm active callback
199200
// isAlarmActive
200201
// getActiveAlarms

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ Setup your ESP32 as a smartwatch and connect to Chronos app over BLE.
1414
- [x] Controls (Music, Find Phone, Camera)
1515
- [ ] Alarms
1616

17-
## App
17+
## Companion App
1818

1919
<a href='https://fbiego.com/chronos/app?id=esp32'><img alt='Download Chronos' height="100px" src='https://fbiego.com/chronos/img/chronos.png'/></a>
2020

21-
- [`Chronos`](https://fbiego.com/chronos/app?id=esp32)
21+
[`Chronos`](https://fbiego.com/chronos/app?id=esp32)
2222

2323
## Functions
2424

examples/control/control.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ void loop()
8484
watch.musicControl(MUSIC_TOGGLE); // MUSIC_PLAY, MUSIC_PAUSE, MUSIC_PREVIOUS, MUSIC_NEXT, MUSIC_TOGGLE, VOLUME_UP, VOLUME_DOWN, VOLUME_MUTE
8585
Serial.println("Sent music command");
8686

87-
// watch.setVolume(50); // set the music volume [0-100] (expreimental)
87+
// watch.setVolume(50); // set the music volume [0-100] (experimental)
8888

8989
// find phone
9090
// watch.findPhone(true); // true -> ring the phone, false -> stop the ringing, the ringing will also be stopped automatically after 10 seconds;

examples/watch/watch.ino

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,12 +283,13 @@ void setup()
283283
Serial.println(watch.getAddress()); // mac address, call after begin()
284284

285285
watch.setBattery(80); // set the battery level, will be synced to the app
286+
286287

287-
// watch.clearNotifications();
288+
// watch.clearNotifications(); // clear the default notification (Chronos)
288289

289290
watch.set24Hour(true); // the 24 hour mode will be overwritten when the command is received from the app
290291
// this modifies the return of the functions below
291-
watch.getAmPmC(true); // 12 hour mode false->(am/pm), true->(AM/PM), if 24 hour mode returns empty string ("")
292+
watch.getAmPmC(true); // 12 hour mode true->(am/pm), false->(AM/PM), if 24 hour mode returns empty string ("")
292293
watch.getHourC(); // (0-12), (0-23)
293294
watch.getHourZ(); // zero padded hour (00-12), (00-23)
294295
watch.is24Hour(); // resturns whether in 24 hour mode
@@ -298,6 +299,8 @@ void loop()
298299
{
299300
watch.loop(); // handles internal routine functions
300301

302+
// watch.setBattery(85, true); // set the battery level and charging state
303+
301304
String time = watch.getHourC() + watch.getTime(":%M ") + watch.getAmPmC();
302305
Serial.println(time);
303306
delay(5000);
@@ -325,7 +328,7 @@ void loop()
325328

326329
/*
327330
// read the alarms, 8 available
328-
// the alarms are only stored as received from the app
331+
// the alarms are only stored as received from the app, there is no function to trigger it yet
329332
for (int j = 0; j < 8; j++){
330333
Alarm a = watch.getAlarm(j);
331334
Serial.print("Alarm: ");
@@ -349,7 +352,7 @@ void loop()
349352
350353
for (int i = 0; i < n; i++)
351354
{
352-
// iterate through available notifications, index 0 is the latest received notification
355+
// iterate through weather forecast, index 0 is today, 1 tomorrow...etc
353356
Weather w = watch.getWeatherAt(i);
354357
Serial.print("Day:"); // day of the week (0 - 6)
355358
Serial.print(w.day);

0 commit comments

Comments
 (0)