1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Sensor Watch: Segment LCD Display</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">Sensor Watch<span id="projectnumber"> 0.0.1</span>
</div>
<div id="projectbrief">A board replacement for the classic Casio F-91W wristwatch, powered by a Microchip SAM L22 microcontroller.</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.3 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#typedef-members">Typedefs</a> |
<a href="#enum-members">Enumerations</a> |
<a href="#func-members">Functions</a> </div>
<div class="headertitle"><div class="title">Segment LCD Display</div></div>
</div><!--header-->
<div class="contents">
<p>This section covers functions related to the Segment LCD display driver, which is responsible for displaying strings of characters and indicators on the main watch display.
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="typedef-members" name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:ga12f90dd93f63366e5a08f161e5f6c9f5"><td class="memItemLeft" align="right" valign="top"><a id="ga12f90dd93f63366e5a08f161e5f6c9f5" name="ga12f90dd93f63366e5a08f161e5f6c9f5"></a>
typedef enum <a class="el" href="group__slcd.html#ga37a28bfc539ea2bb83107d59f77b20d2">WatchIndicatorSegment</a> </td><td class="memItemRight" valign="bottom"><b>WatchIndicatorSegment</b></td></tr>
<tr class="memdesc:ga12f90dd93f63366e5a08f161e5f6c9f5"><td class="mdescLeft"> </td><td class="mdescRight">An enum listing the icons and indicators available on the watch. <br /></td></tr>
<tr class="separator:ga12f90dd93f63366e5a08f161e5f6c9f5"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="enum-members" name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga37a28bfc539ea2bb83107d59f77b20d2"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="group__slcd.html#ga37a28bfc539ea2bb83107d59f77b20d2">WatchIndicatorSegment</a> { <br />
  <a class="el" href="group__slcd.html#gga37a28bfc539ea2bb83107d59f77b20d2a827a013c00782a143f13a4f88ce50292">WATCH_INDICATOR_SIGNAL</a> = 0
, <a class="el" href="group__slcd.html#gga37a28bfc539ea2bb83107d59f77b20d2a44727968b16d73ca11e3d19795085ee3">WATCH_INDICATOR_BELL</a>
, <a class="el" href="group__slcd.html#gga37a28bfc539ea2bb83107d59f77b20d2a0d023567f536ace6ff82e5120729090f">WATCH_INDICATOR_PM</a>
, <a class="el" href="group__slcd.html#gga37a28bfc539ea2bb83107d59f77b20d2aee02426fe8a094a399fe93de2f354e48">WATCH_INDICATOR_24H</a>
, <br />
  <a class="el" href="group__slcd.html#gga37a28bfc539ea2bb83107d59f77b20d2a98d272d879d473fb507a9fc27b6741c6">WATCH_INDICATOR_LAP</a>
