Updated docu.
This commit is contained in:
@@ -102,7 +102,9 @@ Include dependency graph for screen_calibrate.c:</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><table class="memberdecls">
|
||||
</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>
|
||||
@@ -144,6 +146,13 @@ Variables</h2></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">
|
||||
@@ -177,6 +186,11 @@ Here is the call graph for this function:</div>
|
||||
</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>
|
||||
@@ -201,6 +215,100 @@ Here is the call graph for this function:</div>
|
||||
</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">
|
||||
@@ -223,6 +331,8 @@ Here is the call graph for this function:</div>
|
||||
</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>
|
||||
@@ -247,16 +357,18 @@ Here is the call graph for this function:</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> screen_calibrate.c:9</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> screen_calibrate.c:17</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> screen_calibrate.c:13</div></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 01:15:03 for discoverpixy by  <a href="http://www.doxygen.org/index.html">
|
||||
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>
|
||||
|
||||
Reference in New Issue
Block a user