123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536 |
- <!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.10"/>
- <title>CoffeePi: lcd.h 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 id="projectalign" style="padding-left: 0.5em;">
- <div id="projectname">CoffeePi
- </div>
- <div id="projectbrief">Coffee machine control for Raspberry Pi</div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.8.10 -->
- <script type="text/javascript">
- var searchBox = new SearchBox("searchBox", "search",false,'Search');
- </script>
- <div id="navrow1" class="tabs">
- <ul class="tablist">
- <li><a href="index.html"><span>Main Page</span></a></li>
- <li><a href="annotated.html"><span>Data Structures</span></a></li>
- <li class="current"><a href="files.html"><span>Files</span></a></li>
- <li>
- <div id="MSearchBox" class="MSearchBoxInactive">
- <span class="left">
- <img id="MSearchSelect" src="search/mag_sel.png"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- alt=""/>
- <input type="text" id="MSearchField" value="Search" accesskey="S"
- onfocus="searchBox.OnSearchFieldFocus(true)"
- onblur="searchBox.OnSearchFieldFocus(false)"
- onkeyup="searchBox.OnSearchFieldChange(event)"/>
- </span><span class="right">
- <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
- </span>
- </div>
- </li>
- </ul>
- </div>
- <div id="navrow2" class="tabs2">
- <ul class="tablist">
- <li><a href="files.html"><span>File List</span></a></li>
- <li><a href="globals.html"><span>Globals</span></a></li>
- </ul>
- </div>
- <!-- window showing the filter options -->
- <div id="MSearchSelectWindow"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- onkeydown="return searchBox.OnSearchSelectKey(event)">
- </div>
- <!-- iframe showing the search results (closed by default) -->
- <div id="MSearchResultsWindow">
- <iframe src="javascript:void(0)" frameborder="0"
- name="MSearchResults" id="MSearchResults">
- </iframe>
- </div>
- </div><!-- top -->
- <div class="header">
- <div class="summary">
- <a href="#define-members">Macros</a> |
- <a href="#func-members">Functions</a> </div>
- <div class="headertitle">
- <div class="title">lcd.h File Reference</div> </div>
- </div><!--header-->
- <div class="contents">
- <p><a href="lcd_8h_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="define-members"></a>
- Macros</h2></td></tr>
- <tr class="memitem:a6bfe3f4a880b075a72d2a8318bd10f8e"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8h.html#a6bfe3f4a880b075a72d2a8318bd10f8e">MAX_LCDS</a>   8</td></tr>
- <tr class="separator:a6bfe3f4a880b075a72d2a8318bd10f8e"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a26089a10ddd59a0dc7283c19ccc02533"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8h.html#a26089a10ddd59a0dc7283c19ccc02533">LCD_RW</a>   24</td></tr>
- <tr class="separator:a26089a10ddd59a0dc7283c19ccc02533"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a4781e073871c6f27f89b9463ad3a4ed1"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8h.html#a4781e073871c6f27f89b9463ad3a4ed1">LCD_RS</a>   27</td></tr>
- <tr class="separator:a4781e073871c6f27f89b9463ad3a4ed1"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a1640ffbc0d8ec0f7edb04a2b93918072"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8h.html#a1640ffbc0d8ec0f7edb04a2b93918072">LCD_EN</a>   23</td></tr>
- <tr class="separator:a1640ffbc0d8ec0f7edb04a2b93918072"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
- Functions</h2></td></tr>
- <tr class="memitem:a688913764edb3a241c26da5e51d70ac2"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8h.html#a688913764edb3a241c26da5e51d70ac2">lcdHome</a> (const int fd)</td></tr>
- <tr class="separator:a688913764edb3a241c26da5e51d70ac2"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ae1b4dfd9571742b5ca0aba92882b57a6"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8h.html#ae1b4dfd9571742b5ca0aba92882b57a6">lcdClear</a> (const int fd)</td></tr>
- <tr class="separator:ae1b4dfd9571742b5ca0aba92882b57a6"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:af08385cd21eea125d63d6919ecfbea4a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8h.html#af08385cd21eea125d63d6919ecfbea4a">lcdDisplay</a> (const int fd, int <a class="el" href="coffee_8cpp.html#a89f234133d3efe315836311cbf21c64b">state</a>)</td></tr>
- <tr class="separator:af08385cd21eea125d63d6919ecfbea4a"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a8aa13c894973d52eeed51d10bf869df2"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8h.html#a8aa13c894973d52eeed51d10bf869df2">lcdCursor</a> (const int fd, int <a class="el" href="coffee_8cpp.html#a89f234133d3efe315836311cbf21c64b">state</a>)</td></tr>
- <tr class="separator:a8aa13c894973d52eeed51d10bf869df2"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:af39d67df7e36291184f69691bb97285b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8h.html#af39d67df7e36291184f69691bb97285b">lcdCursorBlink</a> (const int fd, int <a class="el" href="coffee_8cpp.html#a89f234133d3efe315836311cbf21c64b">state</a>)</td></tr>
- <tr class="separator:af39d67df7e36291184f69691bb97285b"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:abb6341df42d0e652db66e51fbf0ba486"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8h.html#abb6341df42d0e652db66e51fbf0ba486">lcdSendCommand</a> (const int fd, unsigned char command)</td></tr>
- <tr class="separator:abb6341df42d0e652db66e51fbf0ba486"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a5d09137f6373e95a692c4b3403729254"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8h.html#a5d09137f6373e95a692c4b3403729254">lcdPosition</a> (const int fd, int x, int y)</td></tr>
- <tr class="separator:a5d09137f6373e95a692c4b3403729254"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a74d902393394e4d3cebdcf0d81bbaeeb"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8h.html#a74d902393394e4d3cebdcf0d81bbaeeb">lcdCharDef</a> (const int fd, int index, unsigned char data[8])</td></tr>
- <tr class="separator:a74d902393394e4d3cebdcf0d81bbaeeb"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a21c60441ee22710add0c9bda1310ed66"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8h.html#a21c60441ee22710add0c9bda1310ed66">lcdPutchar</a> (const int fd, unsigned char data)</td></tr>
- <tr class="separator:a21c60441ee22710add0c9bda1310ed66"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a805efc4a96cca29544672151a9594c20"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8h.html#a805efc4a96cca29544672151a9594c20">lcdPuts</a> (const int fd, const char *string)</td></tr>
- <tr class="separator:a805efc4a96cca29544672151a9594c20"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a49c322ad29410ea292f8d976baf6deb9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8h.html#a49c322ad29410ea292f8d976baf6deb9">lcdPrintf</a> (const int fd, const char *message,...)</td></tr>
- <tr class="separator:a49c322ad29410ea292f8d976baf6deb9"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a47f05b4cef2cf066cf1cbb1beb7ceb31"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8h.html#a47f05b4cef2cf066cf1cbb1beb7ceb31">lcdInitI</a> (const int rows, const int cols, const int bits, const int rs, const int strb)</td></tr>
- <tr class="separator:a47f05b4cef2cf066cf1cbb1beb7ceb31"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a88d70347308e92cb29eb45b505cad39e"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="lcd_8h.html#a88d70347308e92cb29eb45b505cad39e">lcdInit</a> (void)</td></tr>
- <tr class="separator:a88d70347308e92cb29eb45b505cad39e"><td class="memSeparator" colspan="2"> </td></tr>
- </table>
- <h2 class="groupheader">Macro Definition Documentation</h2>
- <a class="anchor" id="a1640ffbc0d8ec0f7edb04a2b93918072"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define LCD_EN   23</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a4781e073871c6f27f89b9463ad3a4ed1"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define LCD_RS   27</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a26089a10ddd59a0dc7283c19ccc02533"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define LCD_RW   24</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a6bfe3f4a880b075a72d2a8318bd10f8e"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">#define MAX_LCDS   8</td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <h2 class="groupheader">Function Documentation</h2>
- <a class="anchor" id="a74d902393394e4d3cebdcf0d81bbaeeb"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void lcdCharDef </td>
- <td>(</td>
- <td class="paramtype">const int </td>
- <td class="paramname"><em>fd</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>index</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">unsigned char </td>
- <td class="paramname"><em>data</em>[8] </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="ae1b4dfd9571742b5ca0aba92882b57a6"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void lcdClear </td>
- <td>(</td>
- <td class="paramtype">const int </td>
- <td class="paramname"><em>fd</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a8aa13c894973d52eeed51d10bf869df2"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void lcdCursor </td>
- <td>(</td>
- <td class="paramtype">const int </td>
- <td class="paramname"><em>fd</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>state</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="af39d67df7e36291184f69691bb97285b"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void lcdCursorBlink </td>
- <td>(</td>
- <td class="paramtype">const int </td>
- <td class="paramname"><em>fd</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>state</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="af08385cd21eea125d63d6919ecfbea4a"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void lcdDisplay </td>
- <td>(</td>
- <td class="paramtype">const int </td>
- <td class="paramname"><em>fd</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>state</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a688913764edb3a241c26da5e51d70ac2"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void lcdHome </td>
- <td>(</td>
- <td class="paramtype">const int </td>
- <td class="paramname"><em>fd</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a88d70347308e92cb29eb45b505cad39e"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">int lcdInit </td>
- <td>(</td>
- <td class="paramtype">void </td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a47f05b4cef2cf066cf1cbb1beb7ceb31"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">int lcdInitI </td>
- <td>(</td>
- <td class="paramtype">const int </td>
- <td class="paramname"><em>rows</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const int </td>
- <td class="paramname"><em>cols</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const int </td>
- <td class="paramname"><em>bits</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const int </td>
- <td class="paramname"><em>rs</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const int </td>
- <td class="paramname"><em>strb</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a5d09137f6373e95a692c4b3403729254"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void lcdPosition </td>
- <td>(</td>
- <td class="paramtype">const int </td>
- <td class="paramname"><em>fd</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>x</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>y</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a49c322ad29410ea292f8d976baf6deb9"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void lcdPrintf </td>
- <td>(</td>
- <td class="paramtype">const int </td>
- <td class="paramname"><em>fd</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const char * </td>
- <td class="paramname"><em>message</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype"> </td>
- <td class="paramname"><em>...</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a21c60441ee22710add0c9bda1310ed66"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void lcdPutchar </td>
- <td>(</td>
- <td class="paramtype">const int </td>
- <td class="paramname"><em>fd</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">unsigned char </td>
- <td class="paramname"><em>data</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="a805efc4a96cca29544672151a9594c20"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void lcdPuts </td>
- <td>(</td>
- <td class="paramtype">const int </td>
- <td class="paramname"><em>fd</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const char * </td>
- <td class="paramname"><em>string</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- <a class="anchor" id="abb6341df42d0e652db66e51fbf0ba486"></a>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void lcdSendCommand </td>
- <td>(</td>
- <td class="paramtype">const int </td>
- <td class="paramname"><em>fd</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">unsigned char </td>
- <td class="paramname"><em>command</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- </div>
- </div>
- </div><!-- contents -->
- <!-- start footer part -->
- <hr class="footer"/><address class="footer"><small>
- Generated by  <a href="http://www.doxygen.org/index.html">
- <img class="footer" src="doxygen.png" alt="doxygen"/>
- </a> 1.8.10
- </small></address>
- </body>
- </html>
|