<br />
}</td></tr>
<tr class="memdesc:ga37a28bfc539ea2bb83107d59f77b20d2"><td class="mdescLeft"> </td><td class="mdescRight">An enum listing the icons and indicators available on the watch. <a href="group__slcd.html#ga37a28bfc539ea2bb83107d59f77b20d2">More...</a><br /></td></tr>
<tr class="separator:ga37a28bfc539ea2bb83107d59f77b20d2"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga0bb83dc413aeb321daef90d93f258033"><td class="memItemLeft" align="right" valign="top"><a id="ga0bb83dc413aeb321daef90d93f258033" name="ga0bb83dc413aeb321daef90d93f258033"></a>
void </td><td class="memItemRight" valign="bottom"><b>watch_enable_display</b> (void)</td></tr>
<tr class="memdesc:ga0bb83dc413aeb321daef90d93f258033"><td class="mdescLeft"> </td><td class="mdescRight">Enables the Segment LCD display. Call this before attempting to set pixels or display strings. <br /></td></tr>
<tr class="separator:ga0bb83dc413aeb321daef90d93f258033"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga47948dc2c7490b698810ef9914507e08"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__slcd.html#ga47948dc2c7490b698810ef9914507e08">watch_set_pixel</a> (uint8_t com, uint8_t seg)</td></tr>
<tr class="memdesc:ga47948dc2c7490b698810ef9914507e08"><td class="mdescLeft"> </td><td class="mdescRight">Sets a pixel. Use this to manually set a pixel with a given common and segment number. See <a href="segmap.html">segmap.html</a>. <a href="group__slcd.html#ga47948dc2c7490b698810ef9914507e08">More...</a><br /></td></tr>
<tr class="separator:ga47948dc2c7490b698810ef9914507e08"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gabd583acd4aa18b6377478bf95bdac9b0"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__slcd.html#gabd583acd4aa18b6377478bf95bdac9b0">watch_clear_pixel</a> (uint8_t com, uint8_t seg)</td></tr>
<tr class="memdesc:gabd583acd4aa18b6377478bf95bdac9b0"><td class="mdescLeft"> </td><td class="mdescRight">Clears a pixel. Use this to manually clear a pixel with a given common and segment number. See <a href="segmap.html">segmap.html</a>. <a href="group__slcd.html#gabd583acd4aa18b6377478bf95bdac9b0">More...</a><br /></td></tr>
<tr class="separator:gabd583acd4aa18b6377478bf95bdac9b0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gad980e302e036abd7e26813de127139a4"><td class="memItemLeft" align="right" valign="top"><a id="gad980e302e036abd7e26813de127139a4" name="gad980e302e036abd7e26813de127139a4"></a>
void </td><td class="memItemRight" valign="bottom"><b>watch_clear_display</b> (void)</td></tr>
<tr class="memdesc:gad980e302e036abd7e26813de127139a4"><td class="mdescLeft"> </td><td class="mdescRight">Clears all segments of the display, including incicators and the colon. <br /></td></tr>
<tr class="separator:gad980e302e036abd7e26813de127139a4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga1983cf1e6a7d8feb1c7193a182ff683d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__slcd.html#ga1983cf1e6a7d8feb1c7193a182ff683d">watch_display_string</a> (char *string, uint8_t position)</td></tr>
<tr class="memdesc:ga1983cf1e6a7d8feb1c7193a182ff683d"><td class="mdescLeft"> </td><td class="mdescRight">Displays a string at the given position, starting from the top left. There are ten digits. A space in any position will clear that digit. <a href="group__slcd.html#ga1983cf1e6a7d8feb1c7193a182ff683d">More...</a><br /></td></tr>
<tr class="separator:ga1983cf1e6a7d8feb1c7193a182ff683d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga021df8bd4ab27a78a812cbb0eadd26ee"><td class="memItemLeft" align="right" valign="top"><a id="ga021df8bd4ab27a78a812cbb0eadd26ee" name="ga021df8bd4ab27a78a812cbb0eadd26ee"></a>
void </td><td class="memItemRight" valign="bottom"><b>watch_set_colon</b> (void)</td></tr>
<tr class="memdesc:ga021df8bd4ab27a78a812cbb0eadd26ee"><td class="mdescLeft"> </td><td class="mdescRight">Turns the colon segment on. <br /></td></tr>
<tr class="separator:ga021df8bd4ab27a78a812cbb0eadd26ee"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga4bc4ab63f3214f475f71ed8c758f9782"><td class="memItemLeft" align="right" valign="top"><a id="ga4bc4ab63f3214f475f71ed8c758f9782" name="ga4bc4ab63f3214f475f71ed8c758f9782"></a>
void </td><td class="memItemRight" valign="bottom"><b>watch_clear_colon</b> (void)</td></tr>
<tr class="memdesc:ga4bc4ab63f3214f475f71ed8c758f9782"><td class="mdescLeft"> </td><td class="mdescRight">Turns the colon segment off. <br /></td></tr>
<tr class="separator:ga4bc4ab63f3214f475f71ed8c758f9782"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa6640c8b372933de978e1066aed7e7fd"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__slcd.html#gaa6640c8b372933de978e1066aed7e7fd">watch_set_indicator</a> (<a class="el" href="group__slcd.html#ga37a28bfc539ea2bb83107d59f77b20d2">WatchIndicatorSegment</a> indicator)</td></tr>
<tr class="memdesc:gaa6640c8b372933de978e1066aed7e7fd"><td class="mdescLeft"> </td><td class="mdescRight">Sets an indicator on the LCD. Use this to turn on one of the indicator segments. <a href="group__slcd.html#gaa6640c8b372933de978e1066aed7e7fd">More...</a><br /></td></tr>
<tr class="separator:gaa6640c8b372933de978e1066aed7e7fd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga54ee46bb4eb85e136a05af499889f50e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__slcd.html#ga54ee46bb4eb85e136a05af499889f50e">watch_clear_indicator</a> (<a class="el" href="group__slcd.html#ga37a28bfc539ea2bb83107d59f77b20d2">WatchIndicatorSegment</a> indicator)</td></tr>
<tr class="memdesc:ga54ee46bb4eb85e136a05af499889f50e"><td class="mdescLeft"> </td><td class="mdescRight">Clears an indicator on the LCD. Use this to turn off one of the indicator segments. <a href="group__slcd.html#ga54ee46bb4eb85e136a05af499889f50e">More...</a><br /></td></tr>
<tr class="separator:ga54ee46bb4eb85e136a05af499889f50e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga9e2bb1a59c0d8b38ee7e0ebbbd05b009"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__slcd.html#ga9e2bb1a59c0d8b38ee7e0ebbbd05b009">watch_clear_all_indicators</a> (void)</td></tr>
<tr class="memdesc:ga9e2bb1a59c0d8b38ee7e0ebbbd05b009"><td class="mdescLeft"> </td><td class="mdescRight">Clears all indicator segments. <a href="group__slcd.html#ga9e2bb1a59c0d8b38ee7e0ebbbd05b009">More...</a><br /></td></tr>
<tr class="separator:ga9e2bb1a59c0d8b38ee7e0ebbbd05b009"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga4c99ffbfa68aea0dce466db6e47879a5"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__slcd.html#ga4c99ffbfa68aea0dce466db6e47879a5">watch_start_character_blink</a> (char character, uint32_t duration)</td></tr>
<tr class="memdesc:ga4c99ffbfa68aea0dce466db6e47879a5"><td class="mdescLeft"> </td><td class="mdescRight">Blinks a single character in position 7. Does not affect other positions. <a href="group__slcd.html#ga4c99ffbfa68aea0dce466db6e47879a5">More...</a><br /></td></tr>
<tr class="separator:ga4c99ffbfa68aea0dce466db6e47879a5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga5d29760dd0998de98f8578ed3de5b1e5"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__slcd.html#ga5d29760dd0998de98f8578ed3de5b1e5">watch_stop_blink</a> (void)</td></tr>
<tr class="memdesc:ga5d29760dd0998de98f8578ed3de5b1e5"><td class="mdescLeft"> </td><td class="mdescRight">Stops and clears all blinking segments. <a href="group__slcd.html#ga5d29760dd0998de98f8578ed3de5b1e5">More...</a><br /></td></tr>
<tr class="separator:ga5d29760dd0998de98f8578ed3de5b1e5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga70918c1acc2ed21512b69b83397303a4"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__slcd.html#ga70918c1acc2ed21512b69b83397303a4">watch_start_tick_animation</a> (uint32_t duration)</td></tr>
<tr class="memdesc:ga70918c1acc2ed21512b69b83397303a4"><td class="mdescLeft"> </td><td class="mdescRight">Begins a two-segment "tick-tock" animation in position 8. <a href="group__slcd.html#ga70918c1acc2ed21512b69b83397303a4">More...</a><br /></td></tr>
<tr class="separator:ga70918c1acc2ed21512b69b83397303a4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga3764fb499e056f9a45588268f11be8a0"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__slcd.html#ga3764fb499e056f9a45588268f11be8a0">watch_tick_animation_is_running</a> (void)</td></tr>
<tr class="memdesc:ga3764fb499e056f9a45588268f11be8a0"><td class="mdescLeft"> </td><td class="mdescRight">Checks if the tick animation is currently running. <a href="group__slcd.html#ga3764fb499e056f9a45588268f11be8a0">More...</a><br /></td></tr>
<tr class="separator:ga3764fb499e056f9a45588268f11be8a0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaf2c52b4430b4e78a066b3a2b104d142a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__slcd.html#gaf2c52b4430b4e78a066b3a2b104d142a">watch_stop_tick_animation</a> (void)</td></tr>
<tr class="memdesc:gaf2c52b4430b4e78a066b3a2b104d142a"><td class="mdescLeft"> </td><td class="mdescRight">Stops the tick/tock animation and clears all animating segments. <a href="group__slcd.html#gaf2c52b4430b4e78a066b3a2b104d142a">More...</a><br /></td></tr>
<tr class="separator:gaf2c52b4430b4e78a066b3a2b104d142a"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p >This section covers functions related to the Segment LCD display driver, which is responsible for displaying strings of characters and indicators on the main watch display. </p>
<p >The segment LCD controller consumes about 3 microamperes of power with no segments on, and about 4 microamperes with all segments on. There is also a slight power impact associated with updating the screen (about 1 microampere to update at 1 Hz). For the absolute lowest power operation, update the display only when its contents have changed, and disable the SLCD peripheral when the screen is not in use. For a map of all common and segment pins, see <a href="segmap.html">segmap.html</a>. You can hover over any segment in that diagram to view the common and segment pins associated with each segment of the display. </p>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="ga37a28bfc539ea2bb83107d59f77b20d2" name="ga37a28bfc539ea2bb83107d59f77b20d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga37a28bfc539ea2bb83107d59f77b20d2">◆ </a></span>WatchIndicatorSegment</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="group__slcd.html#ga37a28bfc539ea2bb83107d59f77b20d2">WatchIndicatorSegment</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>An enum listing the icons and indicators available on the watch. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga37a28bfc539ea2bb83107d59f77b20d2a827a013c00782a143f13a4f88ce50292" name="gga37a28bfc539ea2bb83107d59f77b20d2a827a013c00782a143f13a4f88ce50292"></a>WATCH_INDICATOR_SIGNAL </td><td class="fielddoc"><p >The hourly signal indicator; also useful for indicating that sensors are on. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga37a28bfc539ea2bb83107d59f77b20d2a44727968b16d73ca11e3d19795085ee3" name="gga37a28bfc539ea2bb83107d59f77b20d2a44727968b16d73ca11e3d19795085ee3"></a>WATCH_INDICATOR_BELL </td><td class="fielddoc"><p >The small bell indicating that an alarm is set. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga37a28bfc539ea2bb83107d59f77b20d2a0d023567f536ace6ff82e5120729090f" name="gga37a28bfc539ea2bb83107d59f77b20d2a0d023567f536ace6ff82e5120729090f"></a>WATCH_INDICATOR_PM </td><td class="fielddoc"><p >The PM indicator, indicating that a time is in the afternoon. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga37a28bfc539ea2bb83107d59f77b20d2aee02426fe8a094a399fe93de2f354e48" name="gga37a28bfc539ea2bb83107d59f77b20d2aee02426fe8a094a399fe93de2f354e48"></a>WATCH_INDICATOR_24H </td><td class="fielddoc"><p >The 24H indicator, indicating that the watch is in a 24-hour mode. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga37a28bfc539ea2bb83107d59f77b20d2a98d272d879d473fb507a9fc27b6741c6" name="gga37a28bfc539ea2bb83107d59f77b20d2a98d272d879d473fb507a9fc27b6741c6"></a>WATCH_INDICATOR_LAP </td><td class="fielddoc"><p >The LAP indicator; the F-91W uses this in its stopwatch UI. </p>
</td></tr>
</table>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga9e2bb1a59c0d8b38ee7e0ebbbd05b009" name="ga9e2bb1a59c0d8b38ee7e0ebbbd05b009"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9e2bb1a59c0d8b38ee7e0ebbbd05b009">◆ </a></span>watch_clear_all_indicators()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void watch_clear_all_indicators </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Clears all indicator segments. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__slcd.html#ga37a28bfc539ea2bb83107d59f77b20d2" title="An enum listing the icons and indicators available on the watch.">WatchIndicatorSegment</a> </dd></dl>
</div>
</div>
<a id="ga54ee46bb4eb85e136a05af499889f50e" name="ga54ee46bb4eb85e136a05af499889f50e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga54ee46bb4eb85e136a05af499889f50e">◆ </a></span>watch_clear_indicator()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void watch_clear_indicator </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__slcd.html#ga37a28bfc539ea2bb83107d59f77b20d2">WatchIndicatorSegment</a> </td>
<td class="paramname"><em>indicator</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Clears an indicator on the LCD. Use this to turn off one of the indicator segments. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">indicator</td><td>One of the indicator segments from the enum. </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__slcd.html#ga37a28bfc539ea2bb83107d59f77b20d2" title="An enum listing the icons and indicators available on the watch.">WatchIndicatorSegment</a> </dd></dl>
</div>
</div>
<a id="gabd583acd4aa18b6377478bf95bdac9b0" name="gabd583acd4aa18b6377478bf95bdac9b0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabd583acd4aa18b6377478bf95bdac9b0">◆ </a></span>watch_clear_pixel()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void watch_clear_pixel </td>
<td>(</td>
<td class="paramtype">uint8_t </td>
<td class="paramname"><em>com</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t </td>
<td class="paramname"><em>seg</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Clears a pixel. Use this to manually clear a pixel with a given common and segment number. See <a href="segmap.html">segmap.html</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">com</td><td>the common pin, numbered from 0-2. </td></tr>
<tr><td class="paramname">seg</td><td>the segment pin, numbered from 0-23. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="ga1983cf1e6a7d8feb1c7193a182ff683d" name="ga1983cf1e6a7d8feb1c7193a182ff683d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1983cf1e6a7d8feb1c7193a182ff683d">◆ </a></span>watch_display_string()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void watch_display_string </td>
<td>(</td>
<td class="paramtype">char * </td>
<td class="paramname"><em>string</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t </td>
<td class="paramname"><em>position</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Displays a string at the given position, starting from the top left. There are ten digits. A space in any position will clear that digit. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">string</td><td>A null-terminated string. </td></tr>
<tr><td class="paramname">position</td><td>The position where you wish to start displaying the string. The day of week digits are positions 0 and 1; the day of month digits are positions 2 and 3, and the main clock line occupies positions 4-9. </td></tr>
</table>
</dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>This method does not clear the display; if for example you display a two-character string at position 0, positions 2-9 will retain whatever state they were previously displaying. </dd></dl>
</div>
</div>
<a id="gaa6640c8b372933de978e1066aed7e7fd" name="gaa6640c8b372933de978e1066aed7e7fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa6640c8b372933de978e1066aed7e7fd">◆ </a></span>watch_set_indicator()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void watch_set_indicator </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__slcd.html#ga37a28bfc539ea2bb83107d59f77b20d2">WatchIndicatorSegment</a> </td>
<td class="paramname"><em>indicator</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets an indicator on the LCD. Use this to turn on one of the indicator segments. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">indicator</td><td>One of the indicator segments from the enum. </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__slcd.html#ga37a28bfc539ea2bb83107d59f77b20d2" title="An enum listing the icons and indicators available on the watch.">WatchIndicatorSegment</a> </dd></dl>
</div>
</div>
<a id="ga47948dc2c7490b698810ef9914507e08" name="ga47948dc2c7490b698810ef9914507e08"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga47948dc2c7490b698810ef9914507e08">◆ </a></span>watch_set_pixel()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void watch_set_pixel </td>
<td>(</td>
<td class="paramtype">uint8_t </td>
<td class="paramname"><em>com</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t </td>
<td class="paramname"><em>seg</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets a pixel. Use this to manually set a pixel with a given common and segment number. See <a href="segmap.html">segmap.html</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">com</td><td>the common pin, numbered from 0-2. </td></tr>
<tr><td class="paramname">seg</td><td>the segment pin, numbered from 0-23. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="ga4c99ffbfa68aea0dce466db6e47879a5" name="ga4c99ffbfa68aea0dce466db6e47879a5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4c99ffbfa68aea0dce466db6e47879a5">◆ </a></span>watch_start_character_blink()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void watch_start_character_blink </td>
<td>(</td>
<td class="paramtype">char </td>
<td class="paramname"><em>character</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t </td>
<td class="paramname"><em>duration</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Blinks a single character in position 7. Does not affect other positions. </p>
<p >Six of the seven segments in position 7 (and only position 7) are capable of autonomous blinking. This blinking does not require any CPU resources, and will continue even in STANDBY and Sleep mode (but not Deep Sleep mode, since that mode turns off the LCD). </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">character</td><td>The character you wish to blink. </td></tr>
<tr><td class="paramname">duration</td><td>The duration of the on/off cycle in milliseconds, from 50 to ~4250 ms. </td></tr>
</table>
</dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>Segment B of position 7 cannot blink autonomously, so not all characters will work well. Supported characters for blinking:<ul>
<li>Punctuation: underscore, apostrophe, comma, hyphen, equals sign, tilde (top segment only)</li>
<li>Numbers: 5, 6, ampersand (lowercase 7)</li>
<li>Letters: b, C, c, E, F, h, i, L, l, n, o, S, t </li>
</ul>
</dd></dl>
</div>
</div>
<a id="ga70918c1acc2ed21512b69b83397303a4" name="ga70918c1acc2ed21512b69b83397303a4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga70918c1acc2ed21512b69b83397303a4">◆ </a></span>watch_start_tick_animation()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void watch_start_tick_animation </td>
<td>(</td>
<td class="paramtype">uint32_t </td>
<td class="paramname"><em>duration</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Begins a two-segment "tick-tock" animation in position 8. </p>
<p >Six of the seven segments in position 8 (and only position 8) are capable of autonomous animation. This animation is very basic, and consists of moving a bit pattern forward or backward in a shift register whose positions map to fixed segments on the LCD. Given this constraint, an animation across all six segments does not make sense; so the watch library offers only a simple "tick/tock" in segments D and E. This animation does not require any CPU resources, and will continue even in STANDBY and Sleep mode (but not Deep Sleep mode, since that mode turns off the LCD). </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">duration</td><td>The duration of each frame in ms. 500 milliseconds produces a classic tick/tock. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="ga5d29760dd0998de98f8578ed3de5b1e5" name="ga5d29760dd0998de98f8578ed3de5b1e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5d29760dd0998de98f8578ed3de5b1e5">◆ </a></span>watch_stop_blink()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void watch_stop_blink </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Stops and clears all blinking segments. </p>
<p >This will stop all blinking in position 7, and clear all segments in that digit. </p>
</div>
</div>
<a id="gaf2c52b4430b4e78a066b3a2b104d142a" name="gaf2c52b4430b4e78a066b3a2b104d142a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf2c52b4430b4e78a066b3a2b104d142a">◆ </a></span>watch_stop_tick_animation()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void watch_stop_tick_animation </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Stops the tick/tock animation and clears all animating segments. </p>
<p >This will stop the animation and clear all segments in position 8. </p>
</div>
</div>
<a id="ga3764fb499e056f9a45588268f11be8a0" name="ga3764fb499e056f9a45588268f11be8a0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3764fb499e056f9a45588268f11be8a0">◆ </a></span>watch_tick_animation_is_running()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool watch_tick_animation_is_running </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Checks if the tick animation is currently running. </p>
<dl class="section return"><dt>Returns</dt><dd>true if the animation is running; false otherwise. </dd></dl>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3
</small></address>
</body>
</html>
|