This commit is contained in:
joeycastillo
2021-12-21 16:06:31 +00:00
parent 46c14a44e8
commit 57a9736ad0
26 changed files with 276 additions and 241 deletions

View File

@@ -96,6 +96,9 @@ Functions</h2></td></tr>
<tr class="memitem:a16023aa6b668de61af59b40b2bee5d1d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="watch_8h.html#a16023aa6b668de61af59b40b2bee5d1d">watch_is_battery_low</a> (void)</td></tr>
<tr class="memdesc:a16023aa6b668de61af59b40b2bee5d1d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true when the battery voltage dips below 2.5V. <a href="watch_8h.html#a16023aa6b668de61af59b40b2bee5d1d">More...</a><br /></td></tr>
<tr class="separator:a16023aa6b668de61af59b40b2bee5d1d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6df21baf06b4a5392d95dd3cdde75d94"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="watch_8h.html#a6df21baf06b4a5392d95dd3cdde75d94">watch_is_buzzer_or_led_enabled</a> (void)</td></tr>
<tr class="memdesc:a6df21baf06b4a5392d95dd3cdde75d94"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if either the buzzer or the LED driver is enabled. <a href="watch_8h.html#a6df21baf06b4a5392d95dd3cdde75d94">More...</a><br /></td></tr>
<tr class="separator:a6df21baf06b4a5392d95dd3cdde75d94"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="a16023aa6b668de61af59b40b2bee5d1d"></a>
@@ -117,6 +120,27 @@ Functions</h2></td></tr>
<p>Returns true when the battery voltage dips below 2.5V. </p>
<p>A CR2016 battery will have a nominal voltage between 2.9 and 3 volts for most of its lifespan. Once the battery discharges to about 60%, the voltage will drift slightly lower; this may manifest as a dimmer LED. By the time the battery voltage has fallen to 2.5 volts, it will have probably less than 10% of its capacity remaining, and you can expect the voltage to drop relatively quickly as the battery dies. </p>
</div>
</div>
<a id="a6df21baf06b4a5392d95dd3cdde75d94"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6df21baf06b4a5392d95dd3cdde75d94">&#9670;&nbsp;</a></span>watch_is_buzzer_or_led_enabled()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool watch_is_buzzer_or_led_enabled </td>
<td>(</td>
<td class="paramtype">void&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns true if either the buzzer or the LED driver is enabled. </p>
<p>Both the buzzer and the LED use the TCC peripheral to drive their behavior. This function returns true if that peripheral is enabled. You can use this function to determine whether you need to call the watch_disable_leds or or watch_enable_buzzer functions before using these peripherals. </p>
</div>
</div>
</div><!-- contents -->