377 lines
44 KiB
HTML
377 lines
44 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/touch/screen_calibrate.c File Reference</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_5668dfef4710d48cd9d7316a574bf987.html">touch</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#func-members">Functions</a> |
|
|
<a href="#var-members">Variables</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">screen_calibrate.c File Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="textblock"><code>#include "<a class="el" href="screen__calibrate_8h_source.html">screen_calibrate.h</a>"</code><br />
|
|
<code>#include "<a class="el" href="tft_8h_source.html">tft.h</a>"</code><br />
|
|
<code>#include "<a class="el" href="touch_8h_source.html">touch.h</a>"</code><br />
|
|
</div><div class="textblock"><div class="dynheader">
|
|
Include dependency graph for screen_calibrate.c:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="screen__calibrate_8c__incl.png" border="0" usemap="#common_2touch_2screen__calibrate_8c" alt=""/></div>
|
|
<map name="common_2touch_2screen__calibrate_8c" id="common_2touch_2screen__calibrate_8c">
|
|
<area shape="rect" id="node2" href="screen__calibrate_8h.html" title="screen_calibrate.h" alt="" coords="5,95,133,121"/><area shape="rect" id="node6" href="tft_8h.html" title="tft.h" alt="" coords="158,95,202,121"/><area shape="rect" id="node8" href="touch_8h.html" title="touch.h" alt="" coords="226,95,291,121"/><area shape="rect" id="node3" href="screen_8h.html" title="screen.h" alt="" coords="33,169,105,196"/></map>
|
|
</div>
|
|
</div>
|
|
<p><a href="screen__calibrate_8c_source.html">Go to the source code of this file.</a></p>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
|
Functions</h2></td></tr>
|
|
<tr class="memitem:a3017cd14eca2b9e67a69e7ea559b5eaa"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="screen__calibrate_8c.html#a3017cd14eca2b9e67a69e7ea559b5eaa">enter</a> (void *<a class="el" href="screen__calibrate_8c.html#a939fdd806f427cc8505ed817e28cce9d">screen</a>)</td></tr>
|
|
<tr class="separator:a3017cd14eca2b9e67a69e7ea559b5eaa"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:acd1409088e83cf2a8ba2cf96dd9b52f8"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="screen__calibrate_8c.html#acd1409088e83cf2a8ba2cf96dd9b52f8">leave</a> (void *<a class="el" href="screen__calibrate_8c.html#a939fdd806f427cc8505ed817e28cce9d">screen</a>)</td></tr>
|
|
<tr class="separator:acd1409088e83cf2a8ba2cf96dd9b52f8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a5e8f84ee8ff4bf827775c38ae6752509"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="screen__calibrate_8c.html#a5e8f84ee8ff4bf827775c38ae6752509">update</a> (void *<a class="el" href="screen__calibrate_8c.html#a939fdd806f427cc8505ed817e28cce9d">screen</a>)</td></tr>
|
|
<tr class="separator:a5e8f84ee8ff4bf827775c38ae6752509"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga700642cd5aa866218124361499bbd072"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__screen.html#gaf7783b8728d6d218aa9e3b29eaf9689c">SCREEN_STRUCT</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__calibrate.html#ga700642cd5aa866218124361499bbd072">get_screen_calibrate</a> ()</td></tr>
|
|
<tr class="separator:ga700642cd5aa866218124361499bbd072"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
|
|
Variables</h2></td></tr>
|
|
<tr class="memitem:a8e440e007cdbbff7dc9442993266bcf0"><td class="memItemLeft" align="right" valign="top">volatile bool </td><td class="memItemRight" valign="bottom"><a class="el" href="screen__calibrate_8c.html#a8e440e007cdbbff7dc9442993266bcf0">calibration</a></td></tr>
|
|
<tr class="separator:a8e440e007cdbbff7dc9442993266bcf0"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a939fdd806f427cc8505ed817e28cce9d"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="group__screen.html#gaf7783b8728d6d218aa9e3b29eaf9689c">SCREEN_STRUCT</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="screen__calibrate_8c.html#a939fdd806f427cc8505ed817e28cce9d">screen</a></td></tr>
|
|
<tr class="separator:a939fdd806f427cc8505ed817e28cce9d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<h2 class="groupheader">Function Documentation</h2>
|
|
<a class="anchor" id="a3017cd14eca2b9e67a69e7ea559b5eaa"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static void enter </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>screen</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Definition at line <a class="el" href="screen__calibrate_8c_source.html#l00023">23</a> of file <a class="el" href="screen__calibrate_8c_source.html">screen_calibrate.c</a>.</p>
|
|
<div class="fragment"><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> {</div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <a class="code" href="group__tft.html#ga6a2e3b3878ae5eea184d4c3ffe091b78">tft_clear</a>(<a class="code" href="group__tft.html#ga7b3b25cba33b07c303f3060fe41887f6">BLACK</a>);</div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> }</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__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><!-- fragment -->
|
|
<p><div class="dynheader">
|
|
Here is the call graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="screen__calibrate_8c_a3017cd14eca2b9e67a69e7ea559b5eaa_cgraph.png" border="0" usemap="#screen__calibrate_8c_a3017cd14eca2b9e67a69e7ea559b5eaa_cgraph" alt=""/></div>
|
|
<map name="screen__calibrate_8c_a3017cd14eca2b9e67a69e7ea559b5eaa_cgraph" id="screen__calibrate_8c_a3017cd14eca2b9e67a69e7ea559b5eaa_cgraph">
|
|
<area shape="rect" id="node2" href="group__tft.html#ga6a2e3b3878ae5eea184d4c3ffe091b78" title="tft_clear" alt="" coords="104,5,172,32"/><area shape="rect" id="node3" href="group__ll__tft.html#ga74b49691a101619b939c085ff607a582" title="ll_tft_clear" alt="" coords="220,5,301,32"/></map>
|
|
</div>
|
|
</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="acd1409088e83cf2a8ba2cf96dd9b52f8"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static void leave </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>screen</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Definition at line <a class="el" href="screen__calibrate_8c_source.html#l00028">28</a> of file <a class="el" href="screen__calibrate_8c_source.html">screen_calibrate.c</a>.</p>
|
|
<div class="fragment"><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> {</div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> }</div>
|
|
</div><!-- fragment -->
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a5e8f84ee8ff4bf827775c38ae6752509"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static void update </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>screen</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Definition at line <a class="el" href="screen__calibrate_8c_source.html#l00033">33</a> of file <a class="el" href="screen__calibrate_8c_source.html">screen_calibrate.c</a>.</p>
|
|
<div class="fragment"><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> {</div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keywordtype">int</span> x1, y1, x2, y2, dx, dy;</div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <a class="code" href="group__tft.html#gabf54943131990b366ce6875a0e1925f6">tft_print_line</a>(50, 50, <a class="code" href="group__tft.html#ga87b537f5fa5c109d3c05c13d6b18f382">WHITE</a>, <a class="code" href="group__tft.html#ga7b3b25cba33b07c303f3060fe41887f6">BLACK</a>, 1, <span class="stringliteral">"Calibration:"</span>);</div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <a class="code" href="group__tft.html#gabf54943131990b366ce6875a0e1925f6">tft_print_line</a>(50, 120, <a class="code" href="group__tft.html#ga87b537f5fa5c109d3c05c13d6b18f382">WHITE</a>, <a class="code" href="group__tft.html#ga7b3b25cba33b07c303f3060fe41887f6">BLACK</a>, 0, <span class="stringliteral">"Hit the markers exactly!"</span>);</div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="comment">//-----------------First Point--------------------</span></div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <a class="code" href="group__tft.html#ga5022f91ea04919e698a79c0c309ba6f8">tft_draw_line</a>(<a class="code" href="screen__calibrate_8h.html#acc17d86219605385a23782e12bc3899c">CCENTER</a>, <a class="code" href="screen__calibrate_8h.html#ab27a8a2ceccbcaf9d8123727458f3cdf">CBEGIN</a>, <a class="code" href="screen__calibrate_8h.html#acc17d86219605385a23782e12bc3899c">CCENTER</a>, <a class="code" href="screen__calibrate_8h.html#a283da6e6504bde446407b33b014c4b54">CEND</a>, <a class="code" href="group__tft.html#ga87b537f5fa5c109d3c05c13d6b18f382">WHITE</a>); <span class="comment">//Draw Cross</span></div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <a class="code" href="group__tft.html#ga5022f91ea04919e698a79c0c309ba6f8">tft_draw_line</a>(<a class="code" href="screen__calibrate_8h.html#ab27a8a2ceccbcaf9d8123727458f3cdf">CBEGIN</a>, <a class="code" href="screen__calibrate_8h.html#acc17d86219605385a23782e12bc3899c">CCENTER</a>, <a class="code" href="screen__calibrate_8h.html#a283da6e6504bde446407b33b014c4b54">CEND</a>, <a class="code" href="screen__calibrate_8h.html#acc17d86219605385a23782e12bc3899c">CCENTER</a>, <a class="code" href="group__tft.html#ga87b537f5fa5c109d3c05c13d6b18f382">WHITE</a>); <span class="comment">//Draw Cross</span></div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <a class="code" href="screen__calibrate_8c.html#a8e440e007cdbbff7dc9442993266bcf0">calibration</a> = 1; <span class="comment">//TouchX + TouchY Values will not be converted to Pixels</span></div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> </div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keywordflow">while</span> (<a class="code" href="screen__calibrate_8c.html#a8e440e007cdbbff7dc9442993266bcf0">calibration</a>); <span class="comment">//Wait on PenUp</span></div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> </div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <a class="code" href="struct_p_o_i_n_t___s_t_r_u_c_t.html">POINT_STRUCT</a> p1 = <a class="code" href="group__touch.html#ga42b918ead4f536a63f79601ab2978227">touch_get_last_point</a>();</div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  x1 = p1.<a class="code" href="struct_p_o_i_n_t___s_t_r_u_c_t.html#a4dde988b1b2adba65ae3efa69f65d960">x</a>;</div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  y1 = p1.<a class="code" href="struct_p_o_i_n_t___s_t_r_u_c_t.html#ab0580f504a7428539be299fa71565f30">y</a>;</div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <a class="code" href="group__tft.html#ga781855ab93845ce326dfca7c099259c6">tft_fill_rectangle</a>(<a class="code" href="screen__calibrate_8h.html#ab27a8a2ceccbcaf9d8123727458f3cdf">CBEGIN</a>, <a class="code" href="screen__calibrate_8h.html#ab27a8a2ceccbcaf9d8123727458f3cdf">CBEGIN</a>, <a class="code" href="screen__calibrate_8h.html#a283da6e6504bde446407b33b014c4b54">CEND</a>, <a class="code" href="screen__calibrate_8h.html#a283da6e6504bde446407b33b014c4b54">CEND</a>, <a class="code" href="group__tft.html#ga7b3b25cba33b07c303f3060fe41887f6">BLACK</a>); <span class="comment">//Clear Cross</span></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>  <span class="comment">//-----------------Second Point-------------------</span></div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <a class="code" href="group__tft.html#ga5022f91ea04919e698a79c0c309ba6f8">tft_draw_line</a>(<a class="code" href="screen__calibrate_8h.html#a7f32e26ea2ffbc0c5408e65b30d4f0c8">DWIDTH</a> - <a class="code" href="screen__calibrate_8h.html#acc17d86219605385a23782e12bc3899c">CCENTER</a>, <a class="code" href="screen__calibrate_8h.html#a2c0e9cadedb91327295c0249e8a3ad6f">DHEIGHT</a> - <a class="code" href="screen__calibrate_8h.html#ab27a8a2ceccbcaf9d8123727458f3cdf">CBEGIN</a>, <a class="code" href="screen__calibrate_8h.html#a7f32e26ea2ffbc0c5408e65b30d4f0c8">DWIDTH</a> - <a class="code" href="screen__calibrate_8h.html#acc17d86219605385a23782e12bc3899c">CCENTER</a>, <a class="code" href="screen__calibrate_8h.html#a2c0e9cadedb91327295c0249e8a3ad6f">DHEIGHT</a> - <a class="code" href="screen__calibrate_8h.html#a283da6e6504bde446407b33b014c4b54">CEND</a>, <a class="code" href="group__tft.html#ga87b537f5fa5c109d3c05c13d6b18f382">WHITE</a>);</div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <a class="code" href="group__tft.html#ga5022f91ea04919e698a79c0c309ba6f8">tft_draw_line</a>(<a class="code" href="screen__calibrate_8h.html#a7f32e26ea2ffbc0c5408e65b30d4f0c8">DWIDTH</a> - <a class="code" href="screen__calibrate_8h.html#ab27a8a2ceccbcaf9d8123727458f3cdf">CBEGIN</a>, <a class="code" href="screen__calibrate_8h.html#a2c0e9cadedb91327295c0249e8a3ad6f">DHEIGHT</a> - <a class="code" href="screen__calibrate_8h.html#acc17d86219605385a23782e12bc3899c">CCENTER</a>, <a class="code" href="screen__calibrate_8h.html#a7f32e26ea2ffbc0c5408e65b30d4f0c8">DWIDTH</a> - <a class="code" href="screen__calibrate_8h.html#a283da6e6504bde446407b33b014c4b54">CEND</a>, <a class="code" href="screen__calibrate_8h.html#a2c0e9cadedb91327295c0249e8a3ad6f">DHEIGHT</a> - <a class="code" href="screen__calibrate_8h.html#acc17d86219605385a23782e12bc3899c">CCENTER</a>, <a class="code" href="group__tft.html#ga87b537f5fa5c109d3c05c13d6b18f382">WHITE</a>);</div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <a class="code" href="screen__calibrate_8c.html#a8e440e007cdbbff7dc9442993266bcf0">calibration</a> = 1;</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>  <span class="keywordflow">while</span> (<a class="code" href="screen__calibrate_8c.html#a8e440e007cdbbff7dc9442993266bcf0">calibration</a>);</div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> </div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <a class="code" href="struct_p_o_i_n_t___s_t_r_u_c_t.html">POINT_STRUCT</a> p2 = <a class="code" href="group__touch.html#ga42b918ead4f536a63f79601ab2978227">touch_get_last_point</a>();</div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  x2 = p2.<a class="code" href="struct_p_o_i_n_t___s_t_r_u_c_t.html#a4dde988b1b2adba65ae3efa69f65d960">x</a>;</div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  y2 = p2.<a class="code" href="struct_p_o_i_n_t___s_t_r_u_c_t.html#ab0580f504a7428539be299fa71565f30">y</a>;</div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <a class="code" href="group__tft.html#ga781855ab93845ce326dfca7c099259c6">tft_fill_rectangle</a>(<a class="code" href="screen__calibrate_8h.html#a7f32e26ea2ffbc0c5408e65b30d4f0c8">DWIDTH</a> - <a class="code" href="screen__calibrate_8h.html#ab27a8a2ceccbcaf9d8123727458f3cdf">CBEGIN</a>, <a class="code" href="screen__calibrate_8h.html#a2c0e9cadedb91327295c0249e8a3ad6f">DHEIGHT</a> - <a class="code" href="screen__calibrate_8h.html#ab27a8a2ceccbcaf9d8123727458f3cdf">CBEGIN</a>, <a class="code" href="screen__calibrate_8h.html#a7f32e26ea2ffbc0c5408e65b30d4f0c8">DWIDTH</a> - <a class="code" href="screen__calibrate_8h.html#a283da6e6504bde446407b33b014c4b54">CEND</a>, <a class="code" href="screen__calibrate_8h.html#a2c0e9cadedb91327295c0249e8a3ad6f">DHEIGHT</a> - <a class="code" href="screen__calibrate_8h.html#a283da6e6504bde446407b33b014c4b54">CEND</a>, <a class="code" href="group__tft.html#ga7b3b25cba33b07c303f3060fe41887f6">BLACK</a>);</div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="comment">//-----------------Third Point--------------------</span></div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <a class="code" href="group__tft.html#ga5022f91ea04919e698a79c0c309ba6f8">tft_draw_line</a>(<a class="code" href="screen__calibrate_8h.html#acc17d86219605385a23782e12bc3899c">CCENTER</a>, <a class="code" href="screen__calibrate_8h.html#a2c0e9cadedb91327295c0249e8a3ad6f">DHEIGHT</a> - <a class="code" href="screen__calibrate_8h.html#ab27a8a2ceccbcaf9d8123727458f3cdf">CBEGIN</a>, <a class="code" href="screen__calibrate_8h.html#acc17d86219605385a23782e12bc3899c">CCENTER</a>, <a class="code" href="screen__calibrate_8h.html#a2c0e9cadedb91327295c0249e8a3ad6f">DHEIGHT</a> - <a class="code" href="screen__calibrate_8h.html#a283da6e6504bde446407b33b014c4b54">CEND</a>, <a class="code" href="group__tft.html#ga87b537f5fa5c109d3c05c13d6b18f382">WHITE</a>);</div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <a class="code" href="group__tft.html#ga5022f91ea04919e698a79c0c309ba6f8">tft_draw_line</a>(<a class="code" href="screen__calibrate_8h.html#ab27a8a2ceccbcaf9d8123727458f3cdf">CBEGIN</a>, <a class="code" href="screen__calibrate_8h.html#a2c0e9cadedb91327295c0249e8a3ad6f">DHEIGHT</a> - <a class="code" href="screen__calibrate_8h.html#acc17d86219605385a23782e12bc3899c">CCENTER</a>, <a class="code" href="screen__calibrate_8h.html#a283da6e6504bde446407b33b014c4b54">CEND</a>, <a class="code" href="screen__calibrate_8h.html#a2c0e9cadedb91327295c0249e8a3ad6f">DHEIGHT</a> - <a class="code" href="screen__calibrate_8h.html#acc17d86219605385a23782e12bc3899c">CCENTER</a>, <a class="code" href="group__tft.html#ga87b537f5fa5c109d3c05c13d6b18f382">WHITE</a>);</div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <a class="code" href="screen__calibrate_8c.html#a8e440e007cdbbff7dc9442993266bcf0">calibration</a> = 1;</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">while</span> (<a class="code" href="screen__calibrate_8c.html#a8e440e007cdbbff7dc9442993266bcf0">calibration</a>);</div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> </div>
|
|
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <a class="code" href="struct_p_o_i_n_t___s_t_r_u_c_t.html">POINT_STRUCT</a> p3 = <a class="code" href="group__touch.html#ga42b918ead4f536a63f79601ab2978227">touch_get_last_point</a>();</div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  x1 += p3.<a class="code" href="struct_p_o_i_n_t___s_t_r_u_c_t.html#a4dde988b1b2adba65ae3efa69f65d960">x</a>; <span class="comment">//Add(!) values. We'll build the average later</span></div>
|
|
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  y2 += p3.<a class="code" href="struct_p_o_i_n_t___s_t_r_u_c_t.html#ab0580f504a7428539be299fa71565f30">y</a>;</div>
|
|
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <a class="code" href="group__tft.html#ga781855ab93845ce326dfca7c099259c6">tft_fill_rectangle</a>(<a class="code" href="screen__calibrate_8h.html#ab27a8a2ceccbcaf9d8123727458f3cdf">CBEGIN</a>, <a class="code" href="screen__calibrate_8h.html#a2c0e9cadedb91327295c0249e8a3ad6f">DHEIGHT</a> - <a class="code" href="screen__calibrate_8h.html#ab27a8a2ceccbcaf9d8123727458f3cdf">CBEGIN</a>, <a class="code" href="screen__calibrate_8h.html#a283da6e6504bde446407b33b014c4b54">CEND</a>, <a class="code" href="screen__calibrate_8h.html#a2c0e9cadedb91327295c0249e8a3ad6f">DHEIGHT</a> - <a class="code" href="screen__calibrate_8h.html#a283da6e6504bde446407b33b014c4b54">CEND</a>, <a class="code" href="group__tft.html#ga7b3b25cba33b07c303f3060fe41887f6">BLACK</a>);</div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> </div>
|
|
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="comment">//------------------4. Point---------------------</span></div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <a class="code" href="group__tft.html#ga5022f91ea04919e698a79c0c309ba6f8">tft_draw_line</a>(<a class="code" href="screen__calibrate_8h.html#a7f32e26ea2ffbc0c5408e65b30d4f0c8">DWIDTH</a> - <a class="code" href="screen__calibrate_8h.html#acc17d86219605385a23782e12bc3899c">CCENTER</a>, <a class="code" href="screen__calibrate_8h.html#ab27a8a2ceccbcaf9d8123727458f3cdf">CBEGIN</a>, <a class="code" href="screen__calibrate_8h.html#a7f32e26ea2ffbc0c5408e65b30d4f0c8">DWIDTH</a> - <a class="code" href="screen__calibrate_8h.html#acc17d86219605385a23782e12bc3899c">CCENTER</a>, <a class="code" href="screen__calibrate_8h.html#a283da6e6504bde446407b33b014c4b54">CEND</a>, <a class="code" href="group__tft.html#ga87b537f5fa5c109d3c05c13d6b18f382">WHITE</a>);</div>
|
|
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <a class="code" href="group__tft.html#ga5022f91ea04919e698a79c0c309ba6f8">tft_draw_line</a>(<a class="code" href="screen__calibrate_8h.html#a7f32e26ea2ffbc0c5408e65b30d4f0c8">DWIDTH</a> - <a class="code" href="screen__calibrate_8h.html#ab27a8a2ceccbcaf9d8123727458f3cdf">CBEGIN</a>, <a class="code" href="screen__calibrate_8h.html#acc17d86219605385a23782e12bc3899c">CCENTER</a>, <a class="code" href="screen__calibrate_8h.html#a7f32e26ea2ffbc0c5408e65b30d4f0c8">DWIDTH</a> - <a class="code" href="screen__calibrate_8h.html#a283da6e6504bde446407b33b014c4b54">CEND</a>, <a class="code" href="screen__calibrate_8h.html#acc17d86219605385a23782e12bc3899c">CCENTER</a>, <a class="code" href="group__tft.html#ga87b537f5fa5c109d3c05c13d6b18f382">WHITE</a>);</div>
|
|
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <a class="code" href="screen__calibrate_8c.html#a8e440e007cdbbff7dc9442993266bcf0">calibration</a> = 1;</div>
|
|
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> </div>
|
|
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keywordflow">while</span> (<a class="code" href="screen__calibrate_8c.html#a8e440e007cdbbff7dc9442993266bcf0">calibration</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>  <a class="code" href="struct_p_o_i_n_t___s_t_r_u_c_t.html">POINT_STRUCT</a> p4 = <a class="code" href="group__touch.html#ga42b918ead4f536a63f79601ab2978227">touch_get_last_point</a>();</div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  x2 += p4.<a class="code" href="struct_p_o_i_n_t___s_t_r_u_c_t.html#a4dde988b1b2adba65ae3efa69f65d960">x</a>;</div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  y1 += p4.<a class="code" href="struct_p_o_i_n_t___s_t_r_u_c_t.html#ab0580f504a7428539be299fa71565f30">y</a>;</div>
|
|
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <a class="code" href="group__tft.html#ga781855ab93845ce326dfca7c099259c6">tft_fill_rectangle</a>(<a class="code" href="screen__calibrate_8h.html#a7f32e26ea2ffbc0c5408e65b30d4f0c8">DWIDTH</a> - <a class="code" href="screen__calibrate_8h.html#ab27a8a2ceccbcaf9d8123727458f3cdf">CBEGIN</a>, <a class="code" href="screen__calibrate_8h.html#ab27a8a2ceccbcaf9d8123727458f3cdf">CBEGIN</a>, <a class="code" href="screen__calibrate_8h.html#a7f32e26ea2ffbc0c5408e65b30d4f0c8">DWIDTH</a> - <a class="code" href="screen__calibrate_8h.html#a283da6e6504bde446407b33b014c4b54">CEND</a>, <a class="code" href="screen__calibrate_8h.html#a283da6e6504bde446407b33b014c4b54">CEND</a>, <a class="code" href="group__tft.html#ga7b3b25cba33b07c303f3060fe41887f6">BLACK</a>);</div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="comment">//-------------------Calculation---------------------</span></div>
|
|
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  x1++; <span class="comment">//Add 1 and divide by 2 later = +0.5 (for correct rounding)</span></div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  y1++;</div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  x2++;</div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  y2++;</div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  x1 >>= 1; <span class="comment">//Divide by 2</span></div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  y1 >>= 1;</div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  x2 >>= 1;</div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  y2 >>= 1;</div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  dx = (x2 - x1); <span class="comment">//Build the Difference</span></div>
|
|
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  dy = (y2 - y1);</div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <a class="code" href="group__touch.html#gacc714477cb936ab22e00904a69bbc022">touch_set_calibration_values</a>(x1, dx, y1, dy);</div>
|
|
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <a class="code" href="group__tft.html#gabf54943131990b366ce6875a0e1925f6">tft_print_line</a>(50, 120, <a class="code" href="group__tft.html#ga87b537f5fa5c109d3c05c13d6b18f382">WHITE</a>, <a class="code" href="group__tft.html#ga7b3b25cba33b07c303f3060fe41887f6">BLACK</a>, 0, <span class="stringliteral">"Calibration Done. Press anywhere"</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>  <a class="code" href="screen__calibrate_8c.html#a8e440e007cdbbff7dc9442993266bcf0">calibration</a> = 1;</div>
|
|
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span> </div>
|
|
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keywordflow">while</span> (<a class="code" href="screen__calibrate_8c.html#a8e440e007cdbbff7dc9442993266bcf0">calibration</a>);</div>
|
|
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> </div>
|
|
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <a class="code" href="group__screen.html#ga8e14bc7ee0214e2926965f9bdb54a866">gui_screen_back</a>();</div>
|
|
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> </div>
|
|
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span> }</div>
|
|
<div class="ttc" id="screen__calibrate_8h_html_acc17d86219605385a23782e12bc3899c"><div class="ttname"><a href="screen__calibrate_8h.html#acc17d86219605385a23782e12bc3899c">CCENTER</a></div><div class="ttdeci">#define CCENTER</div><div class="ttdef"><b>Definition:</b> <a href="screen__calibrate_8h_source.html#l00042">screen_calibrate.h:42</a></div></div>
|
|
<div class="ttc" id="group__tft_html_ga5022f91ea04919e698a79c0c309ba6f8"><div class="ttname"><a href="group__tft.html#ga5022f91ea04919e698a79c0c309ba6f8">tft_draw_line</a></div><div class="ttdeci">void tft_draw_line(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color)</div><div class="ttdef"><b>Definition:</b> <a href="tft_8c_source.html#l00050">tft.c:50</a></div></div>
|
|
<div class="ttc" id="struct_p_o_i_n_t___s_t_r_u_c_t_html_ab0580f504a7428539be299fa71565f30"><div class="ttname"><a href="struct_p_o_i_n_t___s_t_r_u_c_t.html#ab0580f504a7428539be299fa71565f30">POINT_STRUCT::y</a></div><div class="ttdeci">uint16_t y</div><div class="ttdoc">The Y-Coordinate of the point. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00088">touch.h:88</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="struct_p_o_i_n_t___s_t_r_u_c_t_html_a4dde988b1b2adba65ae3efa69f65d960"><div class="ttname"><a href="struct_p_o_i_n_t___s_t_r_u_c_t.html#a4dde988b1b2adba65ae3efa69f65d960">POINT_STRUCT::x</a></div><div class="ttdeci">uint16_t x</div><div class="ttdoc">The X-Coordinate of the point. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00087">touch.h:87</a></div></div>
|
|
<div class="ttc" id="screen__calibrate_8h_html_a2c0e9cadedb91327295c0249e8a3ad6f"><div class="ttname"><a href="screen__calibrate_8h.html#a2c0e9cadedb91327295c0249e8a3ad6f">DHEIGHT</a></div><div class="ttdeci">#define DHEIGHT</div><div class="ttdef"><b>Definition:</b> <a href="screen__calibrate_8h_source.html#l00047">screen_calibrate.h:47</a></div></div>
|
|
<div class="ttc" id="screen__calibrate_8h_html_ab27a8a2ceccbcaf9d8123727458f3cdf"><div class="ttname"><a href="screen__calibrate_8h.html#ab27a8a2ceccbcaf9d8123727458f3cdf">CBEGIN</a></div><div class="ttdeci">#define CBEGIN</div><div class="ttdef"><b>Definition:</b> <a href="screen__calibrate_8h_source.html#l00044">screen_calibrate.h:44</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="group__touch_html_ga42b918ead4f536a63f79601ab2978227"><div class="ttname"><a href="group__touch.html#ga42b918ead4f536a63f79601ab2978227">touch_get_last_point</a></div><div class="ttdeci">POINT_STRUCT touch_get_last_point()</div><div class="ttdef"><b>Definition:</b> <a href="touch_8c_source.html#l00211">touch.c:211</a></div></div>
|
|
<div class="ttc" id="group__tft_html_ga781855ab93845ce326dfca7c099259c6"><div class="ttname"><a href="group__tft.html#ga781855ab93845ce326dfca7c099259c6">tft_fill_rectangle</a></div><div class="ttdeci">void tft_fill_rectangle(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color)</div><div class="ttdef"><b>Definition:</b> <a href="tft_8c_source.html#l00067">tft.c:67</a></div></div>
|
|
<div class="ttc" id="struct_p_o_i_n_t___s_t_r_u_c_t_html"><div class="ttname"><a href="struct_p_o_i_n_t___s_t_r_u_c_t.html">POINT_STRUCT</a></div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00086">touch.h:86</a></div></div>
|
|
<div class="ttc" id="screen__calibrate_8h_html_a7f32e26ea2ffbc0c5408e65b30d4f0c8"><div class="ttname"><a href="screen__calibrate_8h.html#a7f32e26ea2ffbc0c5408e65b30d4f0c8">DWIDTH</a></div><div class="ttdeci">#define DWIDTH</div><div class="ttdef"><b>Definition:</b> <a href="screen__calibrate_8h_source.html#l00046">screen_calibrate.h:46</a></div></div>
|
|
<div class="ttc" id="screen__calibrate_8h_html_a283da6e6504bde446407b33b014c4b54"><div class="ttname"><a href="screen__calibrate_8h.html#a283da6e6504bde446407b33b014c4b54">CEND</a></div><div class="ttdeci">#define CEND</div><div class="ttdef"><b>Definition:</b> <a href="screen__calibrate_8h_source.html#l00045">screen_calibrate.h:45</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="group__touch_html_gacc714477cb936ab22e00904a69bbc022"><div class="ttname"><a href="group__touch.html#gacc714477cb936ab22e00904a69bbc022">touch_set_calibration_values</a></div><div class="ttdeci">void touch_set_calibration_values(int xs, int dx, int ys, int dy)</div><div class="ttdef"><b>Definition:</b> <a href="touch_8c_source.html#l00051">touch.c:51</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="screen__calibrate_8c_html_a8e440e007cdbbff7dc9442993266bcf0"><div class="ttname"><a href="screen__calibrate_8c.html#a8e440e007cdbbff7dc9442993266bcf0">calibration</a></div><div class="ttdeci">volatile bool calibration</div><div class="ttdef"><b>Definition:</b> <a href="touch_8c_source.html#l00040">touch.c:40</a></div></div>
|
|
</div><!-- fragment -->
|
|
<p><div class="dynheader">
|
|
Here is the call graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="screen__calibrate_8c_a5e8f84ee8ff4bf827775c38ae6752509_cgraph.png" border="0" usemap="#screen__calibrate_8c_a5e8f84ee8ff4bf827775c38ae6752509_cgraph" alt=""/></div>
|
|
<map name="screen__calibrate_8c_a5e8f84ee8ff4bf827775c38ae6752509_cgraph" id="screen__calibrate_8c_a5e8f84ee8ff4bf827775c38ae6752509_cgraph">
|
|
<area shape="rect" id="node2" href="group__tft.html#gabf54943131990b366ce6875a0e1925f6" title="tft_print_line" alt="" coords="141,68,233,95"/><area shape="rect" id="node6" href="group__tft.html#ga5022f91ea04919e698a79c0c309ba6f8" title="tft_draw_line" alt="" coords="140,144,235,171"/><area shape="rect" id="node8" href="group__touch.html#ga42b918ead4f536a63f79601ab2978227" title="touch_get_last_point" alt="" coords="116,195,259,221"/><area shape="rect" id="node9" href="group__tft.html#ga781855ab93845ce326dfca7c099259c6" title="tft_fill_rectangle" alt="" coords="131,245,243,272"/><area shape="rect" id="node11" href="group__touch.html#gacc714477cb936ab22e00904a69bbc022" title="touch_set_calibration\l_values" alt="" coords="115,297,260,338"/><area shape="rect" id="node12" href="group__screen.html#ga8e14bc7ee0214e2926965f9bdb54a866" title="gui_screen_back" alt="" coords="127,363,247,389"/><area shape="rect" id="node3" href="group__ll__tft.html#gaf4b0b73ab01e1dc300ae65dc0ac029b6" title="ll_tft_num_fonts" alt="" coords="314,5,427,32"/><area shape="rect" id="node4" href="group__ll__tft.html#ga408570a2b70769255924792ce189f2c1" title="ll_tft_draw_char" alt="" coords="315,56,427,83"/><area shape="rect" id="node5" href="group__ll__tft.html#ga3639ec94b2239cc02b3c47a14f6637a3" title="ll_tft_font_width" alt="" coords="315,107,426,133"/><area shape="rect" id="node7" href="group__ll__tft.html#ga2560737bf118275e6ce728f6dce1e83f" title="ll_tft_draw_line" alt="" coords="317,157,424,184"/><area shape="rect" id="node10" href="group__ll__tft.html#ga0111ae5623214d3d466b2b24598f303f" title="ll_tft_fill_rectangle" alt="" coords="308,245,433,272"/></map>
|
|
</div>
|
|
</p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Variable Documentation</h2>
|
|
<a class="anchor" id="a8e440e007cdbbff7dc9442993266bcf0"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">volatile bool calibration</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Definition at line <a class="el" href="touch_8c_source.html#l00040">40</a> of file <a class="el" href="touch_8c_source.html">touch.c</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a939fdd806f427cc8505ed817e28cce9d"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="group__screen.html#gaf7783b8728d6d218aa9e3b29eaf9689c">SCREEN_STRUCT</a> screen</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Initial value:</b><div class="fragment"><div class="line">= {</div>
|
|
<div class="line"> <a class="code" href="screen__calibrate_8c.html#a3017cd14eca2b9e67a69e7ea559b5eaa">enter</a>,</div>
|
|
<div class="line"> <a class="code" href="screen__calibrate_8c.html#acd1409088e83cf2a8ba2cf96dd9b52f8">leave</a>,</div>
|
|
<div class="line"> <a class="code" href="screen__calibrate_8c.html#a5e8f84ee8ff4bf827775c38ae6752509">update</a></div>
|
|
<div class="line">}</div>
|
|
<div class="ttc" id="screen__calibrate_8c_html_a3017cd14eca2b9e67a69e7ea559b5eaa"><div class="ttname"><a href="screen__calibrate_8c.html#a3017cd14eca2b9e67a69e7ea559b5eaa">enter</a></div><div class="ttdeci">static void enter(void *screen)</div><div class="ttdef"><b>Definition:</b> <a href="screen__calibrate_8c_source.html#l00023">screen_calibrate.c:23</a></div></div>
|
|
<div class="ttc" id="screen__calibrate_8c_html_a5e8f84ee8ff4bf827775c38ae6752509"><div class="ttname"><a href="screen__calibrate_8c.html#a5e8f84ee8ff4bf827775c38ae6752509">update</a></div><div class="ttdeci">static void update(void *screen)</div><div class="ttdef"><b>Definition:</b> <a href="screen__calibrate_8c_source.html#l00033">screen_calibrate.c:33</a></div></div>
|
|
<div class="ttc" id="screen__calibrate_8c_html_acd1409088e83cf2a8ba2cf96dd9b52f8"><div class="ttname"><a href="screen__calibrate_8c.html#acd1409088e83cf2a8ba2cf96dd9b52f8">leave</a></div><div class="ttdeci">static void leave(void *screen)</div><div class="ttdef"><b>Definition:</b> <a href="screen__calibrate_8c_source.html#l00028">screen_calibrate.c:28</a></div></div>
|
|
</div><!-- fragment -->
|
|
<p>Definition at line <a class="el" href="screen__calibrate_8c_source.html#l00111">111</a> of file <a class="el" href="screen__calibrate_8c_source.html">screen_calibrate.c</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
</div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated on Mon Jun 8 2015 11:01:19 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>
|