mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-06-06 02:36:49 +08:00
173 lines
17 KiB
HTML
173 lines
17 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.17"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>ESP3D: esp3d/src/modules/display/basic_SSD1306.h Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="resize.js"></script>
|
|
<script type="text/javascript" src="navtreedata.js"></script>
|
|
<script type="text/javascript" src="navtree.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>
|
|
<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="projectlogo"><img alt="Logo" src="ESP3D_social_mini.png"/></td>
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">ESP3D
|
|
 <span id="projectnumber">3.0</span>
|
|
</div>
|
|
<div id="projectbrief">Firmware for ESP boards connected to 3D Printer</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.17 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></div>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(document).ready(function(){initNavTree('basic___s_s_d1306_8h_source.html',''); initResizable(); });
|
|
/* @license-end */
|
|
</script>
|
|
<div id="doc-content">
|
|
<!-- 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 class="header">
|
|
<div class="headertitle">
|
|
<div class="title">basic_SSD1306.h</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="basic___s_s_d1306_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div>
|
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> OLED_SSD1306.h - ESP3D display data file</span></div>
|
|
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> Copyright (c) 2014 Luc Lebosse. All rights reserved.</span></div>
|
|
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> This library is free software; you can redistribute it and/or</span></div>
|
|
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> modify it under the terms of the GNU Lesser General Public</span></div>
|
|
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> License as published by the Free Software Foundation; either</span></div>
|
|
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> version 2.1 of the License, or (at your option) any later version.</span></div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> This library is distributed in the hope that it will be useful,</span></div>
|
|
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
|
|
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span></div>
|
|
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> Lesser General Public License for more details.</span></div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> You should have received a copy of the GNU Lesser General Public</span></div>
|
|
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> License along with this library; if not, write to the Free Software</span></div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA</span></div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment">*/</span></div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include "<a class="code" href="esp3d__logo_8h.html">esp3d_logo.h</a>"</span></div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment">//Screen size</span></div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#a2cd109632a6dcccaa80b43561b1ab700"> 22</a></span> <span class="preprocessor">#define SCREEN_WIDTH 128</span></div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#a6974d08a74da681b3957b2fead2608b8"> 23</a></span> <span class="preprocessor">#define SCREEN_HEIGHT 64</span></div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment">//Colors</span></div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#a54c6607f6fd422d8f7b10f6543a72dc9"> 25</a></span> <span class="preprocessor">#define TFT_BLACK BLACK</span></div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#a93a49fb8bd9e8e94baf96cd836954467"> 26</a></span> <span class="preprocessor">#define TFT_WHITE WHITE</span></div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#aa5a64d40646a483bc235fae1b2c9f80c"> 27</a></span> <span class="preprocessor">#define SPLASH_FG TFT_BLACK</span></div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#a56fca5d1cb6bdabd8f80c2b41279e1fd"> 28</a></span> <span class="preprocessor">#define SPLASH_BG TFT_WHITE</span></div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#a228f4fe4f07ad475fbd7ed318d7ecf40"> 29</a></span> <span class="preprocessor">#define SCREEN_BG TFT_BLACK</span></div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#aded204f10840be1a223740241d0d1e02"> 30</a></span> <span class="preprocessor">#define PROGRESS_FG TFT_WHITE</span></div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#a715a7df95dce9c662727d3e439b8864c"> 31</a></span> <span class="preprocessor">#define SIGNAL_FG TFT_WHITE</span></div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#adfe3926a9d99f3129bf2515ebe873c3f"> 32</a></span> <span class="preprocessor">#define SSID_FG TFT_WHITE</span></div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#a5f7eacc24d9dca380010650ba4b0f6b0"> 33</a></span> <span class="preprocessor">#define IP_FG TFT_WHITE</span></div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#a3a36480ae71b066777163438c6d11a07"> 34</a></span> <span class="preprocessor">#define STATUS_FG TFT_WHITE</span></div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  </div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="comment">//Fonts</span></div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#a6b9e6c4a82477796337c59abe6734233"> 37</a></span> <span class="preprocessor">#define FONTSIGNAL 2</span></div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#a49ffd789e15985deae4fc2188266ca21"> 38</a></span> <span class="preprocessor">#define FONTSSID 2</span></div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#aa6422ac5dd552149f7c757663b19f342"> 39</a></span> <span class="preprocessor">#define FONTIP 3</span></div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#ae70940177201233bfcbfef95eaffa0c1"> 40</a></span> <span class="preprocessor">#define FONTSTATUS 2</span></div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  </div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="comment">//Positions</span></div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#aa6447691e6dc54a815f142f8c09d07c0"> 43</a></span> <span class="preprocessor">#define SIGNAL_X 128-27</span></div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#a15d0f89a20cc66921be0ccdb9a6d5f2c"> 44</a></span> <span class="preprocessor">#define SIGNAL_Y 0</span></div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#a6684383995aaec66540e0f43956a0fe7"> 45</a></span> <span class="preprocessor">#define SIGNAL_W 46</span></div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#a512e438e45723ba57dab9c5b69705ba8"> 46</a></span> <span class="preprocessor">#define SIGNAL_H 10</span></div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  </div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#ac78da3d44fffcc9a6bc302509cb5662b"> 48</a></span> <span class="preprocessor">#define SIGNAL_ICON_X 128-43</span></div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#a97f7ab44ae7d241da268591693d35c15"> 49</a></span> <span class="preprocessor">#define SIGNAL_ICON_Y 2</span></div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#a4635ffe60d422ef333c9956c0b9658a8"> 50</a></span> <span class="preprocessor">#define SIGNAL_ICON_W 15</span></div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#a13ac6de3c10593b157a2f38f315b4382"> 51</a></span> <span class="preprocessor">#define SIGNAL_ICON_H 10</span></div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#a6d3a47a0257126c8fc036ded4e899e29"> 52</a></span> <span class="preprocessor">#define SIGNAL_ICON_W_BAR 3</span></div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#afb7653eef953d7d3717961fcba18a5a6"> 53</a></span> <span class="preprocessor">#define SIGNAL_ICON_SPACER_X 1</span></div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  </div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#a5feda73bf65011c1db87b8df514efce3"> 55</a></span> <span class="preprocessor">#define SSID_AREA_X 0</span></div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#a24cca64c102f7048e9ca9b985b902d43"> 56</a></span> <span class="preprocessor">#define SSID_AREA_Y 0</span></div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#ae39436343181a86b724795e3c0ed63a3"> 57</a></span> <span class="preprocessor">#define SSID_AREA_W 85</span></div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#abf1c14016ed64efd4a2b686cbbba1fff"> 58</a></span> <span class="preprocessor">#define SSID_AREA_H 12</span></div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  </div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#aa96aebdb54a6b80732a052c21af352fa"> 60</a></span> <span class="preprocessor">#define IP_AREA_X 0</span></div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#a3596dfd4777d77242890cd322991e09f"> 61</a></span> <span class="preprocessor">#define IP_AREA_Y 16</span></div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#a9387e8f43164f09727045fb3d8c8c2a0"> 62</a></span> <span class="preprocessor">#define IP_AREA_W 128</span></div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#a952074bbafed8d7c9be6866a7df0338d"> 63</a></span> <span class="preprocessor">#define IP_AREA_H 16</span></div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  </div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#a9c3da7fe942371a562962fcfd315b6f4"> 65</a></span> <span class="preprocessor">#define STATUS_AREA_X 0</span></div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#a9dd4fb2d4b113c025d73f7241e8ddfe0"> 66</a></span> <span class="preprocessor">#define STATUS_AREA_Y 48</span></div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#ab1e4edf07881857739f60e3a69307c56"> 67</a></span> <span class="preprocessor">#define STATUS_AREA_W 128</span></div>
|
|
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="basic___s_s_d1306_8h.html#ae4b725f17504d3c49f9b56f031ff6f6c"> 68</a></span> <span class="preprocessor">#define STATUS_AREA_H 16</span></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<div class="ttc" id="aesp3d__logo_8h_html"><div class="ttname"><a href="esp3d__logo_8h.html">esp3d_logo.h</a></div></div>
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_26e324fd2d3b807b96644664d24a0768.html">esp3d</a></li><li class="navelem"><a class="el" href="dir_8d0579f238dc492a9f9393e76adf8153.html">src</a></li><li class="navelem"><a class="el" href="dir_2c1830491e0576ae3395f8c2f91c7d85.html">modules</a></li><li class="navelem"><a class="el" href="dir_03c6071e8fb2990400ffcde6c1dafe6c.html">display</a></li><li class="navelem"><a class="el" href="basic___s_s_d1306_8h.html">basic_SSD1306.h</a></li>
|
|
<li class="footer">Generated by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|