570 lines
125 KiB
HTML
570 lines
125 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.9.1"/>
|
|
<title>discoverpixy: common/app/screen_pixytest.c Source File</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>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() { init_search(); });
|
|
</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 style="height: 56px;">
|
|
<td style="padding-left: 0.5em;">
|
|
<div id="projectname">discoverpixy
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.9.1 -->
|
|
<script type="text/javascript">
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
</script>
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="modules.html"><span>Modules</span></a></li>
|
|
<li><a href="annotated.html"><span>Data Structures</span></a></li>
|
|
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
|
<li>
|
|
<div id="MSearchBox" class="MSearchBoxInactive">
|
|
<span class="left">
|
|
<img id="MSearchSelect" src="search/mag_sel.png"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
alt=""/>
|
|
<input type="text" id="MSearchField" value="Search" accesskey="S"
|
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
|
</span><span class="right">
|
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="files.html"><span>File List</span></a></li>
|
|
<li><a href="globals.html"><span>Globals</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<!-- 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 id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_bdd9a5d540de89e9fe90efdfc6973a4f.html">common</a></li><li class="navelem"><a class="el" href="dir_99a8943037ff3844556e6a5d529fec0c.html">app</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">screen_pixytest.c</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="screen__pixytest_8c.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/**************************************************************************************************************************************</span></div>
|
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">* Project: discoverpixy</span></div>
|
|
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">* Website: https://github.com/t-moe/discoverpixy</span></div>
|
|
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">* Authors: Aaron Schmocker, Timo Lang</span></div>
|
|
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">* Institution: BFH Bern University of Applied Sciences</span></div>
|
|
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">* File: common/app/screen_pixytest.c</span></div>
|
|
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">*</span></div>
|
|
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">* Version History:</span></div>
|
|
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">* Date Autor Email SHA Changes</span></div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">* 2015-04-27 timolang@gmail.com cf72baa Introduced a Screen (sub) module and divided app into multiple screens.</span></div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">* 2015-05-02 timolang@gmail.com 3281616 Added some more touch functions. Improved pixy test. Drag the Image around!</span></div>
|
|
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">* 2015-05-09 timolang@gmail.com 0b5173e Added reference tracking.</span></div>
|
|
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">* 2015-05-15 timolang@gmail.com 27c09ba Redesigned main menu. Moved stuff from pixytest to a new helper file and to the new "photo mode"-screen.</span></div>
|
|
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">* 2015-05-25 timolang@gmail.com 6a61769 Reimplemented pixytest screen. Added a lot of Test-Buttons.</span></div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">* 2015-06-01 aaron@duckpond.ch caa7b5c Added IRQ for user button, fixed some touchproblems.</span></div>
|
|
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">* 2015-06-03 timolang@gmail.com 74aa186 Made pixy_test screen working again. Had to disable pixy_service. Recalibrated initial touch values.</span></div>
|
|
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">* 2015-06-07 timolang@gmail.com c87220d Renamed pixy_helper to pixy_frame. Updated docu of appliaction. added doxygen comments to pixy_{frame,control}.h</span></div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">*</span></div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment">**************************************************************************************************************************************/</span></div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include "<a class="code" href="screen__pixytest_8h.html">screen_pixytest.h</a>"</span></div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include "<a class="code" href="button_8h.html">button.h</a>"</span></div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include "<a class="code" href="numupdown_8h.html">numupdown.h</a>"</span></div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include "<a class="code" href="tft_8h.html">tft.h</a>"</span></div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include "<a class="code" href="touch_8h.html">touch.h</a>"</span></div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include "<a class="code" href="pixy_8h.html">pixy.h</a>"</span></div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "<a class="code" href="system_8h.html">system.h</a>"</span></div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include "<a class="code" href="pixy__frame_8h.html">pixy_frame.h</a>"</span></div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7aa2623f758ef2224d1d7f0d551c250b8a"> 30</a></span> <span class="keyword">static</span> <span class="keyword">volatile</span> <span class="keyword">enum</span> {<a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7a7689d85a4508e742b3263bbee54cdbdd">detecting</a>, <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7a0e9a37114c0e458d28d52f06ec0f2242">idle</a>, <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7aa2623f758ef2224d1d7f0d551c250b8a">update_servos</a>, <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7adebf5d632ea3947c444092e71924266c">update_ledcolor</a>, <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7afa956cdf05831462f04238d2946d54e4">update_ledcurrent</a>} <a class="code" href="screen__pixytest_8c.html#aae2e5315ba9ea0c3b531141973e529ae">state</a>; <span class="comment">//Current state of the screen state machine</span></div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="screen__pixytest_8c.html#ae5d8f6a72bbdbe109bc151bfef8ac9a6"> 32</a></span> <span class="keyword">static</span> <a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html">BUTTON_STRUCT</a> <a class="code" href="screen__pixytest_8c.html#ae5d8f6a72bbdbe109bc151bfef8ac9a6">b_back</a>;</div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="screen__pixytest_8c.html#a7a8cd1564547b0fe1b6af8d5eca6fc37"> 34</a></span> <span class="keyword">static</span> <a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html">BUTTON_STRUCT</a> <a class="code" href="screen__pixytest_8c.html#a7a8cd1564547b0fe1b6af8d5eca6fc37">b_servos_center</a>;</div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="screen__pixytest_8c.html#ad9e76b7916c4129af8c60eec0d694ae3"> 35</a></span> <span class="keyword">static</span> <a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html">BUTTON_STRUCT</a> <a class="code" href="screen__pixytest_8c.html#ad9e76b7916c4129af8c60eec0d694ae3">b_servos_topleft</a>;</div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="screen__pixytest_8c.html#aaebdf93a1201ccd09d139ef235054ee1"> 36</a></span> <span class="keyword">static</span> <a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html">BUTTON_STRUCT</a> <a class="code" href="screen__pixytest_8c.html#aaebdf93a1201ccd09d139ef235054ee1">b_servos_topright</a>;</div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="screen__pixytest_8c.html#acfb5dc26db6230fcc2a36cd0baa9d876"> 37</a></span> <span class="keyword">static</span> <a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html">BUTTON_STRUCT</a> <a class="code" href="screen__pixytest_8c.html#acfb5dc26db6230fcc2a36cd0baa9d876">b_servos_bottomleft</a>;</div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="screen__pixytest_8c.html#aeb4e54b6b5771028eb4e2a6f43b453ca"> 38</a></span> <span class="keyword">static</span> <a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html">BUTTON_STRUCT</a> <a class="code" href="screen__pixytest_8c.html#aeb4e54b6b5771028eb4e2a6f43b453ca">b_servos_bottomright</a>;</div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="screen__pixytest_8c.html#a8184234e1ba58053466062e14933bae7"> 39</a></span> <span class="keyword">static</span> uint16_t <a class="code" href="screen__pixytest_8c.html#a8184234e1ba58053466062e14933bae7">servo_x</a>;</div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="screen__pixytest_8c.html#a3e9f071aa3313583a8a88d672bafaa20"> 40</a></span> <span class="keyword">static</span> uint16_t <a class="code" href="screen__pixytest_8c.html#a3e9f071aa3313583a8a88d672bafaa20">servo_y</a>;</div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="screen__pixytest_8c.html#a0e8603a1738cbcbbd9684e7db228bd26"> 42</a></span> <span class="keyword">static</span> <a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html">BUTTON_STRUCT</a> <a class="code" href="screen__pixytest_8c.html#a0e8603a1738cbcbbd9684e7db228bd26">b_led_off</a>;</div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="screen__pixytest_8c.html#aa0eb797e4ff7535a507917a95da6711e"> 43</a></span> <span class="keyword">static</span> <a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html">BUTTON_STRUCT</a> <a class="code" href="screen__pixytest_8c.html#aa0eb797e4ff7535a507917a95da6711e">b_led_white</a>;</div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="screen__pixytest_8c.html#a4bc5101262c9c391e81e484b09964188"> 44</a></span> <span class="keyword">static</span> <a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html">BUTTON_STRUCT</a> <a class="code" href="screen__pixytest_8c.html#a4bc5101262c9c391e81e484b09964188">b_led_red</a>;</div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="screen__pixytest_8c.html#a31c32762a466ff596f6aad802dc0687d"> 45</a></span> <span class="keyword">static</span> <a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html">BUTTON_STRUCT</a> <a class="code" href="screen__pixytest_8c.html#a31c32762a466ff596f6aad802dc0687d">b_led_green</a>;</div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="screen__pixytest_8c.html#a258e60594872309e6e115517ad38e3db"> 46</a></span> <span class="keyword">static</span> <a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html">BUTTON_STRUCT</a> <a class="code" href="screen__pixytest_8c.html#a258e60594872309e6e115517ad38e3db">b_led_blue</a>;</div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="screen__pixytest_8c.html#a230b340b4c3998d343da8186aaba3500"> 47</a></span> <span class="keyword">static</span> uint32_t <a class="code" href="screen__pixytest_8c.html#a230b340b4c3998d343da8186aaba3500">led_color</a>;</div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> </div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="screen__pixytest_8c.html#a71a0773356aeb29d6b4276caa281d5eb"> 49</a></span> <span class="keyword">static</span> uint32_t <a class="code" href="screen__pixytest_8c.html#a71a0773356aeb29d6b4276caa281d5eb">led_maxcurrent</a>;</div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="screen__pixytest_8c.html#a36e8cc311c87d4ef3e467b4f6e9e1e2e"> 50</a></span> <span class="keyword">static</span> <a class="code" href="struct_n_u_m_u_p_d_o_w_n___s_t_r_u_c_t.html">NUMUPDOWN_STRUCT</a> <a class="code" href="screen__pixytest_8c.html#a36e8cc311c87d4ef3e467b4f6e9e1e2e">n_led_powerlimit</a>;</div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> </div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="screen__pixytest_8c.html#a26b5a87b61eb1cd0888fdfc12a91a6d7"> 53</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="screen__pixytest_8c.html#a26b5a87b61eb1cd0888fdfc12a91a6d7">b_back_cb</a>(<span class="keywordtype">void</span>* button)</div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> {</div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <a class="code" href="group__screen.html#ga8e14bc7ee0214e2926965f9bdb54a866">gui_screen_back</a>();</div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> }</div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="screen__pixytest_8c.html#afafa1aca162346e70bd8b03d046f688d"> 58</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="screen__pixytest_8c.html#afafa1aca162346e70bd8b03d046f688d">b_servos_center_cb</a>(<span class="keywordtype">void</span>* button)</div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> {</div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordflow">if</span> (<a class="code" href="screen__pixytest_8c.html#aae2e5315ba9ea0c3b531141973e529ae">state</a> == <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7a0e9a37114c0e458d28d52f06ec0f2242">idle</a>) {</div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <a class="code" href="screen__pixytest_8c.html#a8184234e1ba58053466062e14933bae7">servo_x</a> = 500;</div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <a class="code" href="screen__pixytest_8c.html#a3e9f071aa3313583a8a88d672bafaa20">servo_y</a> = 500;</div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <a class="code" href="screen__pixytest_8c.html#aae2e5315ba9ea0c3b531141973e529ae">state</a> = <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7aa2623f758ef2224d1d7f0d551c250b8a">update_servos</a>;</div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  }</div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> }</div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="screen__pixytest_8c.html#adaae997e56e5f71dff07650e0fccdbab"> 67</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="screen__pixytest_8c.html#adaae997e56e5f71dff07650e0fccdbab">b_servos_topleft_cb</a>(<span class="keywordtype">void</span>* button)</div>
|
|
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> {</div>
|
|
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keywordflow">if</span> (<a class="code" href="screen__pixytest_8c.html#aae2e5315ba9ea0c3b531141973e529ae">state</a> == <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7a0e9a37114c0e458d28d52f06ec0f2242">idle</a>) {</div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <a class="code" href="screen__pixytest_8c.html#a8184234e1ba58053466062e14933bae7">servo_x</a> = 0;</div>
|
|
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <a class="code" href="screen__pixytest_8c.html#a3e9f071aa3313583a8a88d672bafaa20">servo_y</a> = 0;</div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <a class="code" href="screen__pixytest_8c.html#aae2e5315ba9ea0c3b531141973e529ae">state</a> = <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7aa2623f758ef2224d1d7f0d551c250b8a">update_servos</a>;</div>
|
|
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  }</div>
|
|
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span> }</div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> </div>
|
|
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="screen__pixytest_8c.html#a5aeb52abd0731f4db0537d47c296cc24"> 76</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="screen__pixytest_8c.html#a5aeb52abd0731f4db0537d47c296cc24">b_servos_topright_cb</a>(<span class="keywordtype">void</span>* button)</div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> {</div>
|
|
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keywordflow">if</span> (<a class="code" href="screen__pixytest_8c.html#aae2e5315ba9ea0c3b531141973e529ae">state</a> == <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7a0e9a37114c0e458d28d52f06ec0f2242">idle</a>) {</div>
|
|
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <a class="code" href="screen__pixytest_8c.html#a8184234e1ba58053466062e14933bae7">servo_x</a> = 1000;</div>
|
|
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <a class="code" href="screen__pixytest_8c.html#a3e9f071aa3313583a8a88d672bafaa20">servo_y</a> = 0;</div>
|
|
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <a class="code" href="screen__pixytest_8c.html#aae2e5315ba9ea0c3b531141973e529ae">state</a> = <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7aa2623f758ef2224d1d7f0d551c250b8a">update_servos</a>;</div>
|
|
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  }</div>
|
|
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> }</div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> </div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="screen__pixytest_8c.html#adfa97285ff9460b593bb54574a880228"> 85</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="screen__pixytest_8c.html#adfa97285ff9460b593bb54574a880228">b_servos_bottomleft_cb</a>(<span class="keywordtype">void</span>* button)</div>
|
|
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> {</div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keywordflow">if</span> (<a class="code" href="screen__pixytest_8c.html#aae2e5315ba9ea0c3b531141973e529ae">state</a> == <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7a0e9a37114c0e458d28d52f06ec0f2242">idle</a>) {</div>
|
|
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <a class="code" href="screen__pixytest_8c.html#a8184234e1ba58053466062e14933bae7">servo_x</a> = 0;</div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <a class="code" href="screen__pixytest_8c.html#a3e9f071aa3313583a8a88d672bafaa20">servo_y</a> = 1000;</div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <a class="code" href="screen__pixytest_8c.html#aae2e5315ba9ea0c3b531141973e529ae">state</a> = <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7aa2623f758ef2224d1d7f0d551c250b8a">update_servos</a>;</div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  }</div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> }</div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> </div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="screen__pixytest_8c.html#a9431d0f00cbebabe92c9db9ca33febfa"> 94</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="screen__pixytest_8c.html#a9431d0f00cbebabe92c9db9ca33febfa">b_servos_bottomright_cb</a>(<span class="keywordtype">void</span>* button)</div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span> {</div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keywordflow">if</span> (<a class="code" href="screen__pixytest_8c.html#aae2e5315ba9ea0c3b531141973e529ae">state</a> == <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7a0e9a37114c0e458d28d52f06ec0f2242">idle</a>) {</div>
|
|
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <a class="code" href="screen__pixytest_8c.html#a8184234e1ba58053466062e14933bae7">servo_x</a> = 1000;</div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <a class="code" href="screen__pixytest_8c.html#a3e9f071aa3313583a8a88d672bafaa20">servo_y</a> = 1000;</div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <a class="code" href="screen__pixytest_8c.html#aae2e5315ba9ea0c3b531141973e529ae">state</a> = <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7aa2623f758ef2224d1d7f0d551c250b8a">update_servos</a>;</div>
|
|
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  }</div>
|
|
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> }</div>
|
|
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> </div>
|
|
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="screen__pixytest_8c.html#a26fb89d09091b2796fde75c0f5bf82d8"> 103</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="screen__pixytest_8c.html#a26fb89d09091b2796fde75c0f5bf82d8">b_led_off_cb</a>(<span class="keywordtype">void</span>* button)</div>
|
|
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> {</div>
|
|
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordflow">if</span> (<a class="code" href="screen__pixytest_8c.html#aae2e5315ba9ea0c3b531141973e529ae">state</a> == <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7a0e9a37114c0e458d28d52f06ec0f2242">idle</a>) {</div>
|
|
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <a class="code" href="screen__pixytest_8c.html#a230b340b4c3998d343da8186aaba3500">led_color</a> = 0x000000;</div>
|
|
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <a class="code" href="screen__pixytest_8c.html#aae2e5315ba9ea0c3b531141973e529ae">state</a> = <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7adebf5d632ea3947c444092e71924266c">update_ledcolor</a>;</div>
|
|
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  }</div>
|
|
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span> }</div>
|
|
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> </div>
|
|
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="screen__pixytest_8c.html#a9bbf0c7577695231d5f8ad6ea38ef3e2"> 111</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="screen__pixytest_8c.html#a9bbf0c7577695231d5f8ad6ea38ef3e2">b_led_white_cb</a>(<span class="keywordtype">void</span>* button)</div>
|
|
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> {</div>
|
|
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="keywordflow">if</span> (<a class="code" href="screen__pixytest_8c.html#aae2e5315ba9ea0c3b531141973e529ae">state</a> == <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7a0e9a37114c0e458d28d52f06ec0f2242">idle</a>) {</div>
|
|
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <a class="code" href="screen__pixytest_8c.html#a230b340b4c3998d343da8186aaba3500">led_color</a> = 0xFFFFFF;</div>
|
|
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <a class="code" href="screen__pixytest_8c.html#aae2e5315ba9ea0c3b531141973e529ae">state</a> = <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7adebf5d632ea3947c444092e71924266c">update_ledcolor</a>;</div>
|
|
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  }</div>
|
|
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> }</div>
|
|
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> </div>
|
|
<div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="screen__pixytest_8c.html#ac936d4c15a496aedc9c0285c6da36968"> 119</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="screen__pixytest_8c.html#ac936d4c15a496aedc9c0285c6da36968">b_led_red_cb</a>(<span class="keywordtype">void</span>* button)</div>
|
|
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span> {</div>
|
|
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keywordflow">if</span> (<a class="code" href="screen__pixytest_8c.html#aae2e5315ba9ea0c3b531141973e529ae">state</a> == <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7a0e9a37114c0e458d28d52f06ec0f2242">idle</a>) {</div>
|
|
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <a class="code" href="screen__pixytest_8c.html#a230b340b4c3998d343da8186aaba3500">led_color</a> = 0xFF0000;</div>
|
|
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <a class="code" href="screen__pixytest_8c.html#aae2e5315ba9ea0c3b531141973e529ae">state</a> = <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7adebf5d632ea3947c444092e71924266c">update_ledcolor</a>;</div>
|
|
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  }</div>
|
|
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> }</div>
|
|
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> </div>
|
|
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="screen__pixytest_8c.html#a047e6035ae52e61ab0723069412e19a7"> 127</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="screen__pixytest_8c.html#a047e6035ae52e61ab0723069412e19a7">b_led_green_cb</a>(<span class="keywordtype">void</span>* button)</div>
|
|
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span> {</div>
|
|
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordflow">if</span> (<a class="code" href="screen__pixytest_8c.html#aae2e5315ba9ea0c3b531141973e529ae">state</a> == <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7a0e9a37114c0e458d28d52f06ec0f2242">idle</a>) {</div>
|
|
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <a class="code" href="screen__pixytest_8c.html#a230b340b4c3998d343da8186aaba3500">led_color</a> = 0x00FF00;</div>
|
|
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <a class="code" href="screen__pixytest_8c.html#aae2e5315ba9ea0c3b531141973e529ae">state</a> = <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7adebf5d632ea3947c444092e71924266c">update_ledcolor</a>;</div>
|
|
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  }</div>
|
|
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> }</div>
|
|
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span> </div>
|
|
<div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="screen__pixytest_8c.html#acba93301521436f0dd9ea88d675691c2"> 135</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="screen__pixytest_8c.html#acba93301521436f0dd9ea88d675691c2">b_led_blue_cb</a>(<span class="keywordtype">void</span>* button)</div>
|
|
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> {</div>
|
|
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="keywordflow">if</span> (<a class="code" href="screen__pixytest_8c.html#aae2e5315ba9ea0c3b531141973e529ae">state</a> == <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7a0e9a37114c0e458d28d52f06ec0f2242">idle</a>) {</div>
|
|
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <a class="code" href="screen__pixytest_8c.html#a230b340b4c3998d343da8186aaba3500">led_color</a> = 0x0000FF;</div>
|
|
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <a class="code" href="screen__pixytest_8c.html#aae2e5315ba9ea0c3b531141973e529ae">state</a> = <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7adebf5d632ea3947c444092e71924266c">update_ledcolor</a>;</div>
|
|
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  }</div>
|
|
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span> }</div>
|
|
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span> </div>
|
|
<div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="screen__pixytest_8c.html#a6257e15ffef64770bc3c744f0ef0208a"> 143</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="screen__pixytest_8c.html#a6257e15ffef64770bc3c744f0ef0208a">n_led_powerlimit_cb</a>(<span class="keywordtype">void</span>* numupdown, int16_t value)</div>
|
|
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> {</div>
|
|
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="keywordflow">if</span> (<a class="code" href="screen__pixytest_8c.html#aae2e5315ba9ea0c3b531141973e529ae">state</a> == <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7a0e9a37114c0e458d28d52f06ec0f2242">idle</a>) {</div>
|
|
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <a class="code" href="screen__pixytest_8c.html#a71a0773356aeb29d6b4276caa281d5eb">led_maxcurrent</a> = value;</div>
|
|
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <a class="code" href="screen__pixytest_8c.html#aae2e5315ba9ea0c3b531141973e529ae">state</a> = <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7afa956cdf05831462f04238d2946d54e4">update_ledcurrent</a>;</div>
|
|
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  }</div>
|
|
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> }</div>
|
|
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> </div>
|
|
<div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="screen__pixytest_8c.html#a3017cd14eca2b9e67a69e7ea559b5eaa"> 151</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="screen__pixytest_8c.html#a3017cd14eca2b9e67a69e7ea559b5eaa">enter</a>(<span class="keywordtype">void</span>* <a class="code" href="screen__pixytest_8c.html#a939fdd806f427cc8505ed817e28cce9d">screen</a>)</div>
|
|
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> {</div>
|
|
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <a class="code" href="group__tft.html#ga6a2e3b3878ae5eea184d4c3ffe091b78">tft_clear</a>(<a class="code" href="group__tft.html#ga87b537f5fa5c109d3c05c13d6b18f382">WHITE</a>);</div>
|
|
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> </div>
|
|
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <span class="comment">//Back button</span></div>
|
|
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  b_back.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aedb5fdfe3c1d1a915b668ba7f3950753">x1</a> = 10; <span class="comment">//Start X of Button</span></div>
|
|
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  b_back.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#a47ada631c22a9d40348069145654f255">y1</a> = 210; <span class="comment">//Start Y of Button</span></div>
|
|
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  b_back.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#ac5bc000f8954f38b7a641a485a26bae7">x2</a> = <a class="code" href="group__button.html#ga0cc6f7717df9fbdc0f33efb88720a639">AUTO</a>; <span class="comment">//Auto Calculate X2 with String Width</span></div>
|
|
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  b_back.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aa377184ba406b3f0c4ac18c935378204">y2</a> = <a class="code" href="group__button.html#ga0cc6f7717df9fbdc0f33efb88720a639">AUTO</a>; <span class="comment">//Auto Calculate Y2 with String Height</span></div>
|
|
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  b_back.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#aaf5a5af411fa69950e0b4415c8089c8b">txtcolor</a> = <a class="code" href="group__tft.html#ga87b537f5fa5c109d3c05c13d6b18f382">WHITE</a>; <span class="comment">//Set foreground color</span></div>
|
|
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  b_back.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#aebb27fad2492ea7aa81895d0ede61fcf">bgcolor</a> = <a class="code" href="group__tft.html#gacbaf0b6287f2d906af1e76051be37a87">HEX</a>(0xAE1010); <span class="comment">//Set background color (Don't take 255 or 0 on at least one channel, to make shadows possible)</span></div>
|
|
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  b_back.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adeae49dfe3584e6df726fb4167cd1cf7">font</a> = 0; <span class="comment">//Select Font</span></div>
|
|
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  b_back.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#a16343090e80c4472521560f30113d96c">text</a> = <span class="stringliteral">"Back"</span>; <span class="comment">//Set Text (For formatted strings take sprintf)</span></div>
|
|
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  b_back.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#a269d23c8a60f8acdf9279642999ee6a9">callback</a> = <a class="code" href="screen__pixytest_8c.html#a26b5a87b61eb1cd0888fdfc12a91a6d7">b_back_cb</a>; <span class="comment">//Call b_back_cb as Callback</span></div>
|
|
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <a class="code" href="group__button.html#ga64d5d2aaff2c917e5d43e7ed849607de">gui_button_add</a>(&b_back); <span class="comment">//Register Button (and run the callback from now on)</span></div>
|
|
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> </div>
|
|
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span> </div>
|
|
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="comment">//Servo stuff</span></div>
|
|
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span> <span class="preprocessor">#define SERVO_BUTTON_Y 10</span></div>
|
|
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span> <span class="preprocessor">#define SERVO_BUTTON_SPACING 5</span></div>
|
|
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <a class="code" href="group__tft.html#gabf54943131990b366ce6875a0e1925f6">tft_print_line</a>(5, <a class="code" href="screen__pixytest_8c.html#af043ebace98de8929bd147634673743e">SERVO_BUTTON_Y</a>, <a class="code" href="group__tft.html#ga7b3b25cba33b07c303f3060fe41887f6">BLACK</a>, <a class="code" href="group__tft.html#ga6c54e72c6142d317114a29adbcbb24b6">TRANSPARENT</a>, 0, <span class="stringliteral">"Servos:"</span>);</div>
|
|
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span> </div>
|
|
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  b_servos_center.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aedb5fdfe3c1d1a915b668ba7f3950753">x1</a> = 55;</div>
|
|
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  b_servos_center.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#a47ada631c22a9d40348069145654f255">y1</a> = <a class="code" href="screen__pixytest_8c.html#af043ebace98de8929bd147634673743e">SERVO_BUTTON_Y</a> - 3;</div>
|
|
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  b_servos_center.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#ac5bc000f8954f38b7a641a485a26bae7">x2</a> = <a class="code" href="group__button.html#ga0cc6f7717df9fbdc0f33efb88720a639">AUTO</a>;</div>
|
|
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  b_servos_center.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aa377184ba406b3f0c4ac18c935378204">y2</a> = <a class="code" href="group__button.html#ga0cc6f7717df9fbdc0f33efb88720a639">AUTO</a>;</div>
|
|
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  b_servos_center.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#aaf5a5af411fa69950e0b4415c8089c8b">txtcolor</a> = <a class="code" href="group__tft.html#ga87b537f5fa5c109d3c05c13d6b18f382">WHITE</a>;</div>
|
|
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  b_servos_center.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#aebb27fad2492ea7aa81895d0ede61fcf">bgcolor</a> = <a class="code" href="group__tft.html#gacbaf0b6287f2d906af1e76051be37a87">HEX</a>(0xAE1010);</div>
|
|
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  b_servos_center.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adeae49dfe3584e6df726fb4167cd1cf7">font</a> = 0;</div>
|
|
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  b_servos_center.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#a16343090e80c4472521560f30113d96c">text</a> = <span class="stringliteral">"Center"</span>;</div>
|
|
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  b_servos_center.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#a269d23c8a60f8acdf9279642999ee6a9">callback</a> = <a class="code" href="screen__pixytest_8c.html#afafa1aca162346e70bd8b03d046f688d">b_servos_center_cb</a>;</div>
|
|
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <a class="code" href="group__button.html#ga64d5d2aaff2c917e5d43e7ed849607de">gui_button_add</a>(&b_servos_center);</div>
|
|
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> </div>
|
|
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  b_servos_topleft.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aedb5fdfe3c1d1a915b668ba7f3950753">x1</a> = b_servos_center.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#ac5bc000f8954f38b7a641a485a26bae7">x2</a> + <a class="code" href="screen__pixytest_8c.html#a61f6199ab9d14cc55be19847add309c3">SERVO_BUTTON_SPACING</a>;</div>
|
|
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  b_servos_topleft.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#a47ada631c22a9d40348069145654f255">y1</a> = <a class="code" href="screen__pixytest_8c.html#af043ebace98de8929bd147634673743e">SERVO_BUTTON_Y</a> - 3;</div>
|
|
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  b_servos_topleft.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#ac5bc000f8954f38b7a641a485a26bae7">x2</a> = <a class="code" href="group__button.html#ga0cc6f7717df9fbdc0f33efb88720a639">AUTO</a>;</div>
|
|
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  b_servos_topleft.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aa377184ba406b3f0c4ac18c935378204">y2</a> = <a class="code" href="group__button.html#ga0cc6f7717df9fbdc0f33efb88720a639">AUTO</a>;</div>
|
|
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  b_servos_topleft.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#aaf5a5af411fa69950e0b4415c8089c8b">txtcolor</a> = <a class="code" href="group__tft.html#ga87b537f5fa5c109d3c05c13d6b18f382">WHITE</a>;</div>
|
|
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  b_servos_topleft.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#aebb27fad2492ea7aa81895d0ede61fcf">bgcolor</a> = <a class="code" href="group__tft.html#gacbaf0b6287f2d906af1e76051be37a87">HEX</a>(0xAE1010);</div>
|
|
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  b_servos_topleft.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adeae49dfe3584e6df726fb4167cd1cf7">font</a> = 0;</div>
|
|
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  b_servos_topleft.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#a16343090e80c4472521560f30113d96c">text</a> = <span class="stringliteral">"ToLe"</span>;</div>
|
|
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  b_servos_topleft.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#a269d23c8a60f8acdf9279642999ee6a9">callback</a> = <a class="code" href="screen__pixytest_8c.html#adaae997e56e5f71dff07650e0fccdbab">b_servos_topleft_cb</a>;</div>
|
|
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <a class="code" href="group__button.html#ga64d5d2aaff2c917e5d43e7ed849607de">gui_button_add</a>(&b_servos_topleft);</div>
|
|
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span> </div>
|
|
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  b_servos_topright.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aedb5fdfe3c1d1a915b668ba7f3950753">x1</a> = b_servos_topleft.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#ac5bc000f8954f38b7a641a485a26bae7">x2</a> + <a class="code" href="screen__pixytest_8c.html#a61f6199ab9d14cc55be19847add309c3">SERVO_BUTTON_SPACING</a>;</div>
|
|
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  b_servos_topright.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#a47ada631c22a9d40348069145654f255">y1</a> = <a class="code" href="screen__pixytest_8c.html#af043ebace98de8929bd147634673743e">SERVO_BUTTON_Y</a> - 3;</div>
|
|
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  b_servos_topright.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#ac5bc000f8954f38b7a641a485a26bae7">x2</a> = <a class="code" href="group__button.html#ga0cc6f7717df9fbdc0f33efb88720a639">AUTO</a>;</div>
|
|
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  b_servos_topright.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aa377184ba406b3f0c4ac18c935378204">y2</a> = <a class="code" href="group__button.html#ga0cc6f7717df9fbdc0f33efb88720a639">AUTO</a>;</div>
|
|
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  b_servos_topright.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#aaf5a5af411fa69950e0b4415c8089c8b">txtcolor</a> = <a class="code" href="group__tft.html#ga87b537f5fa5c109d3c05c13d6b18f382">WHITE</a>;</div>
|
|
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  b_servos_topright.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#aebb27fad2492ea7aa81895d0ede61fcf">bgcolor</a> = <a class="code" href="group__tft.html#gacbaf0b6287f2d906af1e76051be37a87">HEX</a>(0xAE1010);</div>
|
|
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  b_servos_topright.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adeae49dfe3584e6df726fb4167cd1cf7">font</a> = 0;</div>
|
|
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  b_servos_topright.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#a16343090e80c4472521560f30113d96c">text</a> = <span class="stringliteral">"ToRi"</span>;</div>
|
|
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  b_servos_topright.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#a269d23c8a60f8acdf9279642999ee6a9">callback</a> = <a class="code" href="screen__pixytest_8c.html#a5aeb52abd0731f4db0537d47c296cc24">b_servos_topright_cb</a>;</div>
|
|
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  <a class="code" href="group__button.html#ga64d5d2aaff2c917e5d43e7ed849607de">gui_button_add</a>(&b_servos_topright);</div>
|
|
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span> </div>
|
|
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  b_servos_bottomleft.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aedb5fdfe3c1d1a915b668ba7f3950753">x1</a> = b_servos_topright.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#ac5bc000f8954f38b7a641a485a26bae7">x2</a> + <a class="code" href="screen__pixytest_8c.html#a61f6199ab9d14cc55be19847add309c3">SERVO_BUTTON_SPACING</a>;</div>
|
|
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  b_servos_bottomleft.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#a47ada631c22a9d40348069145654f255">y1</a> = <a class="code" href="screen__pixytest_8c.html#af043ebace98de8929bd147634673743e">SERVO_BUTTON_Y</a> - 3;</div>
|
|
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  b_servos_bottomleft.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#ac5bc000f8954f38b7a641a485a26bae7">x2</a> = <a class="code" href="group__button.html#ga0cc6f7717df9fbdc0f33efb88720a639">AUTO</a>;</div>
|
|
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  b_servos_bottomleft.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aa377184ba406b3f0c4ac18c935378204">y2</a> = <a class="code" href="group__button.html#ga0cc6f7717df9fbdc0f33efb88720a639">AUTO</a>;</div>
|
|
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  b_servos_bottomleft.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#aaf5a5af411fa69950e0b4415c8089c8b">txtcolor</a> = <a class="code" href="group__tft.html#ga87b537f5fa5c109d3c05c13d6b18f382">WHITE</a>;</div>
|
|
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  b_servos_bottomleft.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#aebb27fad2492ea7aa81895d0ede61fcf">bgcolor</a> = <a class="code" href="group__tft.html#gacbaf0b6287f2d906af1e76051be37a87">HEX</a>(0xAE1010);</div>
|
|
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  b_servos_bottomleft.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adeae49dfe3584e6df726fb4167cd1cf7">font</a> = 0;</div>
|
|
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  b_servos_bottomleft.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#a16343090e80c4472521560f30113d96c">text</a> = <span class="stringliteral">"BoLe"</span>;</div>
|
|
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  b_servos_bottomleft.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#a269d23c8a60f8acdf9279642999ee6a9">callback</a> = <a class="code" href="screen__pixytest_8c.html#adfa97285ff9460b593bb54574a880228">b_servos_bottomleft_cb</a>;</div>
|
|
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  <a class="code" href="group__button.html#ga64d5d2aaff2c917e5d43e7ed849607de">gui_button_add</a>(&b_servos_bottomleft);</div>
|
|
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span> </div>
|
|
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  b_servos_bottomright.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aedb5fdfe3c1d1a915b668ba7f3950753">x1</a> = b_servos_bottomleft.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#ac5bc000f8954f38b7a641a485a26bae7">x2</a> + <a class="code" href="screen__pixytest_8c.html#a61f6199ab9d14cc55be19847add309c3">SERVO_BUTTON_SPACING</a>;</div>
|
|
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  b_servos_bottomright.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#a47ada631c22a9d40348069145654f255">y1</a> = <a class="code" href="screen__pixytest_8c.html#af043ebace98de8929bd147634673743e">SERVO_BUTTON_Y</a> - 3;</div>
|
|
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  b_servos_bottomright.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#ac5bc000f8954f38b7a641a485a26bae7">x2</a> = <a class="code" href="group__button.html#ga0cc6f7717df9fbdc0f33efb88720a639">AUTO</a>;</div>
|
|
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  b_servos_bottomright.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aa377184ba406b3f0c4ac18c935378204">y2</a> = <a class="code" href="group__button.html#ga0cc6f7717df9fbdc0f33efb88720a639">AUTO</a>;</div>
|
|
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  b_servos_bottomright.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#aaf5a5af411fa69950e0b4415c8089c8b">txtcolor</a> = <a class="code" href="group__tft.html#ga87b537f5fa5c109d3c05c13d6b18f382">WHITE</a>;</div>
|
|
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  b_servos_bottomright.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#aebb27fad2492ea7aa81895d0ede61fcf">bgcolor</a> = <a class="code" href="group__tft.html#gacbaf0b6287f2d906af1e76051be37a87">HEX</a>(0xAE1010);</div>
|
|
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  b_servos_bottomright.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adeae49dfe3584e6df726fb4167cd1cf7">font</a> = 0;</div>
|
|
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  b_servos_bottomright.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#a16343090e80c4472521560f30113d96c">text</a> = <span class="stringliteral">"BoRi"</span>;</div>
|
|
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  b_servos_bottomright.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#a269d23c8a60f8acdf9279642999ee6a9">callback</a> = <a class="code" href="screen__pixytest_8c.html#a9431d0f00cbebabe92c9db9ca33febfa">b_servos_bottomright_cb</a>;</div>
|
|
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  <a class="code" href="group__button.html#ga64d5d2aaff2c917e5d43e7ed849607de">gui_button_add</a>(&b_servos_bottomright);</div>
|
|
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span> </div>
|
|
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <span class="comment">//Led Color stuff</span></div>
|
|
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span> <span class="preprocessor">#define LED_COLOR_BUTTON_Y 35</span></div>
|
|
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span> <span class="preprocessor">#define LED_COLOR_BUTTON_SPACING 5</span></div>
|
|
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  <a class="code" href="group__tft.html#gabf54943131990b366ce6875a0e1925f6">tft_print_line</a>(5, <a class="code" href="screen__pixytest_8c.html#aa1c7e63235f9f63a759ea7e5a0c26b83">LED_COLOR_BUTTON_Y</a>, <a class="code" href="group__tft.html#ga7b3b25cba33b07c303f3060fe41887f6">BLACK</a>, <a class="code" href="group__tft.html#ga6c54e72c6142d317114a29adbcbb24b6">TRANSPARENT</a>, 0, <span class="stringliteral">"Led Color:"</span>);</div>
|
|
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span> </div>
|
|
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  b_led_off.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aedb5fdfe3c1d1a915b668ba7f3950753">x1</a> = 85;</div>
|
|
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  b_led_off.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#a47ada631c22a9d40348069145654f255">y1</a> = <a class="code" href="screen__pixytest_8c.html#aa1c7e63235f9f63a759ea7e5a0c26b83">LED_COLOR_BUTTON_Y</a> - 3;</div>
|
|
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  b_led_off.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#ac5bc000f8954f38b7a641a485a26bae7">x2</a> = <a class="code" href="group__button.html#ga0cc6f7717df9fbdc0f33efb88720a639">AUTO</a>;</div>
|
|
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  b_led_off.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aa377184ba406b3f0c4ac18c935378204">y2</a> = <a class="code" href="group__button.html#ga0cc6f7717df9fbdc0f33efb88720a639">AUTO</a>;</div>
|
|
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  b_led_off.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#aaf5a5af411fa69950e0b4415c8089c8b">txtcolor</a> = <a class="code" href="group__tft.html#ga87b537f5fa5c109d3c05c13d6b18f382">WHITE</a>;</div>
|
|
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  b_led_off.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#aebb27fad2492ea7aa81895d0ede61fcf">bgcolor</a> = <a class="code" href="group__tft.html#ga7b3b25cba33b07c303f3060fe41887f6">BLACK</a>;</div>
|
|
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  b_led_off.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adeae49dfe3584e6df726fb4167cd1cf7">font</a> = 0;</div>
|
|
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  b_led_off.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#a16343090e80c4472521560f30113d96c">text</a> = <span class="stringliteral">"Off"</span>;</div>
|
|
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  b_led_off.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#a269d23c8a60f8acdf9279642999ee6a9">callback</a> = <a class="code" href="screen__pixytest_8c.html#a26fb89d09091b2796fde75c0f5bf82d8">b_led_off_cb</a>;</div>
|
|
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  <a class="code" href="group__button.html#ga64d5d2aaff2c917e5d43e7ed849607de">gui_button_add</a>(&b_led_off);</div>
|
|
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span> </div>
|
|
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  b_led_white.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aedb5fdfe3c1d1a915b668ba7f3950753">x1</a> = b_led_off.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#ac5bc000f8954f38b7a641a485a26bae7">x2</a> + <a class="code" href="screen__pixytest_8c.html#a3f1abd08d10208e27c971ef4d402c4ef">LED_COLOR_BUTTON_SPACING</a>;</div>
|
|
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  b_led_white.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#a47ada631c22a9d40348069145654f255">y1</a> = <a class="code" href="screen__pixytest_8c.html#aa1c7e63235f9f63a759ea7e5a0c26b83">LED_COLOR_BUTTON_Y</a> - 3;</div>
|
|
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  b_led_white.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#ac5bc000f8954f38b7a641a485a26bae7">x2</a> = <a class="code" href="group__button.html#ga0cc6f7717df9fbdc0f33efb88720a639">AUTO</a>;</div>
|
|
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  b_led_white.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aa377184ba406b3f0c4ac18c935378204">y2</a> = <a class="code" href="group__button.html#ga0cc6f7717df9fbdc0f33efb88720a639">AUTO</a>;</div>
|
|
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  b_led_white.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#aaf5a5af411fa69950e0b4415c8089c8b">txtcolor</a> = <a class="code" href="group__tft.html#ga7b3b25cba33b07c303f3060fe41887f6">BLACK</a>;</div>
|
|
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  b_led_white.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#aebb27fad2492ea7aa81895d0ede61fcf">bgcolor</a> = <a class="code" href="group__tft.html#gacbaf0b6287f2d906af1e76051be37a87">HEX</a>(0xEEEEEE);</div>
|
|
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  b_led_white.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adeae49dfe3584e6df726fb4167cd1cf7">font</a> = 0;</div>
|
|
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  b_led_white.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#a16343090e80c4472521560f30113d96c">text</a> = <span class="stringliteral">"White"</span>;</div>
|
|
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  b_led_white.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#a269d23c8a60f8acdf9279642999ee6a9">callback</a> = <a class="code" href="screen__pixytest_8c.html#a9bbf0c7577695231d5f8ad6ea38ef3e2">b_led_white_cb</a>;</div>
|
|
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  <a class="code" href="group__button.html#ga64d5d2aaff2c917e5d43e7ed849607de">gui_button_add</a>(&b_led_white);</div>
|
|
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span> </div>
|
|
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  b_led_red.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aedb5fdfe3c1d1a915b668ba7f3950753">x1</a> = b_led_white.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#ac5bc000f8954f38b7a641a485a26bae7">x2</a> + <a class="code" href="screen__pixytest_8c.html#a3f1abd08d10208e27c971ef4d402c4ef">LED_COLOR_BUTTON_SPACING</a>;</div>
|
|
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  b_led_red.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#a47ada631c22a9d40348069145654f255">y1</a> = <a class="code" href="screen__pixytest_8c.html#aa1c7e63235f9f63a759ea7e5a0c26b83">LED_COLOR_BUTTON_Y</a> - 3;</div>
|
|
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  b_led_red.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#ac5bc000f8954f38b7a641a485a26bae7">x2</a> = <a class="code" href="group__button.html#ga0cc6f7717df9fbdc0f33efb88720a639">AUTO</a>;</div>
|
|
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  b_led_red.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aa377184ba406b3f0c4ac18c935378204">y2</a> = <a class="code" href="group__button.html#ga0cc6f7717df9fbdc0f33efb88720a639">AUTO</a>;</div>
|
|
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  b_led_red.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#aaf5a5af411fa69950e0b4415c8089c8b">txtcolor</a> = <a class="code" href="group__tft.html#ga87b537f5fa5c109d3c05c13d6b18f382">WHITE</a>;</div>
|
|
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  b_led_red.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#aebb27fad2492ea7aa81895d0ede61fcf">bgcolor</a> = <a class="code" href="group__tft.html#gacbaf0b6287f2d906af1e76051be37a87">HEX</a>(0xEE0000);</div>
|
|
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  b_led_red.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adeae49dfe3584e6df726fb4167cd1cf7">font</a> = 0;</div>
|
|
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  b_led_red.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#a16343090e80c4472521560f30113d96c">text</a> = <span class="stringliteral">"Red"</span>;</div>
|
|
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  b_led_red.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#a269d23c8a60f8acdf9279642999ee6a9">callback</a> = <a class="code" href="screen__pixytest_8c.html#ac936d4c15a496aedc9c0285c6da36968">b_led_red_cb</a>;</div>
|
|
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <a class="code" href="group__button.html#ga64d5d2aaff2c917e5d43e7ed849607de">gui_button_add</a>(&b_led_red);</div>
|
|
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span> </div>
|
|
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  b_led_green.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aedb5fdfe3c1d1a915b668ba7f3950753">x1</a> = b_led_red.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#ac5bc000f8954f38b7a641a485a26bae7">x2</a> + <a class="code" href="screen__pixytest_8c.html#a3f1abd08d10208e27c971ef4d402c4ef">LED_COLOR_BUTTON_SPACING</a>;</div>
|
|
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  b_led_green.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#a47ada631c22a9d40348069145654f255">y1</a> = <a class="code" href="screen__pixytest_8c.html#aa1c7e63235f9f63a759ea7e5a0c26b83">LED_COLOR_BUTTON_Y</a> - 3;</div>
|
|
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  b_led_green.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#ac5bc000f8954f38b7a641a485a26bae7">x2</a> = <a class="code" href="group__button.html#ga0cc6f7717df9fbdc0f33efb88720a639">AUTO</a>;</div>
|
|
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  b_led_green.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aa377184ba406b3f0c4ac18c935378204">y2</a> = <a class="code" href="group__button.html#ga0cc6f7717df9fbdc0f33efb88720a639">AUTO</a>;</div>
|
|
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  b_led_green.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#aaf5a5af411fa69950e0b4415c8089c8b">txtcolor</a> = <a class="code" href="group__tft.html#ga87b537f5fa5c109d3c05c13d6b18f382">WHITE</a>;</div>
|
|
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  b_led_green.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#aebb27fad2492ea7aa81895d0ede61fcf">bgcolor</a> = <a class="code" href="group__tft.html#gacbaf0b6287f2d906af1e76051be37a87">HEX</a>(0x00EE00);</div>
|
|
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  b_led_green.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adeae49dfe3584e6df726fb4167cd1cf7">font</a> = 0;</div>
|
|
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  b_led_green.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#a16343090e80c4472521560f30113d96c">text</a> = <span class="stringliteral">"Green"</span>;</div>
|
|
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  b_led_green.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#a269d23c8a60f8acdf9279642999ee6a9">callback</a> = <a class="code" href="screen__pixytest_8c.html#a047e6035ae52e61ab0723069412e19a7">b_led_green_cb</a>;</div>
|
|
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  <a class="code" href="group__button.html#ga64d5d2aaff2c917e5d43e7ed849607de">gui_button_add</a>(&b_led_green);</div>
|
|
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span> </div>
|
|
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  b_led_blue.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aedb5fdfe3c1d1a915b668ba7f3950753">x1</a> = b_led_green.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#ac5bc000f8954f38b7a641a485a26bae7">x2</a> + <a class="code" href="screen__pixytest_8c.html#a3f1abd08d10208e27c971ef4d402c4ef">LED_COLOR_BUTTON_SPACING</a>;</div>
|
|
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  b_led_blue.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#a47ada631c22a9d40348069145654f255">y1</a> = <a class="code" href="screen__pixytest_8c.html#aa1c7e63235f9f63a759ea7e5a0c26b83">LED_COLOR_BUTTON_Y</a> - 3;</div>
|
|
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  b_led_blue.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#ac5bc000f8954f38b7a641a485a26bae7">x2</a> = <a class="code" href="group__button.html#ga0cc6f7717df9fbdc0f33efb88720a639">AUTO</a>;</div>
|
|
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  b_led_blue.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aa377184ba406b3f0c4ac18c935378204">y2</a> = <a class="code" href="group__button.html#ga0cc6f7717df9fbdc0f33efb88720a639">AUTO</a>;</div>
|
|
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  b_led_blue.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#aaf5a5af411fa69950e0b4415c8089c8b">txtcolor</a> = <a class="code" href="group__tft.html#ga87b537f5fa5c109d3c05c13d6b18f382">WHITE</a>;</div>
|
|
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  b_led_blue.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#aebb27fad2492ea7aa81895d0ede61fcf">bgcolor</a> = <a class="code" href="group__tft.html#gacbaf0b6287f2d906af1e76051be37a87">HEX</a>(0x0000EE);</div>
|
|
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  b_led_blue.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adeae49dfe3584e6df726fb4167cd1cf7">font</a> = 0;</div>
|
|
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  b_led_blue.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#a16343090e80c4472521560f30113d96c">text</a> = <span class="stringliteral">"Blue"</span>;</div>
|
|
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  b_led_blue.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#a269d23c8a60f8acdf9279642999ee6a9">callback</a> = <a class="code" href="screen__pixytest_8c.html#acba93301521436f0dd9ea88d675691c2">b_led_blue_cb</a>;</div>
|
|
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  <a class="code" href="group__button.html#ga64d5d2aaff2c917e5d43e7ed849607de">gui_button_add</a>(&b_led_blue);</div>
|
|
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span> </div>
|
|
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  <span class="comment">//Led MaxPower stuff</span></div>
|
|
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span> <span class="preprocessor">#define LED_POWER_BUTTON_Y 70</span></div>
|
|
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  <a class="code" href="group__tft.html#gabf54943131990b366ce6875a0e1925f6">tft_print_line</a>(5, <a class="code" href="screen__pixytest_8c.html#a3caba4698a10a53c798ecdf5d2d0d7de">LED_POWER_BUTTON_Y</a>, <a class="code" href="group__tft.html#ga7b3b25cba33b07c303f3060fe41887f6">BLACK</a>, <a class="code" href="group__tft.html#ga6c54e72c6142d317114a29adbcbb24b6">TRANSPARENT</a>, 0, <span class="stringliteral">"Led Maximum Current:"</span>);</div>
|
|
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span> </div>
|
|
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  <span class="comment">//Num up down test</span></div>
|
|
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  n_led_powerlimit.<a class="code" href="struct_n_u_m_u_p_d_o_w_n___s_t_r_u_c_t.html#a4dde988b1b2adba65ae3efa69f65d960">x</a> = 160;</div>
|
|
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  n_led_powerlimit.<a class="code" href="struct_n_u_m_u_p_d_o_w_n___s_t_r_u_c_t.html#ab0580f504a7428539be299fa71565f30">y</a> = <a class="code" href="screen__pixytest_8c.html#a3caba4698a10a53c798ecdf5d2d0d7de">LED_POWER_BUTTON_Y</a> - 7;</div>
|
|
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  n_led_powerlimit.<a class="code" href="struct_n_u_m_u_p_d_o_w_n___s_t_r_u_c_t.html#a78bc63a5b9272aa4a69d6ceea4e65902">fgcolor</a> = <a class="code" href="group__tft.html#ga87b537f5fa5c109d3c05c13d6b18f382">WHITE</a>;</div>
|
|
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  n_led_powerlimit.<a class="code" href="struct_n_u_m_u_p_d_o_w_n___s_t_r_u_c_t.html#a7375fa3485ce43bbc621f90ce895d52a">value</a> = 10;</div>
|
|
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  n_led_powerlimit.<a class="code" href="struct_n_u_m_u_p_d_o_w_n___s_t_r_u_c_t.html#a43a190f55cab9276eb1d6b6a4f453ccf">max</a> = 40;</div>
|
|
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  n_led_powerlimit.<a class="code" href="struct_n_u_m_u_p_d_o_w_n___s_t_r_u_c_t.html#a29dc67311876da954d1fb5911f161fed">min</a> = 0;</div>
|
|
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  n_led_powerlimit.<a class="code" href="struct_n_u_m_u_p_d_o_w_n___s_t_r_u_c_t.html#a70d80bf3a066e14217829f05fa3600f8">callback</a> = <a class="code" href="screen__pixytest_8c.html#a6257e15ffef64770bc3c744f0ef0208a">n_led_powerlimit_cb</a>;</div>
|
|
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  <a class="code" href="group__numupdown.html#gab4321e7fc0810ee30355bc7d0a3372db">gui_numupdown_add</a>(&n_led_powerlimit);</div>
|
|
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span> </div>
|
|
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span> </div>
|
|
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span> </div>
|
|
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  <a class="code" href="screen__pixytest_8c.html#aae2e5315ba9ea0c3b531141973e529ae">state</a> = <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7a7689d85a4508e742b3263bbee54cdbdd">detecting</a>;</div>
|
|
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span> }</div>
|
|
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span> </div>
|
|
<div class="line"><a name="l00307"></a><span class="lineno"><a class="line" href="screen__pixytest_8c.html#acd1409088e83cf2a8ba2cf96dd9b52f8"> 307</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="screen__pixytest_8c.html#acd1409088e83cf2a8ba2cf96dd9b52f8">leave</a>(<span class="keywordtype">void</span>* <a class="code" href="screen__pixytest_8c.html#a939fdd806f427cc8505ed817e28cce9d">screen</a>)</div>
|
|
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span> {</div>
|
|
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  <a class="code" href="group__button.html#ga39e6ec07616381a15f276cd821dad4fd">gui_button_remove</a>(&b_back);</div>
|
|
<div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  <a class="code" href="group__button.html#ga39e6ec07616381a15f276cd821dad4fd">gui_button_remove</a>(&b_servos_center);</div>
|
|
<div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  <a class="code" href="group__button.html#ga39e6ec07616381a15f276cd821dad4fd">gui_button_remove</a>(&b_servos_topleft);</div>
|
|
<div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  <a class="code" href="group__button.html#ga39e6ec07616381a15f276cd821dad4fd">gui_button_remove</a>(&b_servos_topright);</div>
|
|
<div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  <a class="code" href="group__button.html#ga39e6ec07616381a15f276cd821dad4fd">gui_button_remove</a>(&b_servos_bottomleft);</div>
|
|
<div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  <a class="code" href="group__button.html#ga39e6ec07616381a15f276cd821dad4fd">gui_button_remove</a>(&b_servos_bottomright);</div>
|
|
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  <a class="code" href="group__button.html#ga39e6ec07616381a15f276cd821dad4fd">gui_button_remove</a>(&b_led_off);</div>
|
|
<div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  <a class="code" href="group__button.html#ga39e6ec07616381a15f276cd821dad4fd">gui_button_remove</a>(&b_led_white);</div>
|
|
<div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  <a class="code" href="group__button.html#ga39e6ec07616381a15f276cd821dad4fd">gui_button_remove</a>(&b_led_red);</div>
|
|
<div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  <a class="code" href="group__button.html#ga39e6ec07616381a15f276cd821dad4fd">gui_button_remove</a>(&b_led_green);</div>
|
|
<div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  <a class="code" href="group__button.html#ga39e6ec07616381a15f276cd821dad4fd">gui_button_remove</a>(&b_led_blue);</div>
|
|
<div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  <a class="code" href="group__numupdown.html#ga9470a5c6f0ffbbda7c56e1b8a59f4b97">gui_numupdown_remove</a>(&n_led_powerlimit);</div>
|
|
<div class="line"><a name="l00321"></a><span class="lineno"> 321</span> </div>
|
|
<div class="line"><a name="l00322"></a><span class="lineno"> 322</span> }</div>
|
|
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span> </div>
|
|
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span> </div>
|
|
<div class="line"><a name="l00325"></a><span class="lineno"><a class="line" href="screen__pixytest_8c.html#a5e8f84ee8ff4bf827775c38ae6752509"> 325</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="screen__pixytest_8c.html#a5e8f84ee8ff4bf827775c38ae6752509">update</a>(<span class="keywordtype">void</span>* <a class="code" href="screen__pixytest_8c.html#a939fdd806f427cc8505ed817e28cce9d">screen</a>)</div>
|
|
<div class="line"><a name="l00326"></a><span class="lineno"> 326</span> {</div>
|
|
<div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  <span class="keywordflow">switch</span> (<a class="code" href="screen__pixytest_8c.html#aae2e5315ba9ea0c3b531141973e529ae">state</a>) {</div>
|
|
<div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  <span class="keywordflow">case</span> <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7a7689d85a4508e742b3263bbee54cdbdd">detecting</a>: <span class="comment">//Detecting State: Where we try to connect to the pixy</span></div>
|
|
<div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  <span class="keywordflow">if</span> (<a class="code" href="group__pixy.html#gad269822960ad0073356dab75ce3050b3">pixy_init</a>() == 0) { <span class="comment">//Pixy connection ok</span></div>
|
|
<div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  int32_t response;</div>
|
|
<div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  <span class="keywordtype">int</span> return_value;</div>
|
|
<div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  return_value = <a class="code" href="group__pixy.html#ga3d55779001cc649ed85be1a92f09892d">pixy_command</a>(<span class="stringliteral">"stop"</span>, <a class="code" href="pixydefs_8h.html#a1e61ec3195f40970b492ff9ace3ce84b">END_OUT_ARGS</a>, &response, <a class="code" href="pixydefs_8h.html#a3997998ea42c5ea31902d9e0b7df4bd5">END_IN_ARGS</a>);</div>
|
|
<div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  <a class="code" href="group__pixy.html#ga38582b897bb2eb5f36c6f68d2e171d05">pixy_led_set_max_current</a>(10);</div>
|
|
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span> </div>
|
|
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  <a class="code" href="screen__pixytest_8c.html#aae2e5315ba9ea0c3b531141973e529ae">state</a> = <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7a0e9a37114c0e458d28d52f06ec0f2242">idle</a>; <span class="comment">//Go to next state</span></div>
|
|
<div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  }</div>
|
|
<div class="line"><a name="l00337"></a><span class="lineno"> 337</span> </div>
|
|
<div class="line"><a name="l00338"></a><span class="lineno"> 338</span>  <span class="keywordflow">break</span>;</div>
|
|
<div class="line"><a name="l00339"></a><span class="lineno"> 339</span> </div>
|
|
<div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  <span class="keywordflow">case</span> <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7a0e9a37114c0e458d28d52f06ec0f2242">idle</a>:</div>
|
|
<div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  <a class="code" href="group__pixy.html#ga72a2cd126f6a5f67842e5ff66424ccb0">pixy_service</a>();</div>
|
|
<div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  <span class="keywordflow">break</span>;</div>
|
|
<div class="line"><a name="l00343"></a><span class="lineno"> 343</span> </div>
|
|
<div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  <span class="keywordflow">case</span> <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7aa2623f758ef2224d1d7f0d551c250b8a">update_servos</a>:</div>
|
|
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  <a class="code" href="group__pixy.html#ga5fb9213a5459dc6c74131ecabd6b5995">pixy_rcs_set_position</a>(0, <a class="code" href="screen__pixytest_8c.html#a8184234e1ba58053466062e14933bae7">servo_x</a>);</div>
|
|
<div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  <a class="code" href="group__pixy.html#ga5fb9213a5459dc6c74131ecabd6b5995">pixy_rcs_set_position</a>(1, <a class="code" href="screen__pixytest_8c.html#a3e9f071aa3313583a8a88d672bafaa20">servo_y</a>);</div>
|
|
<div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  <a class="code" href="screen__pixytest_8c.html#aae2e5315ba9ea0c3b531141973e529ae">state</a> = <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7a0e9a37114c0e458d28d52f06ec0f2242">idle</a>;</div>
|
|
<div class="line"><a name="l00348"></a><span class="lineno"> 348</span>  <span class="keywordflow">break</span>;</div>
|
|
<div class="line"><a name="l00349"></a><span class="lineno"> 349</span> </div>
|
|
<div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  <span class="keywordflow">case</span> <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7adebf5d632ea3947c444092e71924266c">update_ledcolor</a>: {</div>
|
|
<div class="line"><a name="l00351"></a><span class="lineno"> 351</span>  int32_t response;</div>
|
|
<div class="line"><a name="l00352"></a><span class="lineno"> 352</span>  <span class="keywordtype">int</span> return_value;</div>
|
|
<div class="line"><a name="l00353"></a><span class="lineno"> 353</span>  return_value = <a class="code" href="group__pixy.html#ga3d55779001cc649ed85be1a92f09892d">pixy_command</a>(<span class="stringliteral">"led_set"</span>, <a class="code" href="pixydefs_8h.html#a1d913ae2edf2ac73d3e18dcfdf1cbfda">INT32</a>(<a class="code" href="screen__pixytest_8c.html#a230b340b4c3998d343da8186aaba3500">led_color</a>), <a class="code" href="pixydefs_8h.html#a1e61ec3195f40970b492ff9ace3ce84b">END_OUT_ARGS</a>, &response, <a class="code" href="pixydefs_8h.html#a3997998ea42c5ea31902d9e0b7df4bd5">END_IN_ARGS</a>);</div>
|
|
<div class="line"><a name="l00354"></a><span class="lineno"> 354</span>  <a class="code" href="screen__pixytest_8c.html#aae2e5315ba9ea0c3b531141973e529ae">state</a> = <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7a0e9a37114c0e458d28d52f06ec0f2242">idle</a>;</div>
|
|
<div class="line"><a name="l00355"></a><span class="lineno"> 355</span>  }</div>
|
|
<div class="line"><a name="l00356"></a><span class="lineno"> 356</span>  <span class="keywordflow">break</span>;</div>
|
|
<div class="line"><a name="l00357"></a><span class="lineno"> 357</span> </div>
|
|
<div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  <span class="keywordflow">case</span> <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7afa956cdf05831462f04238d2946d54e4">update_ledcurrent</a>:</div>
|
|
<div class="line"><a name="l00359"></a><span class="lineno"> 359</span>  <a class="code" href="group__pixy.html#ga38582b897bb2eb5f36c6f68d2e171d05">pixy_led_set_max_current</a>(<a class="code" href="screen__pixytest_8c.html#a71a0773356aeb29d6b4276caa281d5eb">led_maxcurrent</a>);</div>
|
|
<div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  <a class="code" href="screen__pixytest_8c.html#aae2e5315ba9ea0c3b531141973e529ae">state</a> = <a class="code" href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7a0e9a37114c0e458d28d52f06ec0f2242">idle</a>;</div>
|
|
<div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  <span class="keywordflow">break</span>;</div>
|
|
<div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  }</div>
|
|
<div class="line"><a name="l00363"></a><span class="lineno"> 363</span> </div>
|
|
<div class="line"><a name="l00364"></a><span class="lineno"> 364</span> }</div>
|
|
<div class="line"><a name="l00365"></a><span class="lineno"> 365</span> </div>
|
|
<div class="line"><a name="l00366"></a><span class="lineno"> 366</span> </div>
|
|
<div class="line"><a name="l00367"></a><span class="lineno"><a class="line" href="screen__pixytest_8c.html#a939fdd806f427cc8505ed817e28cce9d"> 367</a></span> <span class="keyword">static</span> <a class="code" href="struct_s_c_r_e_e_n___s.html">SCREEN_STRUCT</a> <a class="code" href="screen__pixytest_8c.html#a939fdd806f427cc8505ed817e28cce9d">screen</a> = {</div>
|
|
<div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  <a class="code" href="screen__pixytest_8c.html#a3017cd14eca2b9e67a69e7ea559b5eaa">enter</a>,</div>
|
|
<div class="line"><a name="l00369"></a><span class="lineno"> 369</span>  <a class="code" href="screen__pixytest_8c.html#acd1409088e83cf2a8ba2cf96dd9b52f8">leave</a>,</div>
|
|
<div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  <a class="code" href="screen__pixytest_8c.html#a5e8f84ee8ff4bf827775c38ae6752509">update</a></div>
|
|
<div class="line"><a name="l00371"></a><span class="lineno"> 371</span> };</div>
|
|
<div class="line"><a name="l00372"></a><span class="lineno"> 372</span> </div>
|
|
<div class="line"><a name="l00373"></a><span class="lineno"> 373</span> </div>
|
|
<div class="line"><a name="l00374"></a><span class="lineno"><a class="line" href="group__pixytest.html#ga6fa63bbb4f8984a3f833b0d109147e39"> 374</a></span> <a class="code" href="struct_s_c_r_e_e_n___s.html">SCREEN_STRUCT</a>* <a class="code" href="group__pixytest.html#ga6fa63bbb4f8984a3f833b0d109147e39">get_screen_pixytest</a>()</div>
|
|
<div class="line"><a name="l00375"></a><span class="lineno"> 375</span> {</div>
|
|
<div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  <span class="keywordflow">return</span> &<a class="code" href="screen__pixytest_8c.html#a939fdd806f427cc8505ed817e28cce9d">screen</a>;</div>
|
|
<div class="line"><a name="l00377"></a><span class="lineno"> 377</span> }</div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_a26b5a87b61eb1cd0888fdfc12a91a6d7"><div class="ttname"><a href="screen__pixytest_8c.html#a26b5a87b61eb1cd0888fdfc12a91a6d7">b_back_cb</a></div><div class="ttdeci">static void b_back_cb(void *button)</div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00053">screen_pixytest.c:53</a></div></div>
|
|
<div class="ttc" id="struct_b_u_t_t_o_n___s_t_r_u_c_t_html_a16343090e80c4472521560f30113d96c"><div class="ttname"><a href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#a16343090e80c4472521560f30113d96c">BUTTON_STRUCT::text</a></div><div class="ttdeci">const char * text</div><div class="ttdoc">The label of the button. </div><div class="ttdef"><b>Definition:</b> <a href="button_8h_source.html#l00061">button.h:61</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_acba93301521436f0dd9ea88d675691c2"><div class="ttname"><a href="screen__pixytest_8c.html#acba93301521436f0dd9ea88d675691c2">b_led_blue_cb</a></div><div class="ttdeci">static void b_led_blue_cb(void *button)</div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00135">screen_pixytest.c:135</a></div></div>
|
|
<div class="ttc" id="struct_b_u_t_t_o_n___s_t_r_u_c_t_html_aaf5a5af411fa69950e0b4415c8089c8b"><div class="ttname"><a href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#aaf5a5af411fa69950e0b4415c8089c8b">BUTTON_STRUCT::txtcolor</a></div><div class="ttdeci">uint16_t txtcolor</div><div class="ttdoc">The 16-bit text color. </div><div class="ttdef"><b>Definition:</b> <a href="button_8h_source.html#l00059">button.h:59</a></div></div>
|
|
<div class="ttc" id="group__button_html_ga0cc6f7717df9fbdc0f33efb88720a639"><div class="ttname"><a href="group__button.html#ga0cc6f7717df9fbdc0f33efb88720a639">AUTO</a></div><div class="ttdeci">#define AUTO</div><div class="ttdoc">Use this value instead of x2, y2 in the BUTTON_STRUCT to autocalculate the button width/height...</div><div class="ttdef"><b>Definition:</b> <a href="button_8h_source.html#l00065">button.h:65</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_af043ebace98de8929bd147634673743e"><div class="ttname"><a href="screen__pixytest_8c.html#af043ebace98de8929bd147634673743e">SERVO_BUTTON_Y</a></div><div class="ttdeci">#define SERVO_BUTTON_Y</div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_adf764cbdea00d65edcd07bb9953ad2b7a0e9a37114c0e458d28d52f06ec0f2242"><div class="ttname"><a href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7a0e9a37114c0e458d28d52f06ec0f2242">idle</a></div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00030">screen_pixytest.c:30</a></div></div>
|
|
<div class="ttc" id="struct_n_u_m_u_p_d_o_w_n___s_t_r_u_c_t_html_a4dde988b1b2adba65ae3efa69f65d960"><div class="ttname"><a href="struct_n_u_m_u_p_d_o_w_n___s_t_r_u_c_t.html#a4dde988b1b2adba65ae3efa69f65d960">NUMUPDOWN_STRUCT::x</a></div><div class="ttdeci">uint16_t x</div><div class="ttdoc">The x-Coordinate of the Top-Left Starting Point. </div><div class="ttdef"><b>Definition:</b> <a href="numupdown_8h_source.html#l00049">numupdown.h:49</a></div></div>
|
|
<div class="ttc" id="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t_html_a47ada631c22a9d40348069145654f255"><div class="ttname"><a href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#a47ada631c22a9d40348069145654f255">TOUCH_AREA_STRUCT::y1</a></div><div class="ttdeci">uint16_t y1</div><div class="ttdoc">Top Left Y-Coordinate of Area. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00075">touch.h:75</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_a31c32762a466ff596f6aad802dc0687d"><div class="ttname"><a href="screen__pixytest_8c.html#a31c32762a466ff596f6aad802dc0687d">b_led_green</a></div><div class="ttdeci">static BUTTON_STRUCT b_led_green</div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00045">screen_pixytest.c:45</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_adfa97285ff9460b593bb54574a880228"><div class="ttname"><a href="screen__pixytest_8c.html#adfa97285ff9460b593bb54574a880228">b_servos_bottomleft_cb</a></div><div class="ttdeci">static void b_servos_bottomleft_cb(void *button)</div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00085">screen_pixytest.c:85</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_adf764cbdea00d65edcd07bb9953ad2b7a7689d85a4508e742b3263bbee54cdbdd"><div class="ttname"><a href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7a7689d85a4508e742b3263bbee54cdbdd">detecting</a></div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00030">screen_pixytest.c:30</a></div></div>
|
|
<div class="ttc" id="struct_b_u_t_t_o_n___s_t_r_u_c_t_html"><div class="ttname"><a href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html">BUTTON_STRUCT</a></div><div class="ttdef"><b>Definition:</b> <a href="button_8h_source.html#l00055">button.h:55</a></div></div>
|
|
<div class="ttc" id="group__button_html_ga64d5d2aaff2c917e5d43e7ed849607de"><div class="ttname"><a href="group__button.html#ga64d5d2aaff2c917e5d43e7ed849607de">gui_button_add</a></div><div class="ttdeci">bool gui_button_add(BUTTON_STRUCT *button)</div><div class="ttdef"><b>Definition:</b> <a href="button_8c_source.html#l00133">button.c:133</a></div></div>
|
|
<div class="ttc" id="group__tft_html_gabf54943131990b366ce6875a0e1925f6"><div class="ttname"><a href="group__tft.html#gabf54943131990b366ce6875a0e1925f6">tft_print_line</a></div><div class="ttdeci">void tft_print_line(uint16_t x, uint16_t y, uint16_t color, uint16_t bgcolor, uint8_t font, const char *text)</div><div class="ttdef"><b>Definition:</b> <a href="tft_8c_source.html#l00098">tft.c:98</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_a047e6035ae52e61ab0723069412e19a7"><div class="ttname"><a href="screen__pixytest_8c.html#a047e6035ae52e61ab0723069412e19a7">b_led_green_cb</a></div><div class="ttdeci">static void b_led_green_cb(void *button)</div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00127">screen_pixytest.c:127</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_adf764cbdea00d65edcd07bb9953ad2b7afa956cdf05831462f04238d2946d54e4"><div class="ttname"><a href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7afa956cdf05831462f04238d2946d54e4">update_ledcurrent</a></div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00030">screen_pixytest.c:30</a></div></div>
|
|
<div class="ttc" id="pixydefs_8h_html_a1d913ae2edf2ac73d3e18dcfdf1cbfda"><div class="ttname"><a href="pixydefs_8h.html#a1d913ae2edf2ac73d3e18dcfdf1cbfda">INT32</a></div><div class="ttdeci">#define INT32(v)</div><div class="ttdef"><b>Definition:</b> <a href="pixydefs_8h_source.html#l00065">pixydefs.h:65</a></div></div>
|
|
<div class="ttc" id="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t_html_aedb5fdfe3c1d1a915b668ba7f3950753"><div class="ttname"><a href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aedb5fdfe3c1d1a915b668ba7f3950753">TOUCH_AREA_STRUCT::x1</a></div><div class="ttdeci">uint16_t x1</div><div class="ttdoc">Top Left X-Coordinate of Area. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00074">touch.h:74</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_a8184234e1ba58053466062e14933bae7"><div class="ttname"><a href="screen__pixytest_8c.html#a8184234e1ba58053466062e14933bae7">servo_x</a></div><div class="ttdeci">static uint16_t servo_x</div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00039">screen_pixytest.c:39</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_a5aeb52abd0731f4db0537d47c296cc24"><div class="ttname"><a href="screen__pixytest_8c.html#a5aeb52abd0731f4db0537d47c296cc24">b_servos_topright_cb</a></div><div class="ttdeci">static void b_servos_topright_cb(void *button)</div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00076">screen_pixytest.c:76</a></div></div>
|
|
<div class="ttc" id="group__tft_html_ga6c54e72c6142d317114a29adbcbb24b6"><div class="ttname"><a href="group__tft.html#ga6c54e72c6142d317114a29adbcbb24b6">TRANSPARENT</a></div><div class="ttdeci">#define TRANSPARENT</div><div class="ttdef"><b>Definition:</b> <a href="tft_8h_source.html#l00066">tft.h:66</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_a9bbf0c7577695231d5f8ad6ea38ef3e2"><div class="ttname"><a href="screen__pixytest_8c.html#a9bbf0c7577695231d5f8ad6ea38ef3e2">b_led_white_cb</a></div><div class="ttdeci">static void b_led_white_cb(void *button)</div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00111">screen_pixytest.c:111</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_a939fdd806f427cc8505ed817e28cce9d"><div class="ttname"><a href="screen__pixytest_8c.html#a939fdd806f427cc8505ed817e28cce9d">screen</a></div><div class="ttdeci">static SCREEN_STRUCT screen</div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00367">screen_pixytest.c:367</a></div></div>
|
|
<div class="ttc" id="struct_b_u_t_t_o_n___s_t_r_u_c_t_html_aebb27fad2492ea7aa81895d0ede61fcf"><div class="ttname"><a href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#aebb27fad2492ea7aa81895d0ede61fcf">BUTTON_STRUCT::bgcolor</a></div><div class="ttdeci">uint16_t bgcolor</div><div class="ttdoc">The 16-bit background color of the button. </div><div class="ttdef"><b>Definition:</b> <a href="button_8h_source.html#l00057">button.h:57</a></div></div>
|
|
<div class="ttc" id="struct_b_u_t_t_o_n___s_t_r_u_c_t_html_adf10d197299522577e67d366877bdd3f"><div class="ttname"><a href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">BUTTON_STRUCT::base</a></div><div class="ttdeci">TOUCH_AREA_STRUCT base</div><div class="ttdoc">Basic geometry of the button. You only need to set the x1, y1, x2, y2 members of this struct...</div><div class="ttdef"><b>Definition:</b> <a href="button_8h_source.html#l00056">button.h:56</a></div></div>
|
|
<div class="ttc" id="numupdown_8h_html"><div class="ttname"><a href="numupdown_8h.html">numupdown.h</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_aa1c7e63235f9f63a759ea7e5a0c26b83"><div class="ttname"><a href="screen__pixytest_8c.html#aa1c7e63235f9f63a759ea7e5a0c26b83">LED_COLOR_BUTTON_Y</a></div><div class="ttdeci">#define LED_COLOR_BUTTON_Y</div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_acfb5dc26db6230fcc2a36cd0baa9d876"><div class="ttname"><a href="screen__pixytest_8c.html#acfb5dc26db6230fcc2a36cd0baa9d876">b_servos_bottomleft</a></div><div class="ttdeci">static BUTTON_STRUCT b_servos_bottomleft</div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00037">screen_pixytest.c:37</a></div></div>
|
|
<div class="ttc" id="struct_n_u_m_u_p_d_o_w_n___s_t_r_u_c_t_html_a70d80bf3a066e14217829f05fa3600f8"><div class="ttname"><a href="struct_n_u_m_u_p_d_o_w_n___s_t_r_u_c_t.html#a70d80bf3a066e14217829f05fa3600f8">NUMUPDOWN_STRUCT::callback</a></div><div class="ttdeci">NUMUPDOWN_CALLBACK callback</div><div class="ttdoc">Callback which is executed when the value changes. </div><div class="ttdef"><b>Definition:</b> <a href="numupdown_8h_source.html#l00055">numupdown.h:55</a></div></div>
|
|
<div class="ttc" id="group__tft_html_gacbaf0b6287f2d906af1e76051be37a87"><div class="ttname"><a href="group__tft.html#gacbaf0b6287f2d906af1e76051be37a87">HEX</a></div><div class="ttdeci">#define HEX(h)</div><div class="ttdef"><b>Definition:</b> <a href="tft_8h_source.html#l00060">tft.h:60</a></div></div>
|
|
<div class="ttc" id="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t_html_aa377184ba406b3f0c4ac18c935378204"><div class="ttname"><a href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aa377184ba406b3f0c4ac18c935378204">TOUCH_AREA_STRUCT::y2</a></div><div class="ttdeci">uint16_t y2</div><div class="ttdoc">Bottom Right Y-Coordinate of Area. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00077">touch.h:77</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_a26fb89d09091b2796fde75c0f5bf82d8"><div class="ttname"><a href="screen__pixytest_8c.html#a26fb89d09091b2796fde75c0f5bf82d8">b_led_off_cb</a></div><div class="ttdeci">static void b_led_off_cb(void *button)</div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00103">screen_pixytest.c:103</a></div></div>
|
|
<div class="ttc" id="group__pixy_html_ga72a2cd126f6a5f67842e5ff66424ccb0"><div class="ttname"><a href="group__pixy.html#ga72a2cd126f6a5f67842e5ff66424ccb0">pixy_service</a></div><div class="ttdeci">int pixy_service()</div></div>
|
|
<div class="ttc" id="button_8h_html"><div class="ttname"><a href="button_8h.html">button.h</a></div></div>
|
|
<div class="ttc" id="struct_n_u_m_u_p_d_o_w_n___s_t_r_u_c_t_html_ab0580f504a7428539be299fa71565f30"><div class="ttname"><a href="struct_n_u_m_u_p_d_o_w_n___s_t_r_u_c_t.html#ab0580f504a7428539be299fa71565f30">NUMUPDOWN_STRUCT::y</a></div><div class="ttdeci">uint16_t y</div><div class="ttdoc">The y-Coordinate of the Top-Left Starting Point. </div><div class="ttdef"><b>Definition:</b> <a href="numupdown_8h_source.html#l00050">numupdown.h:50</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_a71a0773356aeb29d6b4276caa281d5eb"><div class="ttname"><a href="screen__pixytest_8c.html#a71a0773356aeb29d6b4276caa281d5eb">led_maxcurrent</a></div><div class="ttdeci">static uint32_t led_maxcurrent</div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00049">screen_pixytest.c:49</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_adaae997e56e5f71dff07650e0fccdbab"><div class="ttname"><a href="screen__pixytest_8c.html#adaae997e56e5f71dff07650e0fccdbab">b_servos_topleft_cb</a></div><div class="ttdeci">static void b_servos_topleft_cb(void *button)</div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00067">screen_pixytest.c:67</a></div></div>
|
|
<div class="ttc" id="struct_n_u_m_u_p_d_o_w_n___s_t_r_u_c_t_html_a43a190f55cab9276eb1d6b6a4f453ccf"><div class="ttname"><a href="struct_n_u_m_u_p_d_o_w_n___s_t_r_u_c_t.html#a43a190f55cab9276eb1d6b6a4f453ccf">NUMUPDOWN_STRUCT::max</a></div><div class="ttdeci">int16_t max</div><div class="ttdoc">The maximum possible value (inclusive) </div><div class="ttdef"><b>Definition:</b> <a href="numupdown_8h_source.html#l00054">numupdown.h:54</a></div></div>
|
|
<div class="ttc" id="group__pixytest_html_ga6fa63bbb4f8984a3f833b0d109147e39"><div class="ttname"><a href="group__pixytest.html#ga6fa63bbb4f8984a3f833b0d109147e39">get_screen_pixytest</a></div><div class="ttdeci">SCREEN_STRUCT * get_screen_pixytest()</div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00374">screen_pixytest.c:374</a></div></div>
|
|
<div class="ttc" id="tft_8h_html"><div class="ttname"><a href="tft_8h.html">tft.h</a></div></div>
|
|
<div class="ttc" id="group__pixy_html_ga3d55779001cc649ed85be1a92f09892d"><div class="ttname"><a href="group__pixy.html#ga3d55779001cc649ed85be1a92f09892d">pixy_command</a></div><div class="ttdeci">int pixy_command(const char *name,...)</div><div class="ttdoc">Send a command to Pixy. </div></div>
|
|
<div class="ttc" id="struct_n_u_m_u_p_d_o_w_n___s_t_r_u_c_t_html"><div class="ttname"><a href="struct_n_u_m_u_p_d_o_w_n___s_t_r_u_c_t.html">NUMUPDOWN_STRUCT</a></div><div class="ttdef"><b>Definition:</b> <a href="numupdown_8h_source.html#l00048">numupdown.h:48</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_aa0eb797e4ff7535a507917a95da6711e"><div class="ttname"><a href="screen__pixytest_8c.html#aa0eb797e4ff7535a507917a95da6711e">b_led_white</a></div><div class="ttdeci">static BUTTON_STRUCT b_led_white</div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00043">screen_pixytest.c:43</a></div></div>
|
|
<div class="ttc" id="touch_8h_html"><div class="ttname"><a href="touch_8h.html">touch.h</a></div></div>
|
|
<div class="ttc" id="group__tft_html_ga6a2e3b3878ae5eea184d4c3ffe091b78"><div class="ttname"><a href="group__tft.html#ga6a2e3b3878ae5eea184d4c3ffe091b78">tft_clear</a></div><div class="ttdeci">void tft_clear(uint16_t color)</div><div class="ttdef"><b>Definition:</b> <a href="tft_8c_source.html#l00045">tft.c:45</a></div></div>
|
|
<div class="ttc" id="group__numupdown_html_ga9470a5c6f0ffbbda7c56e1b8a59f4b97"><div class="ttname"><a href="group__numupdown.html#ga9470a5c6f0ffbbda7c56e1b8a59f4b97">gui_numupdown_remove</a></div><div class="ttdeci">void gui_numupdown_remove(NUMUPDOWN_STRUCT *numupdown)</div><div class="ttdef"><b>Definition:</b> <a href="numupdown_8c_source.html#l00136">numupdown.c:136</a></div></div>
|
|
<div class="ttc" id="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t_html_ac5bc000f8954f38b7a641a485a26bae7"><div class="ttname"><a href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#ac5bc000f8954f38b7a641a485a26bae7">TOUCH_AREA_STRUCT::x2</a></div><div class="ttdeci">uint16_t x2</div><div class="ttdoc">Bottom Right X-Coordinate of Area. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00076">touch.h:76</a></div></div>
|
|
<div class="ttc" id="pixy_8h_html"><div class="ttname"><a href="pixy_8h.html">pixy.h</a></div></div>
|
|
<div class="ttc" id="group__button_html_ga39e6ec07616381a15f276cd821dad4fd"><div class="ttname"><a href="group__button.html#ga39e6ec07616381a15f276cd821dad4fd">gui_button_remove</a></div><div class="ttdeci">void gui_button_remove(BUTTON_STRUCT *button)</div><div class="ttdef"><b>Definition:</b> <a href="button_8c_source.html#l00184">button.c:184</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_ac936d4c15a496aedc9c0285c6da36968"><div class="ttname"><a href="screen__pixytest_8c.html#ac936d4c15a496aedc9c0285c6da36968">b_led_red_cb</a></div><div class="ttdeci">static void b_led_red_cb(void *button)</div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00119">screen_pixytest.c:119</a></div></div>
|
|
<div class="ttc" id="struct_n_u_m_u_p_d_o_w_n___s_t_r_u_c_t_html_a29dc67311876da954d1fb5911f161fed"><div class="ttname"><a href="struct_n_u_m_u_p_d_o_w_n___s_t_r_u_c_t.html#a29dc67311876da954d1fb5911f161fed">NUMUPDOWN_STRUCT::min</a></div><div class="ttdeci">int16_t min</div><div class="ttdoc">The minimum possible value (inclusive) </div><div class="ttdef"><b>Definition:</b> <a href="numupdown_8h_source.html#l00053">numupdown.h:53</a></div></div>
|
|
<div class="ttc" id="group__pixy_html_ga38582b897bb2eb5f36c6f68d2e171d05"><div class="ttname"><a href="group__pixy.html#ga38582b897bb2eb5f36c6f68d2e171d05">pixy_led_set_max_current</a></div><div class="ttdeci">int pixy_led_set_max_current(uint32_t current)</div><div class="ttdoc">Set pixy LED maximum current. </div></div>
|
|
<div class="ttc" id="struct_s_c_r_e_e_n___s_html"><div class="ttname"><a href="struct_s_c_r_e_e_n___s.html">SCREEN_S</a></div><div class="ttdef"><b>Definition:</b> <a href="screen_8h_source.html#l00052">screen.h:52</a></div></div>
|
|
<div class="ttc" id="group__tft_html_ga87b537f5fa5c109d3c05c13d6b18f382"><div class="ttname"><a href="group__tft.html#ga87b537f5fa5c109d3c05c13d6b18f382">WHITE</a></div><div class="ttdeci">#define WHITE</div><div class="ttdef"><b>Definition:</b> <a href="tft_8h_source.html#l00053">tft.h:53</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_acd1409088e83cf2a8ba2cf96dd9b52f8"><div class="ttname"><a href="screen__pixytest_8c.html#acd1409088e83cf2a8ba2cf96dd9b52f8">leave</a></div><div class="ttdeci">static void leave(void *screen)</div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00307">screen_pixytest.c:307</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_ad9e76b7916c4129af8c60eec0d694ae3"><div class="ttname"><a href="screen__pixytest_8c.html#ad9e76b7916c4129af8c60eec0d694ae3">b_servos_topleft</a></div><div class="ttdeci">static BUTTON_STRUCT b_servos_topleft</div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00035">screen_pixytest.c:35</a></div></div>
|
|
<div class="ttc" id="pixy__frame_8h_html"><div class="ttname"><a href="pixy__frame_8h.html">pixy_frame.h</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_a36e8cc311c87d4ef3e467b4f6e9e1e2e"><div class="ttname"><a href="screen__pixytest_8c.html#a36e8cc311c87d4ef3e467b4f6e9e1e2e">n_led_powerlimit</a></div><div class="ttdeci">static NUMUPDOWN_STRUCT n_led_powerlimit</div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00050">screen_pixytest.c:50</a></div></div>
|
|
<div class="ttc" id="group__pixy_html_gad269822960ad0073356dab75ce3050b3"><div class="ttname"><a href="group__pixy.html#gad269822960ad0073356dab75ce3050b3">pixy_init</a></div><div class="ttdeci">int pixy_init()</div><div class="ttdoc">Creates a connection with Pixy and listens for Pixy messages. </div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_ae5d8f6a72bbdbe109bc151bfef8ac9a6"><div class="ttname"><a href="screen__pixytest_8c.html#ae5d8f6a72bbdbe109bc151bfef8ac9a6">b_back</a></div><div class="ttdeci">static BUTTON_STRUCT b_back</div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00032">screen_pixytest.c:32</a></div></div>
|
|
<div class="ttc" id="pixydefs_8h_html_a1e61ec3195f40970b492ff9ace3ce84b"><div class="ttname"><a href="pixydefs_8h.html#a1e61ec3195f40970b492ff9ace3ce84b">END_OUT_ARGS</a></div><div class="ttdeci">#define END_OUT_ARGS</div><div class="ttdef"><b>Definition:</b> <a href="pixydefs_8h_source.html#l00089">pixydefs.h:89</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_aae2e5315ba9ea0c3b531141973e529ae"><div class="ttname"><a href="screen__pixytest_8c.html#aae2e5315ba9ea0c3b531141973e529ae">state</a></div><div class="ttdeci">static enum @1 state</div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_a9431d0f00cbebabe92c9db9ca33febfa"><div class="ttname"><a href="screen__pixytest_8c.html#a9431d0f00cbebabe92c9db9ca33febfa">b_servos_bottomright_cb</a></div><div class="ttdeci">static void b_servos_bottomright_cb(void *button)</div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00094">screen_pixytest.c:94</a></div></div>
|
|
<div class="ttc" id="group__pixy_html_ga5fb9213a5459dc6c74131ecabd6b5995"><div class="ttname"><a href="group__pixy.html#ga5fb9213a5459dc6c74131ecabd6b5995">pixy_rcs_set_position</a></div><div class="ttdeci">int pixy_rcs_set_position(uint8_t channel, uint16_t position)</div><div class="ttdoc">Set pixy servo axis position. </div></div>
|
|
<div class="ttc" id="struct_n_u_m_u_p_d_o_w_n___s_t_r_u_c_t_html_a78bc63a5b9272aa4a69d6ceea4e65902"><div class="ttname"><a href="struct_n_u_m_u_p_d_o_w_n___s_t_r_u_c_t.html#a78bc63a5b9272aa4a69d6ceea4e65902">NUMUPDOWN_STRUCT::fgcolor</a></div><div class="ttdeci">uint16_t fgcolor</div><div class="ttdoc">The 16-bit color of the value-text. </div><div class="ttdef"><b>Definition:</b> <a href="numupdown_8h_source.html#l00051">numupdown.h:51</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_a5e8f84ee8ff4bf827775c38ae6752509"><div class="ttname"><a href="screen__pixytest_8c.html#a5e8f84ee8ff4bf827775c38ae6752509">update</a></div><div class="ttdeci">static void update(void *screen)</div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00325">screen_pixytest.c:325</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_adf764cbdea00d65edcd07bb9953ad2b7adebf5d632ea3947c444092e71924266c"><div class="ttname"><a href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7adebf5d632ea3947c444092e71924266c">update_ledcolor</a></div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00030">screen_pixytest.c:30</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_afafa1aca162346e70bd8b03d046f688d"><div class="ttname"><a href="screen__pixytest_8c.html#afafa1aca162346e70bd8b03d046f688d">b_servos_center_cb</a></div><div class="ttdeci">static void b_servos_center_cb(void *button)</div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00058">screen_pixytest.c:58</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_a258e60594872309e6e115517ad38e3db"><div class="ttname"><a href="screen__pixytest_8c.html#a258e60594872309e6e115517ad38e3db">b_led_blue</a></div><div class="ttdeci">static BUTTON_STRUCT b_led_blue</div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00046">screen_pixytest.c:46</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_a3f1abd08d10208e27c971ef4d402c4ef"><div class="ttname"><a href="screen__pixytest_8c.html#a3f1abd08d10208e27c971ef4d402c4ef">LED_COLOR_BUTTON_SPACING</a></div><div class="ttdeci">#define LED_COLOR_BUTTON_SPACING</div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_a61f6199ab9d14cc55be19847add309c3"><div class="ttname"><a href="screen__pixytest_8c.html#a61f6199ab9d14cc55be19847add309c3">SERVO_BUTTON_SPACING</a></div><div class="ttdeci">#define SERVO_BUTTON_SPACING</div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_a4bc5101262c9c391e81e484b09964188"><div class="ttname"><a href="screen__pixytest_8c.html#a4bc5101262c9c391e81e484b09964188">b_led_red</a></div><div class="ttdeci">static BUTTON_STRUCT b_led_red</div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00044">screen_pixytest.c:44</a></div></div>
|
|
<div class="ttc" id="system_8h_html"><div class="ttname"><a href="system_8h.html">system.h</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_a3caba4698a10a53c798ecdf5d2d0d7de"><div class="ttname"><a href="screen__pixytest_8c.html#a3caba4698a10a53c798ecdf5d2d0d7de">LED_POWER_BUTTON_Y</a></div><div class="ttdeci">#define LED_POWER_BUTTON_Y</div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_a6257e15ffef64770bc3c744f0ef0208a"><div class="ttname"><a href="screen__pixytest_8c.html#a6257e15ffef64770bc3c744f0ef0208a">n_led_powerlimit_cb</a></div><div class="ttdeci">static void n_led_powerlimit_cb(void *numupdown, int16_t value)</div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00143">screen_pixytest.c:143</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_aaebdf93a1201ccd09d139ef235054ee1"><div class="ttname"><a href="screen__pixytest_8c.html#aaebdf93a1201ccd09d139ef235054ee1">b_servos_topright</a></div><div class="ttdeci">static BUTTON_STRUCT b_servos_topright</div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00036">screen_pixytest.c:36</a></div></div>
|
|
<div class="ttc" id="struct_n_u_m_u_p_d_o_w_n___s_t_r_u_c_t_html_a7375fa3485ce43bbc621f90ce895d52a"><div class="ttname"><a href="struct_n_u_m_u_p_d_o_w_n___s_t_r_u_c_t.html#a7375fa3485ce43bbc621f90ce895d52a">NUMUPDOWN_STRUCT::value</a></div><div class="ttdeci">int16_t value</div><div class="ttdoc">The current/default value. </div><div class="ttdef"><b>Definition:</b> <a href="numupdown_8h_source.html#l00052">numupdown.h:52</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_a3017cd14eca2b9e67a69e7ea559b5eaa"><div class="ttname"><a href="screen__pixytest_8c.html#a3017cd14eca2b9e67a69e7ea559b5eaa">enter</a></div><div class="ttdeci">static void enter(void *screen)</div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00151">screen_pixytest.c:151</a></div></div>
|
|
<div class="ttc" id="struct_b_u_t_t_o_n___s_t_r_u_c_t_html_a269d23c8a60f8acdf9279642999ee6a9"><div class="ttname"><a href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#a269d23c8a60f8acdf9279642999ee6a9">BUTTON_STRUCT::callback</a></div><div class="ttdeci">BUTTON_CALLBACK callback</div><div class="ttdoc">Callback which is executed when the button is pressed. </div><div class="ttdef"><b>Definition:</b> <a href="button_8h_source.html#l00058">button.h:58</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_a7a8cd1564547b0fe1b6af8d5eca6fc37"><div class="ttname"><a href="screen__pixytest_8c.html#a7a8cd1564547b0fe1b6af8d5eca6fc37">b_servos_center</a></div><div class="ttdeci">static BUTTON_STRUCT b_servos_center</div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00034">screen_pixytest.c:34</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_aeb4e54b6b5771028eb4e2a6f43b453ca"><div class="ttname"><a href="screen__pixytest_8c.html#aeb4e54b6b5771028eb4e2a6f43b453ca">b_servos_bottomright</a></div><div class="ttdeci">static BUTTON_STRUCT b_servos_bottomright</div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00038">screen_pixytest.c:38</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_a230b340b4c3998d343da8186aaba3500"><div class="ttname"><a href="screen__pixytest_8c.html#a230b340b4c3998d343da8186aaba3500">led_color</a></div><div class="ttdeci">static uint32_t led_color</div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00047">screen_pixytest.c:47</a></div></div>
|
|
<div class="ttc" id="group__screen_html_ga8e14bc7ee0214e2926965f9bdb54a866"><div class="ttname"><a href="group__screen.html#ga8e14bc7ee0214e2926965f9bdb54a866">gui_screen_back</a></div><div class="ttdeci">bool gui_screen_back()</div><div class="ttdef"><b>Definition:</b> <a href="screen_8c_source.html#l00085">screen.c:85</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_adf764cbdea00d65edcd07bb9953ad2b7aa2623f758ef2224d1d7f0d551c250b8a"><div class="ttname"><a href="screen__pixytest_8c.html#adf764cbdea00d65edcd07bb9953ad2b7aa2623f758ef2224d1d7f0d551c250b8a">update_servos</a></div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00030">screen_pixytest.c:30</a></div></div>
|
|
<div class="ttc" id="struct_b_u_t_t_o_n___s_t_r_u_c_t_html_adeae49dfe3584e6df726fb4167cd1cf7"><div class="ttname"><a href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adeae49dfe3584e6df726fb4167cd1cf7">BUTTON_STRUCT::font</a></div><div class="ttdeci">uint8_t font</div><div class="ttdoc">The number of the font to use. </div><div class="ttdef"><b>Definition:</b> <a href="button_8h_source.html#l00060">button.h:60</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_a0e8603a1738cbcbbd9684e7db228bd26"><div class="ttname"><a href="screen__pixytest_8c.html#a0e8603a1738cbcbbd9684e7db228bd26">b_led_off</a></div><div class="ttdeci">static BUTTON_STRUCT b_led_off</div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00042">screen_pixytest.c:42</a></div></div>
|
|
<div class="ttc" id="pixydefs_8h_html_a3997998ea42c5ea31902d9e0b7df4bd5"><div class="ttname"><a href="pixydefs_8h.html#a3997998ea42c5ea31902d9e0b7df4bd5">END_IN_ARGS</a></div><div class="ttdeci">#define END_IN_ARGS</div><div class="ttdef"><b>Definition:</b> <a href="pixydefs_8h_source.html#l00090">pixydefs.h:90</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8h_html"><div class="ttname"><a href="screen__pixytest_8h.html">screen_pixytest.h</a></div></div>
|
|
<div class="ttc" id="group__tft_html_ga7b3b25cba33b07c303f3060fe41887f6"><div class="ttname"><a href="group__tft.html#ga7b3b25cba33b07c303f3060fe41887f6">BLACK</a></div><div class="ttdeci">#define BLACK</div><div class="ttdef"><b>Definition:</b> <a href="tft_8h_source.html#l00054">tft.h:54</a></div></div>
|
|
<div class="ttc" id="group__numupdown_html_gab4321e7fc0810ee30355bc7d0a3372db"><div class="ttname"><a href="group__numupdown.html#gab4321e7fc0810ee30355bc7d0a3372db">gui_numupdown_add</a></div><div class="ttdeci">bool gui_numupdown_add(NUMUPDOWN_STRUCT *numupdown)</div><div class="ttdef"><b>Definition:</b> <a href="numupdown_8c_source.html#l00080">numupdown.c:80</a></div></div>
|
|
<div class="ttc" id="screen__pixytest_8c_html_a3e9f071aa3313583a8a88d672bafaa20"><div class="ttname"><a href="screen__pixytest_8c.html#a3e9f071aa3313583a8a88d672bafaa20">servo_y</a></div><div class="ttdeci">static uint16_t servo_y</div><div class="ttdef"><b>Definition:</b> <a href="screen__pixytest_8c_source.html#l00040">screen_pixytest.c:40</a></div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated on Mon Jun 8 2015 11:01:18 for discoverpixy by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.9.1
|
|
</small></address>
|
|
</body>
|
|
</html>
|