Files
discoverpixy/screen__photomode_8c.html
2015-06-08 11:04:50 +02:00

804 lines
95 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_photomode.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&#160;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Data&#160;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&#160;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="summary">
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a> </div>
<div class="headertitle">
<div class="title">screen_photomode.c File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="screen__photomode_8h_source.html">screen_photomode.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="screen__photomode__save_8h_source.html">screen_photomode_save.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="button_8h_source.html">button.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="tft_8h_source.html">tft.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="touch_8h_source.html">touch.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="pixy_8h_source.html">pixy.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="system_8h_source.html">system.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="pixy__frame_8h_source.html">pixy_frame.h</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for screen_photomode.c:</div>
<div class="dyncontent">
<div class="center"><img src="screen__photomode_8c__incl.png" border="0" usemap="#common_2app_2screen__photomode_8c" alt=""/></div>
<map name="common_2app_2screen__photomode_8c" id="common_2app_2screen__photomode_8c">
<area shape="rect" id="node2" href="screen__photomode_8h.html" title="screen_photomode.h" alt="" coords="5,80,148,107"/><area shape="rect" id="node6" href="screen__photomode__save_8h.html" title="screen_photomode_save.h" alt="" coords="173,80,349,107"/><area shape="rect" id="node7" href="button_8h.html" title="button.h" alt="" coords="645,80,714,107"/><area shape="rect" id="node8" href="touch_8h.html" title="touch.h" alt="" coords="647,155,712,181"/><area shape="rect" id="node10" href="tft_8h.html" title="tft.h" alt="" coords="579,155,623,181"/><area shape="rect" id="node11" href="pixy_8h.html" title="pixy.h" alt="" coords="738,80,794,107"/><area shape="rect" id="node13" href="system_8h.html" title="system.h" alt="" coords="427,155,503,181"/><area shape="rect" id="node14" href="pixy__frame_8h.html" title="pixy_frame.h" alt="" coords="373,80,469,107"/><area shape="rect" id="node3" href="screen_8h.html" title="screen.h" alt="" coords="163,155,235,181"/><area shape="rect" id="node12" href="pixydefs_8h.html" title="pixydefs.h" alt="" coords="788,155,869,181"/><area shape="rect" id="node15" href="filesystem_8h.html" title="filesystem.h" alt="" coords="311,155,403,181"/></map>
</div>
</div>
<p><a href="screen__photomode_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:a26b5a87b61eb1cd0888fdfc12a91a6d7"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="screen__photomode_8c.html#a26b5a87b61eb1cd0888fdfc12a91a6d7">b_back_cb</a> (void *button)</td></tr>
<tr class="separator:a26b5a87b61eb1cd0888fdfc12a91a6d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aedad5347e948361ac4f1b371924e74ed"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="screen__photomode_8c.html#aedad5347e948361ac4f1b371924e74ed">b_save_cb</a> (void *button)</td></tr>
<tr class="separator:aedad5347e948361ac4f1b371924e74ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d1decbb81b0f181eb0561c0f5f8fe3c"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="screen__photomode_8c.html#a3d1decbb81b0f181eb0561c0f5f8fe3c">touchCB</a> (void *touchArea, <a class="el" href="group__touch.html#gab6037f32eebdf297a7d601a1e6c87768">TOUCH_ACTION</a> triggeredAction)</td></tr>
<tr class="separator:a3d1decbb81b0f181eb0561c0f5f8fe3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3017cd14eca2b9e67a69e7ea559b5eaa"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="screen__photomode_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">&#160;</td></tr>
<tr class="memitem:acd1409088e83cf2a8ba2cf96dd9b52f8"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="screen__photomode_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">&#160;</td></tr>
<tr class="memitem:a5e8f84ee8ff4bf827775c38ae6752509"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="screen__photomode_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">&#160;</td></tr>
<tr class="memitem:gacbdd1c3010161c1b85900aa8bd0e3624"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__screen.html#gaf7783b8728d6d218aa9e3b29eaf9689c">SCREEN_STRUCT</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__photomode.html#gacbdd1c3010161c1b85900aa8bd0e3624">get_screen_photomode</a> ()</td></tr>
<tr class="separator:gacbdd1c3010161c1b85900aa8bd0e3624"><td class="memSeparator" colspan="2">&#160;</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:a78404e967b20689331bd77e184ec1c25"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="screen__photomode_8c.html#a78404e967b20689331bd77e184ec1c25">pixy_connected</a> = false</td></tr>
<tr class="separator:a78404e967b20689331bd77e184ec1c25"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5d8f6a72bbdbe109bc151bfef8ac9a6"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html">BUTTON_STRUCT</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="screen__photomode_8c.html#ae5d8f6a72bbdbe109bc151bfef8ac9a6">b_back</a></td></tr>
<tr class="separator:ae5d8f6a72bbdbe109bc151bfef8ac9a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a344069e49415e576784993bf0d11c72c"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html">BUTTON_STRUCT</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="screen__photomode_8c.html#a344069e49415e576784993bf0d11c72c">b_save</a></td></tr>
<tr class="separator:a344069e49415e576784993bf0d11c72c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a969b249abfb1776e2cc9567db889b83f"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html">TOUCH_AREA_STRUCT</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="screen__photomode_8c.html#a969b249abfb1776e2cc9567db889b83f">a_area</a></td></tr>
<tr class="separator:a969b249abfb1776e2cc9567db889b83f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af3310d60b5255f8172a3126551112b71"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="screen__photomode_8c.html#af3310d60b5255f8172a3126551112b71">subMenu</a> = false</td></tr>
<tr class="separator:af3310d60b5255f8172a3126551112b71"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af79762591f29f1c5205a3c7db0979368"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="struct_p_o_i_n_t___s_t_r_u_c_t.html">POINT_STRUCT</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="screen__photomode_8c.html#af79762591f29f1c5205a3c7db0979368">pixy_pos</a></td></tr>
<tr class="separator:af79762591f29f1c5205a3c7db0979368"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae975bea55f48890b48fb10b6e3a3d74e"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="struct_p_o_i_n_t___s_t_r_u_c_t.html">POINT_STRUCT</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="screen__photomode_8c.html#ae975bea55f48890b48fb10b6e3a3d74e">old_pos</a></td></tr>
<tr class="separator:ae975bea55f48890b48fb10b6e3a3d74e"><td class="memSeparator" colspan="2">&#160;</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>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="screen__photomode_8c.html#a939fdd806f427cc8505ed817e28cce9d">screen</a></td></tr>
<tr class="separator:a939fdd806f427cc8505ed817e28cce9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a26b5a87b61eb1cd0888fdfc12a91a6d7"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void b_back_cb </td>
<td>(</td>
<td class="paramtype">void *&#160;</td>
<td class="paramname"><em>button</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__photomode_8c_source.html#l00033">33</a> of file <a class="el" href="screen__photomode_8c_source.html">screen_photomode.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;{</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; <a class="code" href="screen__photomode_8c.html#af3310d60b5255f8172a3126551112b71">subMenu</a> = <span class="keyword">false</span>; <span class="comment">//we&#39;re not entering a submenu</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; <a class="code" href="group__screen.html#ga8e14bc7ee0214e2926965f9bdb54a866">gui_screen_back</a>(); <span class="comment">//navigate back to the previous screen</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;}</div>
<div class="ttc" id="screen__photomode_8c_html_af3310d60b5255f8172a3126551112b71"><div class="ttname"><a href="screen__photomode_8c.html#af3310d60b5255f8172a3126551112b71">subMenu</a></div><div class="ttdeci">static bool subMenu</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode_8c_source.html#l00030">screen_photomode.c:30</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><!-- fragment -->
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="screen__photomode_8c_a26b5a87b61eb1cd0888fdfc12a91a6d7_cgraph.png" border="0" usemap="#screen__photomode_8c_a26b5a87b61eb1cd0888fdfc12a91a6d7_cgraph" alt=""/></div>
<map name="screen__photomode_8c_a26b5a87b61eb1cd0888fdfc12a91a6d7_cgraph" id="screen__photomode_8c_a26b5a87b61eb1cd0888fdfc12a91a6d7_cgraph">
<area shape="rect" id="node2" href="group__screen.html#ga8e14bc7ee0214e2926965f9bdb54a866" title="gui_screen_back" alt="" coords="139,5,259,32"/></map>
</div>
</p>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="screen__photomode_8c_a26b5a87b61eb1cd0888fdfc12a91a6d7_icgraph.png" border="0" usemap="#screen__photomode_8c_a26b5a87b61eb1cd0888fdfc12a91a6d7_icgraph" alt=""/></div>
<map name="screen__photomode_8c_a26b5a87b61eb1cd0888fdfc12a91a6d7_icgraph" id="screen__photomode_8c_a26b5a87b61eb1cd0888fdfc12a91a6d7_icgraph">
<area shape="rect" id="node2" href="screen__photomode_8c.html#a3017cd14eca2b9e67a69e7ea559b5eaa" title="enter" alt="" coords="139,5,189,32"/></map>
</div>
</p>
</div>
</div>
<a class="anchor" id="aedad5347e948361ac4f1b371924e74ed"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void b_save_cb </td>
<td>(</td>
<td class="paramtype">void *&#160;</td>
<td class="paramname"><em>button</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__photomode_8c_source.html#l00040">40</a> of file <a class="el" href="screen__photomode_8c_source.html">screen_photomode.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;{</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <a class="code" href="screen__photomode_8c.html#af3310d60b5255f8172a3126551112b71">subMenu</a> = <span class="keyword">true</span>; <span class="comment">//we&#39;re entering a submenu</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <a class="code" href="group__screen.html#gad4473a16eaf48dab405d23f5f63af3aa">gui_screen_navigate</a>(<a class="code" href="group__photomodesave.html#ga151b30d2b85d5e9fdab4abecdb165207">get_screen_photomodesave</a>()); <span class="comment">//navigate to the save screen</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;}</div>
<div class="ttc" id="group__photomodesave_html_ga151b30d2b85d5e9fdab4abecdb165207"><div class="ttname"><a href="group__photomodesave.html#ga151b30d2b85d5e9fdab4abecdb165207">get_screen_photomodesave</a></div><div class="ttdeci">SCREEN_STRUCT * get_screen_photomodesave()</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00338">screen_photomode_save.c:338</a></div></div>
<div class="ttc" id="screen__photomode_8c_html_af3310d60b5255f8172a3126551112b71"><div class="ttname"><a href="screen__photomode_8c.html#af3310d60b5255f8172a3126551112b71">subMenu</a></div><div class="ttdeci">static bool subMenu</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode_8c_source.html#l00030">screen_photomode.c:30</a></div></div>
<div class="ttc" id="group__screen_html_gad4473a16eaf48dab405d23f5f63af3aa"><div class="ttname"><a href="group__screen.html#gad4473a16eaf48dab405d23f5f63af3aa">gui_screen_navigate</a></div><div class="ttdeci">bool gui_screen_navigate(SCREEN_STRUCT *screen)</div><div class="ttdef"><b>Definition:</b> <a href="screen_8c_source.html#l00074">screen.c:74</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__photomode_8c_aedad5347e948361ac4f1b371924e74ed_cgraph.png" border="0" usemap="#screen__photomode_8c_aedad5347e948361ac4f1b371924e74ed_cgraph" alt=""/></div>
<map name="screen__photomode_8c_aedad5347e948361ac4f1b371924e74ed_cgraph" id="screen__photomode_8c_aedad5347e948361ac4f1b371924e74ed_cgraph">
<area shape="rect" id="node2" href="group__screen.html#gad4473a16eaf48dab405d23f5f63af3aa" title="gui_screen_navigate" alt="" coords="158,5,297,32"/><area shape="rect" id="node3" href="group__photomodesave.html#ga151b30d2b85d5e9fdab4abecdb165207" title="get_screen_photomodesave" alt="" coords="136,56,319,83"/></map>
</div>
</p>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="screen__photomode_8c_aedad5347e948361ac4f1b371924e74ed_icgraph.png" border="0" usemap="#screen__photomode_8c_aedad5347e948361ac4f1b371924e74ed_icgraph" alt=""/></div>
<map name="screen__photomode_8c_aedad5347e948361ac4f1b371924e74ed_icgraph" id="screen__photomode_8c_aedad5347e948361ac4f1b371924e74ed_icgraph">
<area shape="rect" id="node2" href="screen__photomode_8c.html#a3017cd14eca2b9e67a69e7ea559b5eaa" title="enter" alt="" coords="136,5,187,32"/></map>
</div>
</p>
</div>
</div>
<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 *&#160;</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__photomode_8c_source.html#l00107">107</a> of file <a class="el" href="screen__photomode_8c_source.html">screen_photomode.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160;{</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <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="l00110"></a><span class="lineno"> 110</span>&#160;</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <a class="code" href="group__tft.html#gabf54943131990b366ce6875a0e1925f6">tft_print_line</a>(5, 5, <a class="code" href="group__tft.html#ga7b3b25cba33b07c303f3060fe41887f6">BLACK</a>, <a class="code" href="group__tft.html#ga6c54e72c6142d317114a29adbcbb24b6">TRANSPARENT</a>, 0, <span class="stringliteral">&quot;Drag the image around and &quot;</span>);</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160;</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <span class="comment">//Back button</span></div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <a class="code" href="screen__photomode_8c.html#ae5d8f6a72bbdbe109bc151bfef8ac9a6">b_back</a>.<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> = 5; <span class="comment">//Start X of Button</span></div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <a class="code" href="screen__photomode_8c.html#ae5d8f6a72bbdbe109bc151bfef8ac9a6">b_back</a>.<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> = 19; <span class="comment">//Start Y of Button</span></div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <a class="code" href="screen__photomode_8c.html#ae5d8f6a72bbdbe109bc151bfef8ac9a6">b_back</a>.<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="l00117"></a><span class="lineno"> 117</span>&#160; <a class="code" href="screen__photomode_8c.html#ae5d8f6a72bbdbe109bc151bfef8ac9a6">b_back</a>.<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="l00118"></a><span class="lineno"> 118</span>&#160; <a class="code" href="screen__photomode_8c.html#ae5d8f6a72bbdbe109bc151bfef8ac9a6">b_back</a>.<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="l00119"></a><span class="lineno"> 119</span>&#160; <a class="code" href="screen__photomode_8c.html#ae5d8f6a72bbdbe109bc151bfef8ac9a6">b_back</a>.<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&#39;t take 255 or 0 on at least one channel, to make shadows possible)</span></div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; <a class="code" href="screen__photomode_8c.html#ae5d8f6a72bbdbe109bc151bfef8ac9a6">b_back</a>.<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="l00121"></a><span class="lineno"> 121</span>&#160; <a class="code" href="screen__photomode_8c.html#ae5d8f6a72bbdbe109bc151bfef8ac9a6">b_back</a>.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#a16343090e80c4472521560f30113d96c">text</a> = <span class="stringliteral">&quot;Back&quot;</span>; <span class="comment">//Set Text (For formatted strings take sprintf)</span></div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; <a class="code" href="screen__photomode_8c.html#ae5d8f6a72bbdbe109bc151bfef8ac9a6">b_back</a>.<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__photomode_8c.html#a26b5a87b61eb1cd0888fdfc12a91a6d7">b_back_cb</a>; <span class="comment">//Call b_back_cb as Callback</span></div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; <a class="code" href="group__button.html#ga64d5d2aaff2c917e5d43e7ed849607de">gui_button_add</a>(&amp;<a class="code" href="screen__photomode_8c.html#ae5d8f6a72bbdbe109bc151bfef8ac9a6">b_back</a>); <span class="comment">//Register Button (and run the callback from now on)</span></div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; <span class="comment">//Save button</span></div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; <a class="code" href="screen__photomode_8c.html#a344069e49415e576784993bf0d11c72c">b_save</a>.<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> = 190;</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <a class="code" href="screen__photomode_8c.html#a344069e49415e576784993bf0d11c72c">b_save</a>.<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> = 3;</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <a class="code" href="screen__photomode_8c.html#a344069e49415e576784993bf0d11c72c">b_save</a>.<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="l00129"></a><span class="lineno"> 129</span>&#160; <a class="code" href="screen__photomode_8c.html#a344069e49415e576784993bf0d11c72c">b_save</a>.<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="l00130"></a><span class="lineno"> 130</span>&#160; <a class="code" href="screen__photomode_8c.html#a344069e49415e576784993bf0d11c72c">b_save</a>.<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="l00131"></a><span class="lineno"> 131</span>&#160; <a class="code" href="screen__photomode_8c.html#a344069e49415e576784993bf0d11c72c">b_save</a>.<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>(0x1010AE);</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; <a class="code" href="screen__photomode_8c.html#a344069e49415e576784993bf0d11c72c">b_save</a>.<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="l00133"></a><span class="lineno"> 133</span>&#160; <a class="code" href="screen__photomode_8c.html#a344069e49415e576784993bf0d11c72c">b_save</a>.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#a16343090e80c4472521560f30113d96c">text</a> = <span class="stringliteral">&quot;Save it!&quot;</span>;</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <a class="code" href="screen__photomode_8c.html#a344069e49415e576784993bf0d11c72c">b_save</a>.<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__photomode_8c.html#aedad5347e948361ac4f1b371924e74ed">b_save_cb</a>;</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; <a class="code" href="group__button.html#ga64d5d2aaff2c917e5d43e7ed849607de">gui_button_add</a>(&amp;<a class="code" href="screen__photomode_8c.html#a344069e49415e576784993bf0d11c72c">b_save</a>);</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160;</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; <span class="comment">//Frame Coordinates: topleft = (1,40); bottomright = (318,238)</span></div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <span class="comment">//Leave a 10px border for the area</span></div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160;</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; <span class="comment">//Area to drag the image around</span></div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; <a class="code" href="screen__photomode_8c.html#a969b249abfb1776e2cc9567db889b83f">a_area</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#a4026095999c2fd7a91f9bb91390647a4">hookedActions</a> = <a class="code" href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768a70faab71fe0370791190ce15d638011d">PEN_DOWN</a> | <a class="code" href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768aa0eb05725aefcf4390bf3b9b27260647">PEN_MOVE</a> | <a class="code" href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768a9d178dc5e5feaf072640820c35a3b64a">PEN_ENTER</a> | <a class="code" href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768a082df10a24f2cb7c2a8098c0df591810">PEN_UP</a> | <a class="code" href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768ad07447bb4a71fa12d848d80f279b7753">PEN_LEAVE</a>;</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; <a class="code" href="screen__photomode_8c.html#a969b249abfb1776e2cc9567db889b83f">a_area</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> = 11;</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; <a class="code" href="screen__photomode_8c.html#a969b249abfb1776e2cc9567db889b83f">a_area</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> = 50;</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <a class="code" href="screen__photomode_8c.html#a969b249abfb1776e2cc9567db889b83f">a_area</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> = 308;</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; <a class="code" href="screen__photomode_8c.html#a969b249abfb1776e2cc9567db889b83f">a_area</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> = 228;</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; <a class="code" href="screen__photomode_8c.html#a969b249abfb1776e2cc9567db889b83f">a_area</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#a4b44f431c154678005298b0f0618cd37">callback</a> = <a class="code" href="screen__photomode_8c.html#a3d1decbb81b0f181eb0561c0f5f8fe3c">touchCB</a>;</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; <a class="code" href="group__touch.html#ga3adc36f55b7475b3f652c38c0e23d741">touch_register_area</a>(&amp;<a class="code" href="screen__photomode_8c.html#a969b249abfb1776e2cc9567db889b83f">a_area</a>);</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160;</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; <span class="comment">//Pixy stuff</span></div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; <a class="code" href="screen__photomode_8c.html#a78404e967b20689331bd77e184ec1c25">pixy_connected</a> = (<a class="code" href="group__pixy.html#gad269822960ad0073356dab75ce3050b3">pixy_init</a>() == 0); <span class="comment">//try to connect to pixy</span></div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160;</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="screen__photomode_8c.html#a78404e967b20689331bd77e184ec1c25">pixy_connected</a> &amp;&amp; !<a class="code" href="screen__photomode_8c.html#af3310d60b5255f8172a3126551112b71">subMenu</a>) { <span class="comment">//pixy is connected, but we are not coming from a submenu</span></div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; <a class="code" href="screen__photomode_8c.html#af79762591f29f1c5205a3c7db0979368">pixy_pos</a>.<a class="code" href="struct_p_o_i_n_t___s_t_r_u_c_t.html#a4dde988b1b2adba65ae3efa69f65d960">x</a> = <a class="code" href="screen__photomode_8c.html#af79762591f29f1c5205a3c7db0979368">pixy_pos</a>.<a class="code" href="struct_p_o_i_n_t___s_t_r_u_c_t.html#ab0580f504a7428539be299fa71565f30">y</a> = 500; <span class="comment">//reset servo positions to center</span></div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; }</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160;}</div>
<div class="ttc" id="group__touch_html_ga3adc36f55b7475b3f652c38c0e23d741"><div class="ttname"><a href="group__touch.html#ga3adc36f55b7475b3f652c38c0e23d741">touch_register_area</a></div><div class="ttdeci">bool touch_register_area(TOUCH_AREA_STRUCT *area)</div><div class="ttdef"><b>Definition:</b> <a href="touch_8c_source.html#l00181">touch.c:181</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="group__touch_html_ggab6037f32eebdf297a7d601a1e6c87768aa0eb05725aefcf4390bf3b9b27260647"><div class="ttname"><a href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768aa0eb05725aefcf4390bf3b9b27260647">PEN_MOVE</a></div><div class="ttdoc">Receive an event when the pen moves inside the region (pen is down) </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00058">touch.h:58</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="group__touch_html_ggab6037f32eebdf297a7d601a1e6c87768a70faab71fe0370791190ce15d638011d"><div class="ttname"><a href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768a70faab71fe0370791190ce15d638011d">PEN_DOWN</a></div><div class="ttdoc">Receive an event when the pen goes down inside the region. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00054">touch.h:54</a></div></div>
<div class="ttc" id="group__touch_html_ggab6037f32eebdf297a7d601a1e6c87768a082df10a24f2cb7c2a8098c0df591810"><div class="ttname"><a href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768a082df10a24f2cb7c2a8098c0df591810">PEN_UP</a></div><div class="ttdoc">Receive an event when the pen goes up inside the region. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00055">touch.h:55</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="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="screen__photomode_8c_html_a3d1decbb81b0f181eb0561c0f5f8fe3c"><div class="ttname"><a href="screen__photomode_8c.html#a3d1decbb81b0f181eb0561c0f5f8fe3c">touchCB</a></div><div class="ttdeci">static void touchCB(void *touchArea, TOUCH_ACTION triggeredAction)</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode_8c_source.html#l00050">screen_photomode.c:50</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="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__photomode_8c_html_af3310d60b5255f8172a3126551112b71"><div class="ttname"><a href="screen__photomode_8c.html#af3310d60b5255f8172a3126551112b71">subMenu</a></div><div class="ttdeci">static bool subMenu</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode_8c_source.html#l00030">screen_photomode.c:30</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="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__photomode_8c_html_ae5d8f6a72bbdbe109bc151bfef8ac9a6"><div class="ttname"><a href="screen__photomode_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__photomode_8c_source.html#l00027">screen_photomode.c:27</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="screen__photomode_8c_html_af79762591f29f1c5205a3c7db0979368"><div class="ttname"><a href="screen__photomode_8c.html#af79762591f29f1c5205a3c7db0979368">pixy_pos</a></div><div class="ttdeci">static POINT_STRUCT pixy_pos</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode_8c_source.html#l00046">screen_photomode.c:46</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="screen__photomode_8c_html_aedad5347e948361ac4f1b371924e74ed"><div class="ttname"><a href="screen__photomode_8c.html#aedad5347e948361ac4f1b371924e74ed">b_save_cb</a></div><div class="ttdeci">static void b_save_cb(void *button)</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode_8c_source.html#l00040">screen_photomode.c:40</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__photomode_8c_html_a344069e49415e576784993bf0d11c72c"><div class="ttname"><a href="screen__photomode_8c.html#a344069e49415e576784993bf0d11c72c">b_save</a></div><div class="ttdeci">static BUTTON_STRUCT b_save</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode_8c_source.html#l00028">screen_photomode.c:28</a></div></div>
<div class="ttc" id="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t_html_a4b44f431c154678005298b0f0618cd37"><div class="ttname"><a href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#a4b44f431c154678005298b0f0618cd37">TOUCH_AREA_STRUCT::callback</a></div><div class="ttdeci">TOUCH_CALLBACK callback</div><div class="ttdoc">Callback which is executed when an event occurred in this Area. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00078">touch.h:78</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="screen__photomode_8c_html_a26b5a87b61eb1cd0888fdfc12a91a6d7"><div class="ttname"><a href="screen__photomode_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__photomode_8c_source.html#l00033">screen_photomode.c:33</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="screen__photomode_8c_html_a969b249abfb1776e2cc9567db889b83f"><div class="ttname"><a href="screen__photomode_8c.html#a969b249abfb1776e2cc9567db889b83f">a_area</a></div><div class="ttdeci">static TOUCH_AREA_STRUCT a_area</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode_8c_source.html#l00029">screen_photomode.c:29</a></div></div>
<div class="ttc" id="group__touch_html_ggab6037f32eebdf297a7d601a1e6c87768a9d178dc5e5feaf072640820c35a3b64a"><div class="ttname"><a href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768a9d178dc5e5feaf072640820c35a3b64a">PEN_ENTER</a></div><div class="ttdoc">Receive an event when the pen enters the region (pen was down before) </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00056">touch.h:56</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__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="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t_html_a4026095999c2fd7a91f9bb91390647a4"><div class="ttname"><a href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#a4026095999c2fd7a91f9bb91390647a4">TOUCH_AREA_STRUCT::hookedActions</a></div><div class="ttdeci">TOUCH_ACTION hookedActions</div><div class="ttdoc">Actions to listen to. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00073">touch.h:73</a></div></div>
<div class="ttc" id="screen__photomode_8c_html_a78404e967b20689331bd77e184ec1c25"><div class="ttname"><a href="screen__photomode_8c.html#a78404e967b20689331bd77e184ec1c25">pixy_connected</a></div><div class="ttdeci">static bool pixy_connected</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode_8c_source.html#l00025">screen_photomode.c:25</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="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="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__touch_html_ggab6037f32eebdf297a7d601a1e6c87768ad07447bb4a71fa12d848d80f279b7753"><div class="ttname"><a href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768ad07447bb4a71fa12d848d80f279b7753">PEN_LEAVE</a></div><div class="ttdoc">Receive an event when the pen leaves the region (pen was inside region before) </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00057">touch.h:57</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__photomode_8c_a3017cd14eca2b9e67a69e7ea559b5eaa_cgraph.png" border="0" usemap="#screen__photomode_8c_a3017cd14eca2b9e67a69e7ea559b5eaa_cgraph" alt=""/></div>
<map name="screen__photomode_8c_a3017cd14eca2b9e67a69e7ea559b5eaa_cgraph" id="screen__photomode_8c_a3017cd14eca2b9e67a69e7ea559b5eaa_cgraph">
<area shape="rect" id="node2" href="group__tft.html#ga6a2e3b3878ae5eea184d4c3ffe091b78" title="tft_clear" alt="" coords="125,5,193,32"/><area shape="rect" id="node4" href="group__tft.html#gabf54943131990b366ce6875a0e1925f6" title="tft_print_line" alt="" coords="513,56,605,83"/><area shape="rect" id="node8" href="screen__photomode_8c.html#a26b5a87b61eb1cd0888fdfc12a91a6d7" title="b_back_cb" alt="" coords="117,411,202,437"/><area shape="rect" id="node10" href="group__button.html#ga64d5d2aaff2c917e5d43e7ed849607de" title="gui_button_add" alt="" coords="104,259,215,285"/><area shape="rect" id="node22" href="group__touch.html#ga3adc36f55b7475b3f652c38c0e23d741" title="touch_register_area" alt="" coords="286,360,422,387"/><area shape="rect" id="node23" href="screen__photomode_8c.html#aedad5347e948361ac4f1b371924e74ed" title="b_save_cb" alt="" coords="118,461,201,488"/><area shape="rect" id="node26" href="screen__photomode_8c.html#a3d1decbb81b0f181eb0561c0f5f8fe3c" title="touchCB" alt="" coords="123,512,195,539"/><area shape="rect" id="node28" href="group__pixy.html#gad269822960ad0073356dab75ce3050b3" title="Creates a connection with Pixy and listens for Pixy messages. " alt="" coords="124,563,195,589"/><area shape="rect" id="node3" href="group__ll__tft.html#ga74b49691a101619b939c085ff607a582" title="ll_tft_clear" alt="" coords="313,5,395,32"/><area shape="rect" id="node5" href="group__ll__tft.html#gaf4b0b73ab01e1dc300ae65dc0ac029b6" title="ll_tft_num_fonts" alt="" coords="679,5,793,32"/><area shape="rect" id="node6" href="group__ll__tft.html#ga408570a2b70769255924792ce189f2c1" title="ll_tft_draw_char" alt="" coords="680,56,792,83"/><area shape="rect" id="node7" href="group__ll__tft.html#ga3639ec94b2239cc02b3c47a14f6637a3" title="ll_tft_font_width" alt="" coords="681,107,791,133"/><area shape="rect" id="node9" href="group__screen.html#ga8e14bc7ee0214e2926965f9bdb54a866" title="gui_screen_back" alt="" coords="294,411,414,437"/><area shape="rect" id="node11" href="group__touch.html#gad32e5d122ec3f5f88bc6b2d9f4a629f8" title="touch_have_empty" alt="" coords="289,259,419,285"/><area shape="rect" id="node12" href="group__tft.html#ga7e99287b1e6b844f6867c63400959ffc" title="tft_font_width" alt="" coords="510,107,609,133"/><area shape="rect" id="node13" href="group__tft.html#gaea9f6a88da91949befe52cd4ed000c5d" title="tft_font_height" alt="" coords="508,157,611,184"/><area shape="rect" id="node15" href="button_8c.html#a7dca41e6afa418abaf2d471acac9b649" title="buttons_cb" alt="" coords="311,309,397,336"/><area shape="rect" id="node19" href="group__button.html#ga6da1e251bad09d29fbb3b3f405689ab1" title="gui_button_redraw" alt="" coords="291,208,417,235"/><area shape="rect" id="node14" href="group__ll__tft.html#ga8dbc8b40717be527e6f1c5a2cfc72aeb" title="ll_tft_font_height" alt="" coords="678,157,794,184"/><area shape="rect" id="node16" href="button_8c.html#a05bb88dac6f60063eae2bb67dda1f4e8" title="calculate_shadows" alt="" coords="493,259,625,285"/><area shape="rect" id="node17" href="group__tft.html#ga5022f91ea04919e698a79c0c309ba6f8" title="tft_draw_line" alt="" coords="512,309,607,336"/><area shape="rect" id="node18" href="group__ll__tft.html#ga2560737bf118275e6ce728f6dce1e83f" title="ll_tft_draw_line" alt="" coords="683,309,789,336"/><area shape="rect" id="node20" href="group__tft.html#ga781855ab93845ce326dfca7c099259c6" title="tft_fill_rectangle" alt="" coords="503,208,615,235"/><area shape="rect" id="node21" href="group__ll__tft.html#ga0111ae5623214d3d466b2b24598f303f" title="ll_tft_fill_rectangle" alt="" coords="673,208,799,235"/><area shape="rect" id="node24" href="group__screen.html#gad4473a16eaf48dab405d23f5f63af3aa" title="gui_screen_navigate" alt="" coords="285,461,423,488"/><area shape="rect" id="node25" href="group__photomodesave.html#ga151b30d2b85d5e9fdab4abecdb165207" title="get_screen_photomodesave" alt="" coords="263,512,445,539"/><area shape="rect" id="node27" href="group__touch.html#ga42b918ead4f536a63f79601ab2978227" title="touch_get_last_point" alt="" coords="283,563,425,589"/></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 *&#160;</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__photomode_8c_source.html#l00158">158</a> of file <a class="el" href="screen__photomode_8c_source.html">screen_photomode.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160;{</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; <span class="comment">//remove buttons and touch area.</span></div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; <a class="code" href="group__button.html#ga39e6ec07616381a15f276cd821dad4fd">gui_button_remove</a>(&amp;<a class="code" href="screen__photomode_8c.html#ae5d8f6a72bbdbe109bc151bfef8ac9a6">b_back</a>);</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; <a class="code" href="group__button.html#ga39e6ec07616381a15f276cd821dad4fd">gui_button_remove</a>(&amp;<a class="code" href="screen__photomode_8c.html#a344069e49415e576784993bf0d11c72c">b_save</a>);</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; <a class="code" href="group__touch.html#gaa7d6cd569335d0ddfc9eeab479f3a0a8">touch_unregister_area</a>(&amp;<a class="code" href="screen__photomode_8c.html#a969b249abfb1776e2cc9567db889b83f">a_area</a>);</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160;}</div>
<div class="ttc" id="screen__photomode_8c_html_ae5d8f6a72bbdbe109bc151bfef8ac9a6"><div class="ttname"><a href="screen__photomode_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__photomode_8c_source.html#l00027">screen_photomode.c:27</a></div></div>
<div class="ttc" id="group__touch_html_gaa7d6cd569335d0ddfc9eeab479f3a0a8"><div class="ttname"><a href="group__touch.html#gaa7d6cd569335d0ddfc9eeab479f3a0a8">touch_unregister_area</a></div><div class="ttdeci">void touch_unregister_area(TOUCH_AREA_STRUCT *area)</div><div class="ttdef"><b>Definition:</b> <a href="touch_8c_source.html#l00195">touch.c:195</a></div></div>
<div class="ttc" id="screen__photomode_8c_html_a344069e49415e576784993bf0d11c72c"><div class="ttname"><a href="screen__photomode_8c.html#a344069e49415e576784993bf0d11c72c">b_save</a></div><div class="ttdeci">static BUTTON_STRUCT b_save</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode_8c_source.html#l00028">screen_photomode.c:28</a></div></div>
<div class="ttc" id="screen__photomode_8c_html_a969b249abfb1776e2cc9567db889b83f"><div class="ttname"><a href="screen__photomode_8c.html#a969b249abfb1776e2cc9567db889b83f">a_area</a></div><div class="ttdeci">static TOUCH_AREA_STRUCT a_area</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode_8c_source.html#l00029">screen_photomode.c:29</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><!-- fragment -->
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="screen__photomode_8c_acd1409088e83cf2a8ba2cf96dd9b52f8_cgraph.png" border="0" usemap="#screen__photomode_8c_acd1409088e83cf2a8ba2cf96dd9b52f8_cgraph" alt=""/></div>
<map name="screen__photomode_8c_acd1409088e83cf2a8ba2cf96dd9b52f8_cgraph" id="screen__photomode_8c_acd1409088e83cf2a8ba2cf96dd9b52f8_cgraph">
<area shape="rect" id="node2" href="group__button.html#ga39e6ec07616381a15f276cd821dad4fd" title="gui_button_remove" alt="" coords="104,5,235,32"/><area shape="rect" id="node3" href="group__touch.html#gaa7d6cd569335d0ddfc9eeab479f3a0a8" title="touch_unregister_area" alt="" coords="283,31,433,57"/></map>
</div>
</p>
</div>
</div>
<a class="anchor" id="a3d1decbb81b0f181eb0561c0f5f8fe3c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void touchCB </td>
<td>(</td>
<td class="paramtype">void *&#160;</td>
<td class="paramname"><em>touchArea</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__touch.html#gab6037f32eebdf297a7d601a1e6c87768">TOUCH_ACTION</a>&#160;</td>
<td class="paramname"><em>triggeredAction</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</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__photomode_8c_source.html#l00050">50</a> of file <a class="el" href="screen__photomode_8c_source.html">screen_photomode.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;{</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <a class="code" href="struct_p_o_i_n_t___s_t_r_u_c_t.html">POINT_STRUCT</a> p = <a class="code" href="group__touch.html#ga42b918ead4f536a63f79601ab2978227">touch_get_last_point</a>(); <span class="comment">//get the last touched point</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <span class="keywordflow">switch</span> (triggeredAction) {</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <span class="keywordflow">case</span> <a class="code" href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768a9d178dc5e5feaf072640820c35a3b64a">PEN_ENTER</a>:</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="keywordflow">case</span> <a class="code" href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768a70faab71fe0370791190ce15d638011d">PEN_DOWN</a>:</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <a class="code" href="screen__photomode_8c.html#ae975bea55f48890b48fb10b6e3a3d74e">old_pos</a> = p; <span class="comment">//If the user &quot;newly&quot; enters the touch area, we set the &quot;last&quot; position to the current</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="keywordflow">case</span> <a class="code" href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768aa0eb05725aefcf4390bf3b9b27260647">PEN_MOVE</a>: { <span class="comment">//the user is moving around, he entered the screen a while ago (old_pos is set)</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; int16_t deltaX = p.<a class="code" href="struct_p_o_i_n_t___s_t_r_u_c_t.html#a4dde988b1b2adba65ae3efa69f65d960">x</a> - <a class="code" href="screen__photomode_8c.html#ae975bea55f48890b48fb10b6e3a3d74e">old_pos</a>.<a class="code" href="struct_p_o_i_n_t___s_t_r_u_c_t.html#a4dde988b1b2adba65ae3efa69f65d960">x</a>; <span class="comment">//Calculate x difference between last and current touch</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; int16_t deltaY = p.<a class="code" href="struct_p_o_i_n_t___s_t_r_u_c_t.html#ab0580f504a7428539be299fa71565f30">y</a> - <a class="code" href="screen__photomode_8c.html#ae975bea55f48890b48fb10b6e3a3d74e">old_pos</a>.<a class="code" href="struct_p_o_i_n_t___s_t_r_u_c_t.html#ab0580f504a7428539be299fa71565f30">y</a>; <span class="comment">//Calculate y difference between last and current touch</span></div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <a class="code" href="screen__photomode_8c.html#ae975bea55f48890b48fb10b6e3a3d74e">old_pos</a> = p; <span class="comment">//store the current touch point for the next time</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="comment">//printf(&quot;%d %d\n&quot;,deltaX,deltaY);</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="screen__photomode_8c.html#a78404e967b20689331bd77e184ec1c25">pixy_connected</a>) {</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; <span class="comment">//Calculate new servo coordinates. 2 is just a proportional factor</span></div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; int16_t new_x = <a class="code" href="screen__photomode_8c.html#af79762591f29f1c5205a3c7db0979368">pixy_pos</a>.<a class="code" href="struct_p_o_i_n_t___s_t_r_u_c_t.html#a4dde988b1b2adba65ae3efa69f65d960">x</a> + deltaX * 2;</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; int16_t new_y = <a class="code" href="screen__photomode_8c.html#af79762591f29f1c5205a3c7db0979368">pixy_pos</a>.<a class="code" href="struct_p_o_i_n_t___s_t_r_u_c_t.html#ab0580f504a7428539be299fa71565f30">y</a> - deltaY * 2;</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; <span class="comment">//check limits</span></div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; <span class="keywordflow">if</span> (new_x &lt; 0) {</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; new_x = 0;</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; }</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <span class="keywordflow">if</span> (new_x &gt; 1000) {</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; new_x = 1000;</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; }</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160;</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <span class="keywordflow">if</span> (new_y &lt; 0) {</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; new_y = 0;</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; }</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <span class="keywordflow">if</span> (new_y &gt; 1000) {</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; new_y = 1000;</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; }</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <span class="comment">//set pixy_pos so that the main routine can send it to the servos</span></div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; <a class="code" href="screen__photomode_8c.html#af79762591f29f1c5205a3c7db0979368">pixy_pos</a>.<a class="code" href="struct_p_o_i_n_t___s_t_r_u_c_t.html#a4dde988b1b2adba65ae3efa69f65d960">x</a> = new_x;</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <a class="code" href="screen__photomode_8c.html#af79762591f29f1c5205a3c7db0979368">pixy_pos</a>.<a class="code" href="struct_p_o_i_n_t___s_t_r_u_c_t.html#ab0580f504a7428539be299fa71565f30">y</a> = new_y;</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; }</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; }</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160;</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <span class="keywordflow">case</span> <a class="code" href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768a082df10a24f2cb7c2a8098c0df591810">PEN_UP</a>:</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <span class="keywordflow">case</span> <a class="code" href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768ad07447bb4a71fa12d848d80f279b7753">PEN_LEAVE</a>:</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; <span class="comment">//printf(&quot;Leave/up\n&quot;);</span></div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160;</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; }</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160;</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160;}</div>
<div class="ttc" id="group__touch_html_ggab6037f32eebdf297a7d601a1e6c87768aa0eb05725aefcf4390bf3b9b27260647"><div class="ttname"><a href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768aa0eb05725aefcf4390bf3b9b27260647">PEN_MOVE</a></div><div class="ttdoc">Receive an event when the pen moves inside the region (pen is down) </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00058">touch.h:58</a></div></div>
<div class="ttc" id="group__touch_html_ggab6037f32eebdf297a7d601a1e6c87768a70faab71fe0370791190ce15d638011d"><div class="ttname"><a href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768a70faab71fe0370791190ce15d638011d">PEN_DOWN</a></div><div class="ttdoc">Receive an event when the pen goes down inside the region. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00054">touch.h:54</a></div></div>
<div class="ttc" id="group__touch_html_ggab6037f32eebdf297a7d601a1e6c87768a082df10a24f2cb7c2a8098c0df591810"><div class="ttname"><a href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768a082df10a24f2cb7c2a8098c0df591810">PEN_UP</a></div><div class="ttdoc">Receive an event when the pen goes up inside the region. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00055">touch.h:55</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="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__photomode_8c_html_af79762591f29f1c5205a3c7db0979368"><div class="ttname"><a href="screen__photomode_8c.html#af79762591f29f1c5205a3c7db0979368">pixy_pos</a></div><div class="ttdeci">static POINT_STRUCT pixy_pos</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode_8c_source.html#l00046">screen_photomode.c:46</a></div></div>
<div class="ttc" id="group__touch_html_ggab6037f32eebdf297a7d601a1e6c87768a9d178dc5e5feaf072640820c35a3b64a"><div class="ttname"><a href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768a9d178dc5e5feaf072640820c35a3b64a">PEN_ENTER</a></div><div class="ttdoc">Receive an event when the pen enters the region (pen was down before) </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00056">touch.h:56</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="screen__photomode_8c_html_ae975bea55f48890b48fb10b6e3a3d74e"><div class="ttname"><a href="screen__photomode_8c.html#ae975bea55f48890b48fb10b6e3a3d74e">old_pos</a></div><div class="ttdeci">static POINT_STRUCT old_pos</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode_8c_source.html#l00047">screen_photomode.c:47</a></div></div>
<div class="ttc" id="screen__photomode_8c_html_a78404e967b20689331bd77e184ec1c25"><div class="ttname"><a href="screen__photomode_8c.html#a78404e967b20689331bd77e184ec1c25">pixy_connected</a></div><div class="ttdeci">static bool pixy_connected</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode_8c_source.html#l00025">screen_photomode.c:25</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="group__touch_html_ggab6037f32eebdf297a7d601a1e6c87768ad07447bb4a71fa12d848d80f279b7753"><div class="ttname"><a href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768ad07447bb4a71fa12d848d80f279b7753">PEN_LEAVE</a></div><div class="ttdoc">Receive an event when the pen leaves the region (pen was inside region before) </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00057">touch.h:57</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__photomode_8c_a3d1decbb81b0f181eb0561c0f5f8fe3c_cgraph.png" border="0" usemap="#screen__photomode_8c_a3d1decbb81b0f181eb0561c0f5f8fe3c_cgraph" alt=""/></div>
<map name="screen__photomode_8c_a3d1decbb81b0f181eb0561c0f5f8fe3c_cgraph" id="screen__photomode_8c_a3d1decbb81b0f181eb0561c0f5f8fe3c_cgraph">
<area shape="rect" id="node2" href="group__touch.html#ga42b918ead4f536a63f79601ab2978227" title="touch_get_last_point" alt="" coords="125,5,268,32"/></map>
</div>
</p>
<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="screen__photomode_8c_a3d1decbb81b0f181eb0561c0f5f8fe3c_icgraph.png" border="0" usemap="#screen__photomode_8c_a3d1decbb81b0f181eb0561c0f5f8fe3c_icgraph" alt=""/></div>
<map name="screen__photomode_8c_a3d1decbb81b0f181eb0561c0f5f8fe3c_icgraph" id="screen__photomode_8c_a3d1decbb81b0f181eb0561c0f5f8fe3c_icgraph">
<area shape="rect" id="node2" href="screen__photomode_8c.html#a3017cd14eca2b9e67a69e7ea559b5eaa" title="enter" alt="" coords="125,5,176,32"/></map>
</div>
</p>
</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 *&#160;</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__photomode_8c_source.html#l00168">168</a> of file <a class="el" href="screen__photomode_8c_source.html">screen_photomode.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160;{</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; <span class="comment">//Note: The only way to detect that pixy has been disconnected is if a command fails. There&#39;s no pixy_is_connected method yet :&#39;(</span></div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160;</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; <span class="keywordflow">if</span> (!<a class="code" href="screen__photomode_8c.html#a78404e967b20689331bd77e184ec1c25">pixy_connected</a>) { <span class="comment">//Pixy not connected</span></div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; <a class="code" href="group__pixy.html#gaada09a1aeda12672050f5c3183ef6f3b">pixy_close</a>(); <span class="comment">//Ensure that all pixy resources are freed (failsafe)</span></div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160;</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="group__pixy.html#gad269822960ad0073356dab75ce3050b3">pixy_init</a>() == 0) { <span class="comment">//try to connect to pixy</span></div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; <a class="code" href="screen__photomode_8c.html#a78404e967b20689331bd77e184ec1c25">pixy_connected</a> = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160;</div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; <span class="keywordflow">if</span> (!<a class="code" href="screen__photomode_8c.html#af3310d60b5255f8172a3126551112b71">subMenu</a>) { <span class="comment">//we&#39;re not coming from a submenu</span></div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; <a class="code" href="screen__photomode_8c.html#af79762591f29f1c5205a3c7db0979368">pixy_pos</a>.<a class="code" href="struct_p_o_i_n_t___s_t_r_u_c_t.html#a4dde988b1b2adba65ae3efa69f65d960">x</a> = <a class="code" href="screen__photomode_8c.html#af79762591f29f1c5205a3c7db0979368">pixy_pos</a>.<a class="code" href="struct_p_o_i_n_t___s_t_r_u_c_t.html#ab0580f504a7428539be299fa71565f30">y</a> = 500; <span class="comment">//reset servo positions to center</span></div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; }</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160;</div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; printf(<span class="stringliteral">&quot;pixy (re)initialized\n&quot;</span>);</div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; }</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; }</div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160;</div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="screen__photomode_8c.html#a78404e967b20689331bd77e184ec1c25">pixy_connected</a>) { <span class="comment">//If we are connected (now)</span></div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; <a class="code" href="group__pixy.html#ga72a2cd126f6a5f67842e5ff66424ccb0">pixy_service</a>(); <span class="comment">//Handle pending pixy events (e.g. color info retrival)</span></div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160;</div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160; <a class="code" href="group__pixy__helper.html#ga31b46efdf685d2337447b1e529693e2f">pixy_render_full_frame</a>(1, 40); <span class="comment">//render the pixy video at point (1,40)</span></div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160;</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160; <span class="comment">//set the servo positions to the coordinates form the touch interrupt</span></div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; <a class="code" href="group__pixy.html#ga5fb9213a5459dc6c74131ecabd6b5995">pixy_rcs_set_position</a>(0, <a class="code" href="screen__photomode_8c.html#af79762591f29f1c5205a3c7db0979368">pixy_pos</a>.<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="l00193"></a><span class="lineno"> 193</span>&#160; <a class="code" href="group__pixy.html#ga5fb9213a5459dc6c74131ecabd6b5995">pixy_rcs_set_position</a>(1, <a class="code" href="screen__photomode_8c.html#af79762591f29f1c5205a3c7db0979368">pixy_pos</a>.<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="l00194"></a><span class="lineno"> 194</span>&#160; }</div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160;}</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="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__photomode_8c_html_af3310d60b5255f8172a3126551112b71"><div class="ttname"><a href="screen__photomode_8c.html#af3310d60b5255f8172a3126551112b71">subMenu</a></div><div class="ttdeci">static bool subMenu</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode_8c_source.html#l00030">screen_photomode.c:30</a></div></div>
<div class="ttc" id="screen__photomode_8c_html_af79762591f29f1c5205a3c7db0979368"><div class="ttname"><a href="screen__photomode_8c.html#af79762591f29f1c5205a3c7db0979368">pixy_pos</a></div><div class="ttdeci">static POINT_STRUCT pixy_pos</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode_8c_source.html#l00046">screen_photomode.c:46</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="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__photomode_8c_html_a78404e967b20689331bd77e184ec1c25"><div class="ttname"><a href="screen__photomode_8c.html#a78404e967b20689331bd77e184ec1c25">pixy_connected</a></div><div class="ttdeci">static bool pixy_connected</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode_8c_source.html#l00025">screen_photomode.c:25</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="group__pixy_html_gaada09a1aeda12672050f5c3183ef6f3b"><div class="ttname"><a href="group__pixy.html#gaada09a1aeda12672050f5c3183ef6f3b">pixy_close</a></div><div class="ttdeci">void pixy_close()</div><div class="ttdoc">Terminates connection with Pixy. </div></div>
<div class="ttc" id="group__pixy__helper_html_ga31b46efdf685d2337447b1e529693e2f"><div class="ttname"><a href="group__pixy__helper.html#ga31b46efdf685d2337447b1e529693e2f">pixy_render_full_frame</a></div><div class="ttdeci">int pixy_render_full_frame(uint16_t x, uint16_t y)</div><div class="ttdef"><b>Definition:</b> <a href="pixy__frame_8c_source.html#l00025">pixy_frame.c:25</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__photomode_8c_a5e8f84ee8ff4bf827775c38ae6752509_cgraph.png" border="0" usemap="#screen__photomode_8c_a5e8f84ee8ff4bf827775c38ae6752509_cgraph" alt=""/></div>
<map name="screen__photomode_8c_a5e8f84ee8ff4bf827775c38ae6752509_cgraph" id="screen__photomode_8c_a5e8f84ee8ff4bf827775c38ae6752509_cgraph">
<area shape="rect" id="node2" href="group__pixy.html#gaada09a1aeda12672050f5c3183ef6f3b" title="Terminates connection with Pixy. " alt="" coords="148,5,232,32"/><area shape="rect" id="node3" href="group__pixy.html#gad269822960ad0073356dab75ce3050b3" title="Creates a connection with Pixy and listens for Pixy messages. " alt="" coords="155,56,225,83"/><area shape="rect" id="node4" href="group__pixy.html#ga72a2cd126f6a5f67842e5ff66424ccb0" title="pixy_service" alt="" coords="143,107,237,133"/><area shape="rect" id="node5" href="group__pixy__helper.html#ga31b46efdf685d2337447b1e529693e2f" title="pixy_render_full_frame" alt="" coords="115,157,265,184"/><area shape="rect" id="node14" href="group__pixy.html#ga5fb9213a5459dc6c74131ecabd6b5995" title="Set pixy servo axis position. " alt="" coords="116,208,264,235"/><area shape="rect" id="node6" href="group__pixy__helper.html#gad8071a378a78f150cd14bbbd9b93c925" title="pixy_render_cropped\l_frame" alt="" coords="313,150,456,191"/><area shape="rect" id="node7" href="group__pixy.html#ga3d55779001cc649ed85be1a92f09892d" title="Send a command to Pixy. " alt="" coords="504,132,615,159"/><area shape="rect" id="node8" href="pixy__frame_8c.html#afb06c0b9c06d1309cf67dcf1a9fc3eef" title="renderBA81" alt="" coords="514,183,605,209"/><area shape="rect" id="node9" href="pixy__frame_8c.html#ac0bb3b512eb46a18bda67293e4453d76" title="interpolateBayer" alt="" coords="691,132,807,159"/><area shape="rect" id="node10" href="group__tft.html#ga82f9b498c57296310f0dfdaa3d7928ac" title="tft_draw_pixel" alt="" coords="698,183,799,209"/><area shape="rect" id="node12" href="group__tft.html#gab8914c547e697f173306d929ca56988f" title="tft_draw_bitmap_unscaled" alt="" coords="663,235,835,261"/><area shape="rect" id="node11" href="group__ll__tft.html#gad219f39d734f774eb4f5390b5f9f8309" title="ll_tft_draw_pixel" alt="" coords="889,180,1003,207"/><area shape="rect" id="node13" href="group__ll__tft.html#gafaf8d5f70b46fcbdd3c700a030f14b61" title="ll_tft_draw_bitmap\l_unscaled" alt="" coords="883,231,1009,273"/></map>
</div>
</p>
</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a class="anchor" id="a969b249abfb1776e2cc9567db889b83f"></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="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html">TOUCH_AREA_STRUCT</a> a_area</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__photomode_8c_source.html#l00029">29</a> of file <a class="el" href="screen__photomode_8c_source.html">screen_photomode.c</a>.</p>
</div>
</div>
<a class="anchor" id="ae5d8f6a72bbdbe109bc151bfef8ac9a6"></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="struct_b_u_t_t_o_n___s_t_r_u_c_t.html">BUTTON_STRUCT</a> b_back</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__photomode_8c_source.html#l00027">27</a> of file <a class="el" href="screen__photomode_8c_source.html">screen_photomode.c</a>.</p>
</div>
</div>
<a class="anchor" id="a344069e49415e576784993bf0d11c72c"></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="struct_b_u_t_t_o_n___s_t_r_u_c_t.html">BUTTON_STRUCT</a> b_save</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__photomode_8c_source.html#l00028">28</a> of file <a class="el" href="screen__photomode_8c_source.html">screen_photomode.c</a>.</p>
</div>
</div>
<a class="anchor" id="ae975bea55f48890b48fb10b6e3a3d74e"></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="struct_p_o_i_n_t___s_t_r_u_c_t.html">POINT_STRUCT</a> old_pos</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__photomode_8c_source.html#l00047">47</a> of file <a class="el" href="screen__photomode_8c_source.html">screen_photomode.c</a>.</p>
</div>
</div>
<a class="anchor" id="a78404e967b20689331bd77e184ec1c25"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool pixy_connected = false</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__photomode_8c_source.html#l00025">25</a> of file <a class="el" href="screen__photomode_8c_source.html">screen_photomode.c</a>.</p>
</div>
</div>
<a class="anchor" id="af79762591f29f1c5205a3c7db0979368"></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="struct_p_o_i_n_t___s_t_r_u_c_t.html">POINT_STRUCT</a> pixy_pos</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__photomode_8c_source.html#l00046">46</a> of file <a class="el" href="screen__photomode_8c_source.html">screen_photomode.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__photomode_8c.html#a3017cd14eca2b9e67a69e7ea559b5eaa">enter</a>,</div>
<div class="line"> <a class="code" href="screen__photomode_8c.html#acd1409088e83cf2a8ba2cf96dd9b52f8">leave</a>,</div>
<div class="line"> <a class="code" href="screen__photomode_8c.html#a5e8f84ee8ff4bf827775c38ae6752509">update</a></div>
<div class="line">}</div>
<div class="ttc" id="screen__photomode_8c_html_acd1409088e83cf2a8ba2cf96dd9b52f8"><div class="ttname"><a href="screen__photomode_8c.html#acd1409088e83cf2a8ba2cf96dd9b52f8">leave</a></div><div class="ttdeci">static void leave(void *screen)</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode_8c_source.html#l00158">screen_photomode.c:158</a></div></div>
<div class="ttc" id="screen__photomode_8c_html_a3017cd14eca2b9e67a69e7ea559b5eaa"><div class="ttname"><a href="screen__photomode_8c.html#a3017cd14eca2b9e67a69e7ea559b5eaa">enter</a></div><div class="ttdeci">static void enter(void *screen)</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode_8c_source.html#l00107">screen_photomode.c:107</a></div></div>
<div class="ttc" id="screen__photomode_8c_html_a5e8f84ee8ff4bf827775c38ae6752509"><div class="ttname"><a href="screen__photomode_8c.html#a5e8f84ee8ff4bf827775c38ae6752509">update</a></div><div class="ttdeci">static void update(void *screen)</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode_8c_source.html#l00168">screen_photomode.c:168</a></div></div>
</div><!-- fragment -->
<p>Definition at line <a class="el" href="screen__photomode_8c_source.html#l00198">198</a> of file <a class="el" href="screen__photomode_8c_source.html">screen_photomode.c</a>.</p>
</div>
</div>
<a class="anchor" id="af3310d60b5255f8172a3126551112b71"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool subMenu = false</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__photomode_8c_source.html#l00030">30</a> of file <a class="el" href="screen__photomode_8c_source.html">screen_photomode.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:18 for discoverpixy by &#160;<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>