Touchscreen functions added and a Demo.
Even though they aren't documented yet.
This commit is contained in:
parent
e47f4cb789
commit
c95bb4e576
Binary file not shown.
After Width: | Height: | Size: 9.7 KiB |
|
@ -0,0 +1,202 @@
|
|||
v 20080127 1
|
||||
C 40000 40000 0 0 0 title-B.sym
|
||||
C 51600 46500 1 0 0 transformer-2.sym
|
||||
{
|
||||
T 51600 47900 5 10 1 1 0 0 1
|
||||
refdes=T1
|
||||
T 51600 48100 5 10 0 0 0 0 1
|
||||
device=TRANSFORMER
|
||||
}
|
||||
C 50600 45600 1 0 0 npn-2.sym
|
||||
{
|
||||
T 51200 46100 5 10 0 0 0 0 1
|
||||
device=NPN_TRANSISTOR
|
||||
T 51200 46100 5 10 1 1 0 0 1
|
||||
refdes=Q1
|
||||
}
|
||||
N 51100 46600 51600 46600 4
|
||||
C 49500 46000 1 0 0 resistor-2.sym
|
||||
{
|
||||
T 49900 46350 5 10 0 0 0 0 1
|
||||
device=RESISTOR
|
||||
T 49700 46300 5 10 1 1 0 0 1
|
||||
refdes=R3
|
||||
}
|
||||
N 50400 46100 50600 46100 4
|
||||
B 46300 45400 1300 1500 3 0 0 0 -1 -1 0 -1 -1 -1 -1 -1
|
||||
T 46700 46200 9 10 1 0 0 0 1
|
||||
NE555
|
||||
P 47800 46100 47600 46100 1 0 0
|
||||
{
|
||||
T 47800 46100 5 10 0 0 0 0 1
|
||||
pintype=unknown
|
||||
T 47695 46145 5 10 1 1 0 0 1
|
||||
pinnumber=3
|
||||
T 47800 46100 5 10 0 0 0 0 1
|
||||
pinseq=0
|
||||
}
|
||||
N 47800 46100 49500 46100 4
|
||||
N 51100 44300 51100 45600 4
|
||||
P 46600 47100 46600 46900 1 0 0
|
||||
{
|
||||
T 46600 47100 5 10 0 0 180 0 1
|
||||
pintype=unknown
|
||||
T 46505 47150 5 10 1 1 180 0 1
|
||||
pinnumber=8
|
||||
T 46600 47100 5 10 0 0 180 0 1
|
||||
pinseq=0
|
||||
}
|
||||
P 47300 47100 47300 46900 1 0 0
|
||||
{
|
||||
T 47300 47100 5 10 0 0 180 0 1
|
||||
pintype=unknown
|
||||
T 47205 47150 5 10 1 1 180 0 1
|
||||
pinnumber=4
|
||||
T 47300 47100 5 10 0 0 180 0 1
|
||||
pinseq=0
|
||||
}
|
||||
P 46600 45200 46600 45400 1 0 0
|
||||
{
|
||||
T 46600 45200 5 10 0 0 0 0 1
|
||||
pintype=unknown
|
||||
T 46395 45350 5 10 1 1 180 6 1
|
||||
pinnumber=1
|
||||
T 46600 45200 5 10 0 0 0 0 1
|
||||
pinseq=0
|
||||
}
|
||||
P 47300 45200 47300 45400 1 0 0
|
||||
{
|
||||
T 47300 45200 5 10 0 0 0 0 1
|
||||
pintype=unknown
|
||||
T 47095 45350 5 10 1 1 180 6 1
|
||||
pinnumber=5
|
||||
T 47300 45200 5 10 0 0 0 0 1
|
||||
pinseq=0
|
||||
}
|
||||
P 46100 46600 46300 46600 1 0 0
|
||||
{
|
||||
T 46100 46600 5 10 0 0 270 0 1
|
||||
pintype=unknown
|
||||
T 46205 46645 5 10 1 1 0 6 1
|
||||
pinnumber=7
|
||||
T 46100 46600 5 10 0 0 270 0 1
|
||||
pinseq=0
|
||||
}
|
||||
P 46100 46100 46300 46100 1 0 0
|
||||
{
|
||||
T 46100 46100 5 10 0 0 270 0 1
|
||||
pintype=unknown
|
||||
T 46205 46145 5 10 1 1 0 6 1
|
||||
pinnumber=6
|
||||
T 46100 46100 5 10 0 0 270 0 1
|
||||
pinseq=0
|
||||
}
|
||||
P 46100 45700 46300 45700 1 0 0
|
||||
{
|
||||
T 46100 45700 5 10 0 0 270 0 1
|
||||
pintype=unknown
|
||||
T 46205 45745 5 10 1 1 0 6 1
|
||||
pinnumber=2
|
||||
T 46100 45700 5 10 0 0 270 0 1
|
||||
pinseq=0
|
||||
}
|
||||
N 51600 47800 43500 47800 4
|
||||
N 46600 47100 46600 47800 4
|
||||
N 47300 47100 47300 47800 4
|
||||
N 43500 44300 53100 44300 4
|
||||
N 53100 46600 53100 44300 4
|
||||
C 47500 44300 1 90 0 capacitor-1.sym
|
||||
{
|
||||
T 46800 44500 5 10 0 0 90 0 1
|
||||
device=CAPACITOR
|
||||
T 47700 45000 5 10 1 1 180 0 1
|
||||
refdes=C2
|
||||
T 46600 44500 5 10 0 0 90 0 1
|
||||
symversion=0.1
|
||||
}
|
||||
N 46600 45200 46600 44300 4
|
||||
T 46700 46500 9 10 1 0 0 0 1
|
||||
IC1
|
||||
C 44800 46900 1 90 0 resistor-2.sym
|
||||
{
|
||||
T 44450 47300 5 10 0 0 90 0 1
|
||||
device=RESISTOR
|
||||
T 45200 47300 5 10 1 1 180 0 1
|
||||
refdes=R1
|
||||
}
|
||||
C 44800 45700 1 90 0 resistor-2.sym
|
||||
{
|
||||
T 44450 46100 5 10 0 0 90 0 1
|
||||
device=RESISTOR
|
||||
T 45200 46000 5 10 1 1 180 0 1
|
||||
refdes=R2
|
||||
}
|
||||
C 44500 45400 1 270 0 capacitor-2.sym
|
||||
{
|
||||
T 45200 45200 5 10 0 0 270 0 1
|
||||
device=POLARIZED_CAPACITOR
|
||||
T 45000 45100 5 10 1 1 0 0 1
|
||||
refdes=C1
|
||||
T 45400 45200 5 10 0 0 270 0 1
|
||||
symversion=0.1
|
||||
}
|
||||
N 44700 46900 44700 46600 4
|
||||
N 44700 45700 44700 45400 4
|
||||
N 44700 44500 44700 44300 4
|
||||
C 43700 46600 1 270 0 diode-1.sym
|
||||
{
|
||||
T 44300 46200 5 10 0 0 270 0 1
|
||||
device=DIODE
|
||||
T 44200 45900 5 10 1 1 0 0 1
|
||||
refdes=D1
|
||||
}
|
||||
N 46100 46100 45800 46100 4
|
||||
N 43900 45700 46100 45700 4
|
||||
N 45800 45700 45800 46100 4
|
||||
N 43900 46600 46100 46600 4
|
||||
C 43400 44000 1 0 0 gnd-1.sym
|
||||
C 53200 47700 1 0 0 out-1.sym
|
||||
{
|
||||
T 53200 48000 5 10 0 0 0 0 1
|
||||
device=OUTPUT
|
||||
T 53200 48000 5 10 1 1 0 0 1
|
||||
refdes=~100V
|
||||
}
|
||||
N 53100 47800 53200 47800 4
|
||||
C 43600 47800 1 90 0 out-1.sym
|
||||
{
|
||||
T 43300 47800 5 10 0 0 90 0 1
|
||||
device=OUTPUT
|
||||
T 43300 48200 5 10 1 1 180 0 1
|
||||
refdes=+5V
|
||||
}
|
||||
T 50500 40900 9 20 1 0 0 0 1
|
||||
5V EL-Foil supply
|
||||
T 54000 40400 9 10 1 0 0 0 1
|
||||
1.0
|
||||
T 54900 40100 9 10 1 0 0 0 2
|
||||
Sebastian Schumb
|
||||
(LongHairedHacker)
|
||||
T 50000 40400 9 10 1 0 0 0 1
|
||||
el.schem
|
||||
T 50200 40100 9 10 1 0 0 0 1
|
||||
1
|
||||
T 52000 40100 9 10 1 0 0 0 1
|
||||
1
|
||||
T 41000 41700 9 10 1 0 0 0 1
|
||||
R1, R2 308 Ohm
|
||||
T 41000 41400 9 10 1 0 0 0 1
|
||||
R3 1k Ohm
|
||||
T 43400 42000 9 10 1 0 0 0 1
|
||||
Q1 TIP42
|
||||
T 43400 41700 9 10 1 0 0 0 1
|
||||
T1 1:20 ( 12V : 240V )
|
||||
T 43400 41400 9 10 1 0 0 0 1
|
||||
C1 4,7uF
|
||||
T 41000 41100 9 10 1 0 0 0 1
|
||||
C2 100nF
|
||||
T 41000 42000 9 10 1 0 0 0 1
|
||||
IC1 NE555
|
||||
T 41000 42300 9 15 1 0 0 0 1
|
||||
Parts :
|
||||
B 40800 40800 5500 1900 3 0 0 0 -1 -1 0 -1 -1 -1 -1 -1
|
Binary file not shown.
After Width: | Height: | Size: 334 KiB |
Binary file not shown.
After Width: | Height: | Size: 375 KiB |
Binary file not shown.
After Width: | Height: | Size: 368 KiB |
|
@ -273,7 +273,7 @@
|
|||
<a name="l00259"></a>00259
|
||||
<a name="l00260"></a>00260
|
||||
</pre></div></div>
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Tue May 26 15:32:24 2009 for glcd by
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jun 1 14:55:44 2009 for glcd by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
||||
</body>
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
</div>
|
||||
</div><p>
|
||||
</div>
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Tue May 26 15:32:24 2009 for glcd by
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jun 1 14:55:44 2009 for glcd by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
||||
</body>
|
||||
|
|
|
@ -270,7 +270,7 @@
|
|||
<a name="l00256"></a>00256 0x00,0x00,0x3C,0x3C,0x3C,0x3C,0x00,0x00, <span class="comment">// 0xFE</span>
|
||||
<a name="l00257"></a>00257 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }; <span class="comment">// 0xFF</span>
|
||||
</pre></div></div>
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Tue May 26 15:32:24 2009 for glcd by
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jun 1 14:55:44 2009 for glcd by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
||||
</body>
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
</div>
|
||||
</div><p>
|
||||
</div>
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Tue May 26 15:32:24 2009 for glcd by
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jun 1 14:55:44 2009 for glcd by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
||||
</body>
|
||||
|
|
|
@ -0,0 +1,50 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
||||
<title>glcd: include/adc.c File Reference</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
<!-- Generated by Doxygen 1.5.5 -->
|
||||
<div class="navigation" id="top">
|
||||
<div class="tabs">
|
||||
<ul>
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<h1>include/adc.c File Reference</h1><code>#include "<a class="el" href="adc_8h-source.html">adc.h</a>"</code><br>
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr><td></td></tr>
|
||||
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">uint16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="adc_8c.html#812736491523e54e6bf10a142821e7fe">readADC</a> (uint8_t channel)</td></tr>
|
||||
|
||||
</table>
|
||||
<hr><h2>Function Documentation</h2>
|
||||
<a class="anchor" name="812736491523e54e6bf10a142821e7fe"></a><!-- doxytag: member="adc.c::readADC" ref="812736491523e54e6bf10a142821e7fe" args="(uint8_t channel)" -->
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">uint16_t readADC </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">uint8_t </td>
|
||||
<td class="paramname"> <em>channel</em> </td>
|
||||
<td> ) </td>
|
||||
<td width="100%"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memdoc">
|
||||
|
||||
<p>
|
||||
|
||||
</div>
|
||||
</div><p>
|
||||
</div>
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jun 1 14:55:44 2009 for glcd by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,31 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
||||
<title>glcd: include/adc.h Source File</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
<!-- Generated by Doxygen 1.5.5 -->
|
||||
<div class="navigation" id="top">
|
||||
<div class="tabs">
|
||||
<ul>
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<h1>include/adc.h</h1><a href="adc_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef ADC_H</span>
|
||||
<a name="l00002"></a><a class="code" href="adc_8h.html#7d45c6fd49da9ab97ff07bff1c3ddee5">00002</a> <span class="preprocessor"></span><span class="preprocessor">#define ADC_H ADC_H</span>
|
||||
<a name="l00003"></a>00003 <span class="preprocessor"></span>
|
||||
<a name="l00004"></a>00004 <span class="preprocessor">#include <avr/io.h></span>
|
||||
<a name="l00005"></a>00005 <span class="preprocessor">#include <util/delay.h></span>
|
||||
<a name="l00006"></a>00006 <span class="preprocessor">#include <inttypes.h></span>
|
||||
<a name="l00007"></a>00007
|
||||
<a name="l00008"></a>00008
|
||||
<a name="l00009"></a>00009 uint16_t <a class="code" href="adc_8c.html#812736491523e54e6bf10a142821e7fe">readADC</a>(uint8_t channel);
|
||||
<a name="l00010"></a>00010
|
||||
<a name="l00011"></a>00011 <span class="preprocessor">#endif </span><span class="comment">/* ADC_H */</span>
|
||||
</pre></div></div>
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jun 1 14:55:44 2009 for glcd by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,73 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
||||
<title>glcd: include/adc.h File Reference</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
<!-- Generated by Doxygen 1.5.5 -->
|
||||
<div class="navigation" id="top">
|
||||
<div class="tabs">
|
||||
<ul>
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<h1>include/adc.h File Reference</h1><code>#include <avr/io.h></code><br>
|
||||
<code>#include <util/delay.h></code><br>
|
||||
<code>#include <inttypes.h></code><br>
|
||||
|
||||
<p>
|
||||
<a href="adc_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr><td></td></tr>
|
||||
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="adc_8h.html#7d45c6fd49da9ab97ff07bff1c3ddee5">ADC_H</a> ADC_H</td></tr>
|
||||
|
||||
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">uint16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="adc_8h.html#812736491523e54e6bf10a142821e7fe">readADC</a> (uint8_t channel)</td></tr>
|
||||
|
||||
</table>
|
||||
<hr><h2>Define Documentation</h2>
|
||||
<a class="anchor" name="7d45c6fd49da9ab97ff07bff1c3ddee5"></a><!-- doxytag: member="adc.h::ADC_H" ref="7d45c6fd49da9ab97ff07bff1c3ddee5" args="" -->
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">#define ADC_H ADC_H </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memdoc">
|
||||
|
||||
<p>
|
||||
|
||||
</div>
|
||||
</div><p>
|
||||
<hr><h2>Function Documentation</h2>
|
||||
<a class="anchor" name="812736491523e54e6bf10a142821e7fe"></a><!-- doxytag: member="adc.h::readADC" ref="812736491523e54e6bf10a142821e7fe" args="(uint8_t channel)" -->
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">uint16_t readADC </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">uint8_t </td>
|
||||
<td class="paramname"> <em>channel</em> </td>
|
||||
<td> ) </td>
|
||||
<td width="100%"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memdoc">
|
||||
|
||||
<p>
|
||||
|
||||
</div>
|
||||
</div><p>
|
||||
</div>
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jun 1 14:55:44 2009 for glcd by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
||||
</body>
|
||||
</html>
|
|
@ -49,7 +49,7 @@
|
|||
<a name="l00035"></a>00035 0x00,0x00,0x00,0x00};
|
||||
<a name="l00036"></a>00036
|
||||
</pre></div></div>
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Tue May 26 15:32:24 2009 for glcd by
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jun 1 14:55:44 2009 for glcd by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
||||
</body>
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
</div>
|
||||
</div><p>
|
||||
</div>
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Tue May 26 15:32:24 2009 for glcd by
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jun 1 14:55:44 2009 for glcd by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
||||
</body>
|
||||
|
|
|
@ -25,11 +25,17 @@
|
|||
<tr><td class="indexkey"><a class="el" href="8x8__horizontal__LSB__1_8h.html">8x8_horizontal_LSB_1.h</a> <a href="8x8__horizontal__LSB__1_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr>
|
||||
<tr><td class="indexkey"><a class="el" href="button_8h.html">button.h</a> <a href="button_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr>
|
||||
<tr><td class="indexkey"><a class="el" href="main_8c.html">main.c</a></td><td class="indexvalue"></td></tr>
|
||||
<tr><td class="indexkey"><a class="el" href="writing__demo_8c.html">writing_demo.c</a></td><td class="indexvalue"></td></tr>
|
||||
<tr><td class="indexkey"><a class="el" href="writing__demo_8h.html">writing_demo.h</a> <a href="writing__demo_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr>
|
||||
<tr><td class="indexkey">include/<a class="el" href="adc_8c.html">adc.c</a></td><td class="indexvalue"></td></tr>
|
||||
<tr><td class="indexkey">include/<a class="el" href="adc_8h.html">adc.h</a> <a href="adc_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr>
|
||||
<tr><td class="indexkey">include/<a class="el" href="lc7981_8c.html">lc7981.c</a></td><td class="indexvalue"></td></tr>
|
||||
<tr><td class="indexkey">include/<a class="el" href="lc7981_8h.html">lc7981.h</a> <a href="lc7981_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr>
|
||||
<tr><td class="indexkey">include/<a class="el" href="touch_8c.html">touch.c</a></td><td class="indexvalue"></td></tr>
|
||||
<tr><td class="indexkey">include/<a class="el" href="touch_8h.html">touch.h</a> <a href="touch_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr>
|
||||
</table>
|
||||
</div>
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Tue May 26 15:32:24 2009 for glcd by
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jun 1 14:55:44 2009 for glcd by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
||||
</body>
|
||||
|
|
|
@ -28,9 +28,13 @@
|
|||
</div>
|
||||
<div class="tabs">
|
||||
<ul>
|
||||
<li><a href="#index_a"><span>a</span></a></li>
|
||||
<li><a href="#index_l"><span>l</span></a></li>
|
||||
<li><a href="#index_m"><span>m</span></a></li>
|
||||
<li><a href="#index_p"><span>p</span></a></li>
|
||||
<li><a href="#index_r"><span>r</span></a></li>
|
||||
<li><a href="#index_t"><span>t</span></a></li>
|
||||
<li><a href="#index_w"><span>w</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
@ -39,6 +43,10 @@
|
|||
<div class="contents">
|
||||
Here is a list of all functions, variables, defines, enums, and typedefs with links to the files they belong to:
|
||||
<p>
|
||||
<h3><a class="anchor" name="index_a">- a -</a></h3><ul>
|
||||
<li>ADC_H
|
||||
: <a class="el" href="adc_8h.html#7d45c6fd49da9ab97ff07bff1c3ddee5">adc.h</a>
|
||||
</ul>
|
||||
<h3><a class="anchor" name="index_l">- l -</a></h3><ul>
|
||||
<li>LC7981_H_
|
||||
: <a class="el" href="lc7981_8h.html#e6ff861bd55f4dc46f25f5f6abfca15f">lc7981.h</a>
|
||||
|
@ -134,8 +142,49 @@ Here is a list of all functions, variables, defines, enums, and typedefs with li
|
|||
, <a class="el" href="12x16__horizontal__LSB__1_8h.html#f0367e5a8f2e1931348909f7875e3236">12x16_horizontal_LSB_1.h</a>
|
||||
, <a class="el" href="button_8h.html#1ca6393a353d3dde5511786a4d7cc139">button.h</a>
|
||||
</ul>
|
||||
<h3><a class="anchor" name="index_r">- r -</a></h3><ul>
|
||||
<li>readADC()
|
||||
: <a class="el" href="adc_8c.html#812736491523e54e6bf10a142821e7fe">adc.c</a>
|
||||
, <a class="el" href="adc_8h.html#812736491523e54e6bf10a142821e7fe">adc.h</a>
|
||||
</ul>
|
||||
<h3><a class="anchor" name="index_t">- t -</a></h3><ul>
|
||||
<li>TOUCH_DDR
|
||||
: <a class="el" href="touch_8h.html#7df7927e1c0467a8e462b483a7da62c7">touch.h</a>
|
||||
<li>TOUCH_H_
|
||||
: <a class="el" href="touch_8h.html#c7d5ec105ddb1a3240d9f8b1dc259974">touch.h</a>
|
||||
<li>touch_is_pressed()
|
||||
: <a class="el" href="touch_8h.html#215947ded979abf11d490536508ecafc">touch.h</a>
|
||||
, <a class="el" href="touch_8c.html#215947ded979abf11d490536508ecafc">touch.c</a>
|
||||
<li>TOUCH_PIN
|
||||
: <a class="el" href="touch_8h.html#eccf4c5be8d2e85e37d07d834673ce29">touch.h</a>
|
||||
<li>TOUCH_PORT
|
||||
: <a class="el" href="touch_8h.html#2ea8f9960f5f713995fd0e1304a33831">touch.h</a>
|
||||
<li>TOUCH_PRESSED_LEVEL
|
||||
: <a class="el" href="touch_8h.html#7f34b02cb67c42f6d7b862a061496da7">touch.h</a>
|
||||
<li>touch_readX()
|
||||
: <a class="el" href="touch_8c.html#dbea78d45cc89e43f7510ebf6eb01ac0">touch.c</a>
|
||||
, <a class="el" href="touch_8h.html#dbea78d45cc89e43f7510ebf6eb01ac0">touch.h</a>
|
||||
<li>touch_readY()
|
||||
: <a class="el" href="touch_8c.html#cdce8a6997f2d00dbfcb61be2e67e886">touch.c</a>
|
||||
, <a class="el" href="touch_8h.html#cdce8a6997f2d00dbfcb61be2e67e886">touch.h</a>
|
||||
<li>TOUCH_X1
|
||||
: <a class="el" href="touch_8h.html#68fb42f50f3eb1acfc00869488260dd8">touch.h</a>
|
||||
<li>TOUCH_X2
|
||||
: <a class="el" href="touch_8h.html#f14aca3b903c90c70433d41fdb840a93">touch.h</a>
|
||||
<li>TOUCH_Y1
|
||||
: <a class="el" href="touch_8h.html#2168431fed386ed4cfec1127b055652a">touch.h</a>
|
||||
<li>TOUCH_Y2
|
||||
: <a class="el" href="touch_8h.html#347b052e8cb9e548e2aaebbb9d8ed405">touch.h</a>
|
||||
</ul>
|
||||
<h3><a class="anchor" name="index_w">- w -</a></h3><ul>
|
||||
<li>WIRTING_DEMO_H_
|
||||
: <a class="el" href="writing__demo_8h.html#69a65c026c8b8e97c7b6f99de76ab00d">writing_demo.h</a>
|
||||
<li>writing_demo()
|
||||
: <a class="el" href="writing__demo_8h.html#bdd925f1d9c8a09b9950c059c51e02d1">writing_demo.h</a>
|
||||
, <a class="el" href="writing__demo_8c.html#bdd925f1d9c8a09b9950c059c51e02d1">writing_demo.c</a>
|
||||
</ul>
|
||||
</div>
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Tue May 26 15:32:24 2009 for glcd by
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jun 1 14:55:44 2009 for glcd by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
||||
</body>
|
||||
|
|
|
@ -26,11 +26,26 @@
|
|||
<li class="current"><a href="globals_defs.html"><span>Defines</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="tabs">
|
||||
<ul>
|
||||
<li><a href="#index_a"><span>a</span></a></li>
|
||||
<li><a href="#index_l"><span>l</span></a></li>
|
||||
<li><a href="#index_p"><span>p</span></a></li>
|
||||
<li><a href="#index_t"><span>t</span></a></li>
|
||||
<li><a href="#index_w"><span>w</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
</div>
|
||||
<div class="contents">
|
||||
|
||||
<p>
|
||||
<ul>
|
||||
<h3><a class="anchor" name="index_a">- a -</a></h3><ul>
|
||||
<li>ADC_H
|
||||
: <a class="el" href="adc_8h.html#7d45c6fd49da9ab97ff07bff1c3ddee5">adc.h</a>
|
||||
</ul>
|
||||
<h3><a class="anchor" name="index_l">- l -</a></h3><ul>
|
||||
<li>LC7981_H_
|
||||
: <a class="el" href="lc7981_8h.html#e6ff861bd55f4dc46f25f5f6abfca15f">lc7981.h</a>
|
||||
<li>LCD_CRTL_DDR
|
||||
|
@ -71,13 +86,39 @@
|
|||
: <a class="el" href="lc7981_8h.html#82f0a630f3c41b5233f2ceb07c7dd736">lc7981.h</a>
|
||||
<li>LCD_TEXT_LINES
|
||||
: <a class="el" href="lc7981_8h.html#720ef60606ac38ca3a5ab96a9c2b8168">lc7981.h</a>
|
||||
</ul>
|
||||
<h3><a class="anchor" name="index_p">- p -</a></h3><ul>
|
||||
<li>PIXEL_OFF
|
||||
: <a class="el" href="lc7981_8h.html#cda2f1b1cf6310700d0d91643c40e068">lc7981.h</a>
|
||||
<li>PIXEL_ON
|
||||
: <a class="el" href="lc7981_8h.html#eb2d212a26da4a5a4d3231b2773023e5">lc7981.h</a>
|
||||
</ul>
|
||||
<h3><a class="anchor" name="index_t">- t -</a></h3><ul>
|
||||
<li>TOUCH_DDR
|
||||
: <a class="el" href="touch_8h.html#7df7927e1c0467a8e462b483a7da62c7">touch.h</a>
|
||||
<li>TOUCH_H_
|
||||
: <a class="el" href="touch_8h.html#c7d5ec105ddb1a3240d9f8b1dc259974">touch.h</a>
|
||||
<li>TOUCH_PIN
|
||||
: <a class="el" href="touch_8h.html#eccf4c5be8d2e85e37d07d834673ce29">touch.h</a>
|
||||
<li>TOUCH_PORT
|
||||
: <a class="el" href="touch_8h.html#2ea8f9960f5f713995fd0e1304a33831">touch.h</a>
|
||||
<li>TOUCH_PRESSED_LEVEL
|
||||
: <a class="el" href="touch_8h.html#7f34b02cb67c42f6d7b862a061496da7">touch.h</a>
|
||||
<li>TOUCH_X1
|
||||
: <a class="el" href="touch_8h.html#68fb42f50f3eb1acfc00869488260dd8">touch.h</a>
|
||||
<li>TOUCH_X2
|
||||
: <a class="el" href="touch_8h.html#f14aca3b903c90c70433d41fdb840a93">touch.h</a>
|
||||
<li>TOUCH_Y1
|
||||
: <a class="el" href="touch_8h.html#2168431fed386ed4cfec1127b055652a">touch.h</a>
|
||||
<li>TOUCH_Y2
|
||||
: <a class="el" href="touch_8h.html#347b052e8cb9e548e2aaebbb9d8ed405">touch.h</a>
|
||||
</ul>
|
||||
<h3><a class="anchor" name="index_w">- w -</a></h3><ul>
|
||||
<li>WIRTING_DEMO_H_
|
||||
: <a class="el" href="writing__demo_8h.html#69a65c026c8b8e97c7b6f99de76ab00d">writing_demo.h</a>
|
||||
</ul>
|
||||
</div>
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Tue May 26 15:32:24 2009 for glcd by
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jun 1 14:55:44 2009 for glcd by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
||||
</body>
|
||||
|
|
|
@ -26,11 +26,22 @@
|
|||
<li><a href="globals_defs.html"><span>Defines</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="tabs">
|
||||
<ul>
|
||||
<li><a href="#index_l"><span>l</span></a></li>
|
||||
<li><a href="#index_m"><span>m</span></a></li>
|
||||
<li><a href="#index_r"><span>r</span></a></li>
|
||||
<li><a href="#index_t"><span>t</span></a></li>
|
||||
<li><a href="#index_w"><span>w</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
</div>
|
||||
<div class="contents">
|
||||
|
||||
<p>
|
||||
<ul>
|
||||
<h3><a class="anchor" name="index_l">- l -</a></h3><ul>
|
||||
<li>lcd_clear()
|
||||
: <a class="el" href="lc7981_8c.html#35c08b1fa742e650f4873939707b893b">lc7981.c</a>
|
||||
, <a class="el" href="lc7981_8h.html#35c08b1fa742e650f4873939707b893b">lc7981.h</a>
|
||||
|
@ -66,11 +77,34 @@
|
|||
<li>lcd_write_text()
|
||||
: <a class="el" href="lc7981_8h.html#30251238a49999658455fdb0233757fb">lc7981.h</a>
|
||||
, <a class="el" href="lc7981_8c.html#30251238a49999658455fdb0233757fb">lc7981.c</a>
|
||||
</ul>
|
||||
<h3><a class="anchor" name="index_m">- m -</a></h3><ul>
|
||||
<li>main()
|
||||
: <a class="el" href="main_8c.html#e66f6b31b5ad750f1fe042a706a4e3d4">main.c</a>
|
||||
</ul>
|
||||
<h3><a class="anchor" name="index_r">- r -</a></h3><ul>
|
||||
<li>readADC()
|
||||
: <a class="el" href="adc_8c.html#812736491523e54e6bf10a142821e7fe">adc.c</a>
|
||||
, <a class="el" href="adc_8h.html#812736491523e54e6bf10a142821e7fe">adc.h</a>
|
||||
</ul>
|
||||
<h3><a class="anchor" name="index_t">- t -</a></h3><ul>
|
||||
<li>touch_is_pressed()
|
||||
: <a class="el" href="touch_8c.html#215947ded979abf11d490536508ecafc">touch.c</a>
|
||||
, <a class="el" href="touch_8h.html#215947ded979abf11d490536508ecafc">touch.h</a>
|
||||
<li>touch_readX()
|
||||
: <a class="el" href="touch_8h.html#dbea78d45cc89e43f7510ebf6eb01ac0">touch.h</a>
|
||||
, <a class="el" href="touch_8c.html#dbea78d45cc89e43f7510ebf6eb01ac0">touch.c</a>
|
||||
<li>touch_readY()
|
||||
: <a class="el" href="touch_8h.html#cdce8a6997f2d00dbfcb61be2e67e886">touch.h</a>
|
||||
, <a class="el" href="touch_8c.html#cdce8a6997f2d00dbfcb61be2e67e886">touch.c</a>
|
||||
</ul>
|
||||
<h3><a class="anchor" name="index_w">- w -</a></h3><ul>
|
||||
<li>writing_demo()
|
||||
: <a class="el" href="writing__demo_8c.html#bdd925f1d9c8a09b9950c059c51e02d1">writing_demo.c</a>
|
||||
, <a class="el" href="writing__demo_8h.html#bdd925f1d9c8a09b9950c059c51e02d1">writing_demo.h</a>
|
||||
</ul>
|
||||
</div>
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Tue May 26 15:32:24 2009 for glcd by
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jun 1 14:55:44 2009 for glcd by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
||||
</body>
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
, <a class="el" href="8x8__horizontal__LSB__1_8h.html#ba6ccc96f4d96e2e7f9062a7a72b4766">8x8_horizontal_LSB_1.h</a>
|
||||
</ul>
|
||||
</div>
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Tue May 26 15:32:24 2009 for glcd by
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jun 1 14:55:44 2009 for glcd by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
||||
</body>
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
<h1>glcd Documentation</h1>
|
||||
<p>
|
||||
<h3 align="center">0.1beta </h3></div>
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Tue May 26 15:32:24 2009 for glcd by
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jun 1 14:55:44 2009 for glcd by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
||||
</body>
|
||||
|
|
|
@ -554,7 +554,7 @@ Currently used mode, can be text or graphic.
|
|||
</div>
|
||||
</div><p>
|
||||
</div>
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Tue May 26 15:32:24 2009 for glcd by
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jun 1 14:55:44 2009 for glcd by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
||||
</body>
|
||||
|
|
|
@ -49,11 +49,11 @@
|
|||
<a name="l00035"></a>00035 <span class="preprocessor">#include <util/delay.h></span>
|
||||
<a name="l00036"></a>00036 <span class="preprocessor">#include <avr/pgmspace.h></span>
|
||||
<a name="l00037"></a>00037
|
||||
<a name="l00038"></a><a class="code" href="lc7981_8h.html#8e945df7ca614325cafa08258e82a63c">00038</a> <span class="preprocessor">#define LCD_CTRL PORTC </span>
|
||||
<a name="l00039"></a><a class="code" href="lc7981_8h.html#4b6c8400da9a1ca3d4d83f3ef1f9c34a">00039</a> <span class="preprocessor">#define LCD_CRTL_DDR DDRC </span>
|
||||
<a name="l00040"></a><a class="code" href="lc7981_8h.html#4781e073871c6f27f89b9463ad3a4ed1">00040</a> <span class="preprocessor">#define LCD_RS PC4 </span>
|
||||
<a name="l00041"></a><a class="code" href="lc7981_8h.html#26089a10ddd59a0dc7283c19ccc02533">00041</a> <span class="preprocessor">#define LCD_RW PC2 </span>
|
||||
<a name="l00042"></a><a class="code" href="lc7981_8h.html#1640ffbc0d8ec0f7edb04a2b93918072">00042</a> <span class="preprocessor">#define LCD_EN PC0 </span>
|
||||
<a name="l00038"></a><a class="code" href="lc7981_8h.html#8e945df7ca614325cafa08258e82a63c">00038</a> <span class="preprocessor">#define LCD_CTRL PORTA </span>
|
||||
<a name="l00039"></a><a class="code" href="lc7981_8h.html#4b6c8400da9a1ca3d4d83f3ef1f9c34a">00039</a> <span class="preprocessor">#define LCD_CRTL_DDR DDRA </span>
|
||||
<a name="l00040"></a><a class="code" href="lc7981_8h.html#4781e073871c6f27f89b9463ad3a4ed1">00040</a> <span class="preprocessor">#define LCD_RS PA4 </span>
|
||||
<a name="l00041"></a><a class="code" href="lc7981_8h.html#26089a10ddd59a0dc7283c19ccc02533">00041</a> <span class="preprocessor">#define LCD_RW PA2 </span>
|
||||
<a name="l00042"></a><a class="code" href="lc7981_8h.html#1640ffbc0d8ec0f7edb04a2b93918072">00042</a> <span class="preprocessor">#define LCD_EN PA0 </span>
|
||||
<a name="l00043"></a>00043 <span class="preprocessor"></span>
|
||||
<a name="l00044"></a>00044 <span class="preprocessor"></span>
|
||||
<a name="l00045"></a>00045
|
||||
|
@ -100,7 +100,7 @@
|
|||
<a name="l00086"></a>00086
|
||||
<a name="l00087"></a>00087 <span class="preprocessor">#endif </span><span class="comment">/* LC7981_H_ */</span>
|
||||
</pre></div></div>
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Tue May 26 15:32:24 2009 for glcd by
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jun 1 14:55:44 2009 for glcd by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
||||
</body>
|
||||
|
|
|
@ -25,19 +25,19 @@
|
|||
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lc7981_8h.html#e6ff861bd55f4dc46f25f5f6abfca15f">LC7981_H_</a> LC7981_H_</td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">protects this file from beeing double included <a href="#e6ff861bd55f4dc46f25f5f6abfca15f"></a><br></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lc7981_8h.html#8e945df7ca614325cafa08258e82a63c">LCD_CTRL</a> PORTC</td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lc7981_8h.html#8e945df7ca614325cafa08258e82a63c">LCD_CTRL</a> PORTA</td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Port used for control signals. <a href="#8e945df7ca614325cafa08258e82a63c"></a><br></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lc7981_8h.html#4b6c8400da9a1ca3d4d83f3ef1f9c34a">LCD_CRTL_DDR</a> DDRC</td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lc7981_8h.html#4b6c8400da9a1ca3d4d83f3ef1f9c34a">LCD_CRTL_DDR</a> DDRA</td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Data-Direction-Register for the control signals. <a href="#4b6c8400da9a1ca3d4d83f3ef1f9c34a"></a><br></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lc7981_8h.html#4781e073871c6f27f89b9463ad3a4ed1">LCD_RS</a> PC4</td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lc7981_8h.html#4781e073871c6f27f89b9463ad3a4ed1">LCD_RS</a> PA4</td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Register-Select Pin of the Display. <a href="#4781e073871c6f27f89b9463ad3a4ed1"></a><br></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lc7981_8h.html#26089a10ddd59a0dc7283c19ccc02533">LCD_RW</a> PC2</td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lc7981_8h.html#26089a10ddd59a0dc7283c19ccc02533">LCD_RW</a> PA2</td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Read-Write-select Pin. <a href="#26089a10ddd59a0dc7283c19ccc02533"></a><br></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lc7981_8h.html#1640ffbc0d8ec0f7edb04a2b93918072">LCD_EN</a> PC0</td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lc7981_8h.html#1640ffbc0d8ec0f7edb04a2b93918072">LCD_EN</a> PA0</td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">Strobe Pin. <a href="#1640ffbc0d8ec0f7edb04a2b93918072"></a><br></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="lc7981_8h.html#25e9d818788f36ed74d7c4579f87f2a6">LCD_DATA</a> PORTD</td></tr>
|
||||
|
@ -143,7 +143,7 @@ protects this file from beeing double included
|
|||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">#define LCD_CRTL_DDR DDRC </td>
|
||||
<td class="memname">#define LCD_CRTL_DDR DDRA </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
@ -160,7 +160,7 @@ Data-Direction-Register for the control signals.
|
|||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">#define LCD_CTRL PORTC </td>
|
||||
<td class="memname">#define LCD_CTRL PORTA </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
@ -211,7 +211,7 @@ Data-Direction-Register for Data.
|
|||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">#define LCD_EN PC0 </td>
|
||||
<td class="memname">#define LCD_EN PA0 </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
@ -323,7 +323,7 @@ Horizontal display size in pixels.
|
|||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">#define LCD_RS PC4 </td>
|
||||
<td class="memname">#define LCD_RS PA4 </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
@ -384,7 +384,7 @@ Set the Register-Select pin low.
|
|||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">#define LCD_RW PC2 </td>
|
||||
<td class="memname">#define LCD_RW PA2 </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
@ -933,7 +933,7 @@ Writes a command and a data byte to the lcd.
|
|||
</div>
|
||||
</div><p>
|
||||
</div>
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Tue May 26 15:32:24 2009 for glcd by
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jun 1 14:55:44 2009 for glcd by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
||||
</body>
|
||||
|
|
|
@ -17,9 +17,11 @@
|
|||
<h1>main.c File Reference</h1><code>#include <avr/io.h></code><br>
|
||||
<code>#include <stdlib.h></code><br>
|
||||
<code>#include "<a class="el" href="lc7981_8h-source.html">include/lc7981.h</a>"</code><br>
|
||||
<code>#include "<a class="el" href="adc_8h-source.html">include/adc.h</a>"</code><br>
|
||||
<code>#include "<a class="el" href="button_8h-source.html">button.h</a>"</code><br>
|
||||
<code>#include "<a class="el" href="12x16__horizontal__LSB__1_8h-source.html">12x16_horizontal_LSB_1.h</a>"</code><br>
|
||||
<code>#include "<a class="el" href="8x8__horizontal__LSB__1_8h-source.html">8x8_horizontal_LSB_1.h</a>"</code><br>
|
||||
<code>#include "<a class="el" href="touch_8h-source.html">include/touch.h</a>"</code><br>
|
||||
<code>#include "<a class="el" href="writing__demo_8h-source.html">writing_demo.h</a>"</code><br>
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr><td></td></tr>
|
||||
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
|
||||
|
@ -47,7 +49,7 @@
|
|||
</div>
|
||||
</div><p>
|
||||
</div>
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Tue May 26 15:32:24 2009 for glcd by
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jun 1 14:55:44 2009 for glcd by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
||||
</body>
|
||||
|
|
|
@ -0,0 +1,95 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
||||
<title>glcd: include/touch.c File Reference</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
<!-- Generated by Doxygen 1.5.5 -->
|
||||
<div class="navigation" id="top">
|
||||
<div class="tabs">
|
||||
<ul>
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<h1>include/touch.c File Reference</h1><code>#include "<a class="el" href="touch_8h-source.html">touch.h</a>"</code><br>
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr><td></td></tr>
|
||||
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="touch_8c.html#215947ded979abf11d490536508ecafc">touch_is_pressed</a> ()</td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">This functions set 5V to X1 and GND to Y1, the voltage at X2 is measured via the ADC. <a href="#215947ded979abf11d490536508ecafc"></a><br></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">int16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="touch_8c.html#dbea78d45cc89e43f7510ebf6eb01ac0">touch_readX</a> ()</td></tr>
|
||||
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">int16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="touch_8c.html#cdce8a6997f2d00dbfcb61be2e67e886">touch_readY</a> ()</td></tr>
|
||||
|
||||
</table>
|
||||
<hr><h2>Function Documentation</h2>
|
||||
<a class="anchor" name="215947ded979abf11d490536508ecafc"></a><!-- doxytag: member="touch.c::touch_is_pressed" ref="215947ded979abf11d490536508ecafc" args="()" -->
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">uint8_t touch_is_pressed </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"> </td>
|
||||
<td> ) </td>
|
||||
<td width="100%"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memdoc">
|
||||
|
||||
<p>
|
||||
This functions set 5V to X1 and GND to Y1, the voltage at X2 is measured via the ADC.
|
||||
<p>
|
||||
If the ADC-Value is less then TOUCH_PRESSED_LEVEL, the function will return 1. <dl class="return" compact><dt><b>Returns:</b></dt><dd>1 if pressed else 0 </dd></dl>
|
||||
|
||||
</div>
|
||||
</div><p>
|
||||
<a class="anchor" name="dbea78d45cc89e43f7510ebf6eb01ac0"></a><!-- doxytag: member="touch.c::touch_readX" ref="dbea78d45cc89e43f7510ebf6eb01ac0" args="()" -->
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">int16_t touch_readX </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"> </td>
|
||||
<td> ) </td>
|
||||
<td width="100%"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memdoc">
|
||||
|
||||
<p>
|
||||
|
||||
</div>
|
||||
</div><p>
|
||||
<a class="anchor" name="cdce8a6997f2d00dbfcb61be2e67e886"></a><!-- doxytag: member="touch.c::touch_readY" ref="cdce8a6997f2d00dbfcb61be2e67e886" args="()" -->
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">int16_t touch_readY </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"> </td>
|
||||
<td> ) </td>
|
||||
<td width="100%"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memdoc">
|
||||
|
||||
<p>
|
||||
|
||||
</div>
|
||||
</div><p>
|
||||
</div>
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jun 1 14:55:44 2009 for glcd by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,44 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
||||
<title>glcd: include/touch.h Source File</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
<!-- Generated by Doxygen 1.5.5 -->
|
||||
<div class="navigation" id="top">
|
||||
<div class="tabs">
|
||||
<ul>
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<h1>include/touch.h</h1><a href="touch_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00008"></a>00008 <span class="preprocessor">#ifndef TOUCH_H_</span>
|
||||
<a name="l00009"></a><a class="code" href="touch_8h.html#c7d5ec105ddb1a3240d9f8b1dc259974">00009</a> <span class="preprocessor"></span><span class="preprocessor">#define TOUCH_H_ TOUCH_H_</span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor"></span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor">#include "<a class="code" href="adc_8h.html">adc.h</a>"</span>
|
||||
<a name="l00012"></a>00012
|
||||
<a name="l00013"></a>00013
|
||||
<a name="l00014"></a><a class="code" href="touch_8h.html#2ea8f9960f5f713995fd0e1304a33831">00014</a> <span class="preprocessor">#define TOUCH_PORT PORTA</span>
|
||||
<a name="l00015"></a><a class="code" href="touch_8h.html#eccf4c5be8d2e85e37d07d834673ce29">00015</a> <span class="preprocessor"></span><span class="preprocessor">#define TOUCH_PIN PINA</span>
|
||||
<a name="l00016"></a><a class="code" href="touch_8h.html#7df7927e1c0467a8e462b483a7da62c7">00016</a> <span class="preprocessor"></span><span class="preprocessor">#define TOUCH_DDR DDRA</span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor"></span>
|
||||
<a name="l00018"></a><a class="code" href="touch_8h.html#68fb42f50f3eb1acfc00869488260dd8">00018</a> <span class="preprocessor">#define TOUCH_X1 PA1</span>
|
||||
<a name="l00019"></a><a class="code" href="touch_8h.html#f14aca3b903c90c70433d41fdb840a93">00019</a> <span class="preprocessor"></span><span class="preprocessor">#define TOUCH_X2 PA3</span>
|
||||
<a name="l00020"></a><a class="code" href="touch_8h.html#2168431fed386ed4cfec1127b055652a">00020</a> <span class="preprocessor"></span><span class="preprocessor">#define TOUCH_Y1 PA5</span>
|
||||
<a name="l00021"></a><a class="code" href="touch_8h.html#347b052e8cb9e548e2aaebbb9d8ed405">00021</a> <span class="preprocessor"></span><span class="preprocessor">#define TOUCH_Y2 PA7</span>
|
||||
<a name="l00022"></a>00022 <span class="preprocessor"></span>
|
||||
<a name="l00023"></a><a class="code" href="touch_8h.html#7f34b02cb67c42f6d7b862a061496da7">00023</a> <span class="preprocessor">#define TOUCH_PRESSED_LEVEL 1000</span>
|
||||
<a name="l00024"></a>00024 <span class="preprocessor"></span>
|
||||
<a name="l00025"></a>00025 uint8_t <a class="code" href="touch_8c.html#215947ded979abf11d490536508ecafc" title="This functions set 5V to X1 and GND to Y1, the voltage at X2 is measured via the...">touch_is_pressed</a>();
|
||||
<a name="l00026"></a>00026
|
||||
<a name="l00027"></a>00027 int16_t <a class="code" href="touch_8c.html#dbea78d45cc89e43f7510ebf6eb01ac0">touch_readX</a>();
|
||||
<a name="l00028"></a>00028 int16_t <a class="code" href="touch_8c.html#cdce8a6997f2d00dbfcb61be2e67e886">touch_readY</a>() ;
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00030"></a>00030 <span class="preprocessor">#endif </span><span class="comment">/* TOUCH_H_ */</span>
|
||||
</pre></div></div>
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jun 1 14:55:44 2009 for glcd by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,255 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
||||
<title>glcd: include/touch.h File Reference</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
<!-- Generated by Doxygen 1.5.5 -->
|
||||
<div class="navigation" id="top">
|
||||
<div class="tabs">
|
||||
<ul>
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<h1>include/touch.h File Reference</h1><code>#include "<a class="el" href="adc_8h-source.html">adc.h</a>"</code><br>
|
||||
|
||||
<p>
|
||||
<a href="touch_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr><td></td></tr>
|
||||
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="touch_8h.html#c7d5ec105ddb1a3240d9f8b1dc259974">TOUCH_H_</a> TOUCH_H_</td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="touch_8h.html">touch.h</a> <a href="#c7d5ec105ddb1a3240d9f8b1dc259974"></a><br></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="touch_8h.html#2ea8f9960f5f713995fd0e1304a33831">TOUCH_PORT</a> PORTA</td></tr>
|
||||
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="touch_8h.html#eccf4c5be8d2e85e37d07d834673ce29">TOUCH_PIN</a> PINA</td></tr>
|
||||
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="touch_8h.html#7df7927e1c0467a8e462b483a7da62c7">TOUCH_DDR</a> DDRA</td></tr>
|
||||
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="touch_8h.html#68fb42f50f3eb1acfc00869488260dd8">TOUCH_X1</a> PA1</td></tr>
|
||||
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="touch_8h.html#f14aca3b903c90c70433d41fdb840a93">TOUCH_X2</a> PA3</td></tr>
|
||||
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="touch_8h.html#2168431fed386ed4cfec1127b055652a">TOUCH_Y1</a> PA5</td></tr>
|
||||
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="touch_8h.html#347b052e8cb9e548e2aaebbb9d8ed405">TOUCH_Y2</a> PA7</td></tr>
|
||||
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="touch_8h.html#7f34b02cb67c42f6d7b862a061496da7">TOUCH_PRESSED_LEVEL</a> 1000</td></tr>
|
||||
|
||||
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="touch_8h.html#215947ded979abf11d490536508ecafc">touch_is_pressed</a> ()</td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">This functions set 5V to X1 and GND to Y1, the voltage at X2 is measured via the ADC. <a href="#215947ded979abf11d490536508ecafc"></a><br></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">int16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="touch_8h.html#dbea78d45cc89e43f7510ebf6eb01ac0">touch_readX</a> ()</td></tr>
|
||||
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">int16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="touch_8h.html#cdce8a6997f2d00dbfcb61be2e67e886">touch_readY</a> ()</td></tr>
|
||||
|
||||
</table>
|
||||
<hr><h2>Define Documentation</h2>
|
||||
<a class="anchor" name="7df7927e1c0467a8e462b483a7da62c7"></a><!-- doxytag: member="touch.h::TOUCH_DDR" ref="7df7927e1c0467a8e462b483a7da62c7" args="" -->
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">#define TOUCH_DDR DDRA </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memdoc">
|
||||
|
||||
<p>
|
||||
|
||||
</div>
|
||||
</div><p>
|
||||
<a class="anchor" name="c7d5ec105ddb1a3240d9f8b1dc259974"></a><!-- doxytag: member="touch.h::TOUCH_H_" ref="c7d5ec105ddb1a3240d9f8b1dc259974" args="" -->
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">#define TOUCH_H_ TOUCH_H_ </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memdoc">
|
||||
|
||||
<p>
|
||||
<a class="el" href="touch_8h.html">touch.h</a>
|
||||
<p>
|
||||
Created on: 29.05.2009 Author: sebastian
|
||||
</div>
|
||||
</div><p>
|
||||
<a class="anchor" name="eccf4c5be8d2e85e37d07d834673ce29"></a><!-- doxytag: member="touch.h::TOUCH_PIN" ref="eccf4c5be8d2e85e37d07d834673ce29" args="" -->
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">#define TOUCH_PIN PINA </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memdoc">
|
||||
|
||||
<p>
|
||||
|
||||
</div>
|
||||
</div><p>
|
||||
<a class="anchor" name="2ea8f9960f5f713995fd0e1304a33831"></a><!-- doxytag: member="touch.h::TOUCH_PORT" ref="2ea8f9960f5f713995fd0e1304a33831" args="" -->
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">#define TOUCH_PORT PORTA </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memdoc">
|
||||
|
||||
<p>
|
||||
|
||||
</div>
|
||||
</div><p>
|
||||
<a class="anchor" name="7f34b02cb67c42f6d7b862a061496da7"></a><!-- doxytag: member="touch.h::TOUCH_PRESSED_LEVEL" ref="7f34b02cb67c42f6d7b862a061496da7" args="" -->
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">#define TOUCH_PRESSED_LEVEL 1000 </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memdoc">
|
||||
|
||||
<p>
|
||||
|
||||
</div>
|
||||
</div><p>
|
||||
<a class="anchor" name="68fb42f50f3eb1acfc00869488260dd8"></a><!-- doxytag: member="touch.h::TOUCH_X1" ref="68fb42f50f3eb1acfc00869488260dd8" args="" -->
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">#define TOUCH_X1 PA1 </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memdoc">
|
||||
|
||||
<p>
|
||||
|
||||
</div>
|
||||
</div><p>
|
||||
<a class="anchor" name="f14aca3b903c90c70433d41fdb840a93"></a><!-- doxytag: member="touch.h::TOUCH_X2" ref="f14aca3b903c90c70433d41fdb840a93" args="" -->
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">#define TOUCH_X2 PA3 </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memdoc">
|
||||
|
||||
<p>
|
||||
|
||||
</div>
|
||||
</div><p>
|
||||
<a class="anchor" name="2168431fed386ed4cfec1127b055652a"></a><!-- doxytag: member="touch.h::TOUCH_Y1" ref="2168431fed386ed4cfec1127b055652a" args="" -->
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">#define TOUCH_Y1 PA5 </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memdoc">
|
||||
|
||||
<p>
|
||||
|
||||
</div>
|
||||
</div><p>
|
||||
<a class="anchor" name="347b052e8cb9e548e2aaebbb9d8ed405"></a><!-- doxytag: member="touch.h::TOUCH_Y2" ref="347b052e8cb9e548e2aaebbb9d8ed405" args="" -->
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">#define TOUCH_Y2 PA7 </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memdoc">
|
||||
|
||||
<p>
|
||||
|
||||
</div>
|
||||
</div><p>
|
||||
<hr><h2>Function Documentation</h2>
|
||||
<a class="anchor" name="215947ded979abf11d490536508ecafc"></a><!-- doxytag: member="touch.h::touch_is_pressed" ref="215947ded979abf11d490536508ecafc" args="()" -->
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">uint8_t touch_is_pressed </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"> </td>
|
||||
<td> ) </td>
|
||||
<td width="100%"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memdoc">
|
||||
|
||||
<p>
|
||||
This functions set 5V to X1 and GND to Y1, the voltage at X2 is measured via the ADC.
|
||||
<p>
|
||||
If the ADC-Value is less then TOUCH_PRESSED_LEVEL, the function will return 1. <dl class="return" compact><dt><b>Returns:</b></dt><dd>1 if pressed else 0 </dd></dl>
|
||||
|
||||
</div>
|
||||
</div><p>
|
||||
<a class="anchor" name="dbea78d45cc89e43f7510ebf6eb01ac0"></a><!-- doxytag: member="touch.h::touch_readX" ref="dbea78d45cc89e43f7510ebf6eb01ac0" args="()" -->
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">int16_t touch_readX </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"> </td>
|
||||
<td> ) </td>
|
||||
<td width="100%"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memdoc">
|
||||
|
||||
<p>
|
||||
|
||||
</div>
|
||||
</div><p>
|
||||
<a class="anchor" name="cdce8a6997f2d00dbfcb61be2e67e886"></a><!-- doxytag: member="touch.h::touch_readY" ref="cdce8a6997f2d00dbfcb61be2e67e886" args="()" -->
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">int16_t touch_readY </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"> </td>
|
||||
<td> ) </td>
|
||||
<td width="100%"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memdoc">
|
||||
|
||||
<p>
|
||||
|
||||
</div>
|
||||
</div><p>
|
||||
</div>
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jun 1 14:55:44 2009 for glcd by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,52 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
||||
<title>glcd: writing_demo.c File Reference</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
<!-- Generated by Doxygen 1.5.5 -->
|
||||
<div class="navigation" id="top">
|
||||
<div class="tabs">
|
||||
<ul>
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<h1>writing_demo.c File Reference</h1><code>#include "<a class="el" href="writing__demo_8h-source.html">writing_demo.h</a>"</code><br>
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr><td></td></tr>
|
||||
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="writing__demo_8c.html#bdd925f1d9c8a09b9950c059c51e02d1">writing_demo</a> ()</td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">particel_demo.c <a href="#bdd925f1d9c8a09b9950c059c51e02d1"></a><br></td></tr>
|
||||
</table>
|
||||
<hr><h2>Function Documentation</h2>
|
||||
<a class="anchor" name="bdd925f1d9c8a09b9950c059c51e02d1"></a><!-- doxytag: member="writing_demo.c::writing_demo" ref="bdd925f1d9c8a09b9950c059c51e02d1" args="()" -->
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void writing_demo </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"> </td>
|
||||
<td> ) </td>
|
||||
<td width="100%"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memdoc">
|
||||
|
||||
<p>
|
||||
particel_demo.c
|
||||
<p>
|
||||
Created on: 29.05.2009 Author: sebastian
|
||||
</div>
|
||||
</div><p>
|
||||
</div>
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jun 1 14:55:44 2009 for glcd by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,32 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
||||
<title>glcd: writing_demo.h Source File</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
<!-- Generated by Doxygen 1.5.5 -->
|
||||
<div class="navigation" id="top">
|
||||
<div class="tabs">
|
||||
<ul>
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<h1>writing_demo.h</h1><a href="writing__demo_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
||||
<a name="l00008"></a>00008 <span class="preprocessor">#ifndef WIRTING_DEMO_H_</span>
|
||||
<a name="l00009"></a><a class="code" href="writing__demo_8h.html#69a65c026c8b8e97c7b6f99de76ab00d">00009</a> <span class="preprocessor"></span><span class="preprocessor">#define WIRTING_DEMO_H_ WIRTING_DEMO_H_</span>
|
||||
<a name="l00010"></a>00010 <span class="preprocessor"></span>
|
||||
<a name="l00011"></a>00011 <span class="preprocessor">#include <stdlib.h></span>
|
||||
<a name="l00012"></a>00012 <span class="preprocessor">#include "<a class="code" href="lc7981_8h.html">include/lc7981.h</a>"</span>
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#include "<a class="code" href="adc_8h.html">include/adc.h</a>"</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor">#include "<a class="code" href="touch_8h.html">include/touch.h</a>"</span>
|
||||
<a name="l00015"></a>00015
|
||||
<a name="l00016"></a>00016 <span class="keywordtype">void</span> <a class="code" href="writing__demo_8c.html#bdd925f1d9c8a09b9950c059c51e02d1" title="particel_demo.c">writing_demo</a>();
|
||||
<a name="l00017"></a>00017
|
||||
<a name="l00018"></a>00018 <span class="preprocessor">#endif </span><span class="comment">/* PARTICEL_DEMO_H_ */</span>
|
||||
</pre></div></div>
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jun 1 14:55:44 2009 for glcd by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,79 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
||||
<title>glcd: writing_demo.h File Reference</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
<!-- Generated by Doxygen 1.5.5 -->
|
||||
<div class="navigation" id="top">
|
||||
<div class="tabs">
|
||||
<ul>
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<h1>writing_demo.h File Reference</h1><code>#include <stdlib.h></code><br>
|
||||
<code>#include "<a class="el" href="lc7981_8h-source.html">include/lc7981.h</a>"</code><br>
|
||||
<code>#include "<a class="el" href="adc_8h-source.html">include/adc.h</a>"</code><br>
|
||||
<code>#include "<a class="el" href="touch_8h-source.html">include/touch.h</a>"</code><br>
|
||||
|
||||
<p>
|
||||
<a href="writing__demo_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr><td></td></tr>
|
||||
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="writing__demo_8h.html#69a65c026c8b8e97c7b6f99de76ab00d">WIRTING_DEMO_H_</a> WIRTING_DEMO_H_</td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">particel_demo.h <a href="#69a65c026c8b8e97c7b6f99de76ab00d"></a><br></td></tr>
|
||||
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
|
||||
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="writing__demo_8h.html#bdd925f1d9c8a09b9950c059c51e02d1">writing_demo</a> ()</td></tr>
|
||||
|
||||
<tr><td class="mdescLeft"> </td><td class="mdescRight">particel_demo.c <a href="#bdd925f1d9c8a09b9950c059c51e02d1"></a><br></td></tr>
|
||||
</table>
|
||||
<hr><h2>Define Documentation</h2>
|
||||
<a class="anchor" name="69a65c026c8b8e97c7b6f99de76ab00d"></a><!-- doxytag: member="writing_demo.h::WIRTING_DEMO_H_" ref="69a65c026c8b8e97c7b6f99de76ab00d" args="" -->
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">#define WIRTING_DEMO_H_ WIRTING_DEMO_H_ </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memdoc">
|
||||
|
||||
<p>
|
||||
particel_demo.h
|
||||
<p>
|
||||
Created on: 29.05.2009 Author: sebastian
|
||||
</div>
|
||||
</div><p>
|
||||
<hr><h2>Function Documentation</h2>
|
||||
<a class="anchor" name="bdd925f1d9c8a09b9950c059c51e02d1"></a><!-- doxytag: member="writing_demo.h::writing_demo" ref="bdd925f1d9c8a09b9950c059c51e02d1" args="()" -->
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void writing_demo </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"> </td>
|
||||
<td> ) </td>
|
||||
<td width="100%"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="memdoc">
|
||||
|
||||
<p>
|
||||
particel_demo.c
|
||||
<p>
|
||||
Created on: 29.05.2009 Author: sebastian
|
||||
</div>
|
||||
</div><p>
|
||||
</div>
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jun 1 14:55:44 2009 for glcd by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,16 @@
|
|||
\section{include/adc.c File Reference}
|
||||
\label{adc_8c}\index{include/adc.c@{include/adc.c}}
|
||||
{\tt \#include \char`\"{}adc.h\char`\"{}}\par
|
||||
\subsection*{Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
uint16\_\-t {\bf readADC} (uint8\_\-t channel)
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Function Documentation}
|
||||
\index{adc.c@{adc.c}!readADC@{readADC}}
|
||||
\index{readADC@{readADC}!adc.c@{adc.c}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}uint16\_\-t readADC (uint8\_\-t {\em channel})}\label{adc_8c_812736491523e54e6bf10a142821e7fe}
|
||||
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
\section{include/adc.h File Reference}
|
||||
\label{adc_8h}\index{include/adc.h@{include/adc.h}}
|
||||
{\tt \#include $<$avr/io.h$>$}\par
|
||||
{\tt \#include $<$util/delay.h$>$}\par
|
||||
{\tt \#include $<$inttypes.h$>$}\par
|
||||
\subsection*{Defines}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
\#define {\bf ADC\_\-H}~ADC\_\-H
|
||||
\end{CompactItemize}
|
||||
\subsection*{Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
uint16\_\-t {\bf readADC} (uint8\_\-t channel)
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Define Documentation}
|
||||
\index{adc.h@{adc.h}!ADC\_\-H@{ADC\_\-H}}
|
||||
\index{ADC\_\-H@{ADC\_\-H}!adc.h@{adc.h}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define ADC\_\-H~ADC\_\-H}\label{adc_8h_7d45c6fd49da9ab97ff07bff1c3ddee5}
|
||||
|
||||
|
||||
|
||||
|
||||
\subsection{Function Documentation}
|
||||
\index{adc.h@{adc.h}!readADC@{readADC}}
|
||||
\index{readADC@{readADC}!adc.h@{adc.h}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}uint16\_\-t readADC (uint8\_\-t {\em channel})}\label{adc_8h_812736491523e54e6bf10a142821e7fe}
|
||||
|
||||
|
|
@ -10,8 +10,8 @@
|
|||
{\fancyplain{}{\bfseries\rightmark}}
|
||||
\rhead[\fancyplain{}{\bfseries\leftmark}]
|
||||
{\fancyplain{}{\bfseries\thepage}}
|
||||
\rfoot[\fancyplain{}{\bfseries\scriptsize Generated on Tue May 26 15:32:23 2009 for glcd by Doxygen }]{}
|
||||
\lfoot[]{\fancyplain{}{\bfseries\scriptsize Generated on Tue May 26 15:32:23 2009 for glcd by Doxygen }}
|
||||
\rfoot[\fancyplain{}{\bfseries\scriptsize Generated on Mon Jun 1 14:55:44 2009 for glcd by Doxygen }]{}
|
||||
\lfoot[]{\fancyplain{}{\bfseries\scriptsize Generated on Mon Jun 1 14:55:44 2009 for glcd by Doxygen }}
|
||||
\cfoot{}
|
||||
\newenvironment{Code}
|
||||
{\footnotesize}
|
||||
|
|
|
@ -4,6 +4,12 @@ Here is a list of all files with brief descriptions:\begin{CompactList}
|
|||
\item\contentsline{section}{{\bf 8x8\_\-horizontal\_\-LSB\_\-1.h} }{\pageref{8x8__horizontal__LSB__1_8h}}{}
|
||||
\item\contentsline{section}{{\bf button.h} }{\pageref{button_8h}}{}
|
||||
\item\contentsline{section}{{\bf main.c} }{\pageref{main_8c}}{}
|
||||
\item\contentsline{section}{{\bf writing\_\-demo.c} }{\pageref{writing__demo_8c}}{}
|
||||
\item\contentsline{section}{{\bf writing\_\-demo.h} }{\pageref{writing__demo_8h}}{}
|
||||
\item\contentsline{section}{include/{\bf adc.c} }{\pageref{adc_8c}}{}
|
||||
\item\contentsline{section}{include/{\bf adc.h} }{\pageref{adc_8h}}{}
|
||||
\item\contentsline{section}{include/{\bf lc7981.c} }{\pageref{lc7981_8c}}{}
|
||||
\item\contentsline{section}{include/{\bf lc7981.h} }{\pageref{lc7981_8h}}{}
|
||||
\item\contentsline{section}{include/{\bf touch.c} }{\pageref{touch_8c}}{}
|
||||
\item\contentsline{section}{include/{\bf touch.h} }{\pageref{touch_8h}}{}
|
||||
\end{CompactList}
|
||||
|
|
|
@ -8,15 +8,15 @@
|
|||
\item
|
||||
\#define {\bf LC7981\_\-H\_\-}~LC7981\_\-H\_\-
|
||||
\begin{CompactList}\small\item\em protects this file from beeing double included \item\end{CompactList}\item
|
||||
\#define {\bf LCD\_\-CTRL}~PORTC
|
||||
\#define {\bf LCD\_\-CTRL}~PORTA
|
||||
\begin{CompactList}\small\item\em Port used for control signals. \item\end{CompactList}\item
|
||||
\#define {\bf LCD\_\-CRTL\_\-DDR}~DDRC
|
||||
\#define {\bf LCD\_\-CRTL\_\-DDR}~DDRA
|
||||
\begin{CompactList}\small\item\em Data-Direction-Register for the control signals. \item\end{CompactList}\item
|
||||
\#define {\bf LCD\_\-RS}~PC4
|
||||
\#define {\bf LCD\_\-RS}~PA4
|
||||
\begin{CompactList}\small\item\em Register-Select Pin of the Display. \item\end{CompactList}\item
|
||||
\#define {\bf LCD\_\-RW}~PC2
|
||||
\#define {\bf LCD\_\-RW}~PA2
|
||||
\begin{CompactList}\small\item\em Read-Write-select Pin. \item\end{CompactList}\item
|
||||
\#define {\bf LCD\_\-EN}~PC0
|
||||
\#define {\bf LCD\_\-EN}~PA0
|
||||
\begin{CompactList}\small\item\em Strobe Pin. \item\end{CompactList}\item
|
||||
\#define {\bf LCD\_\-DATA}~PORTD
|
||||
\begin{CompactList}\small\item\em Port used for data. \item\end{CompactList}\item
|
||||
|
@ -87,14 +87,14 @@ protects this file from beeing double included
|
|||
|
||||
\index{lc7981.h@{lc7981.h}!LCD\_\-CRTL\_\-DDR@{LCD\_\-CRTL\_\-DDR}}
|
||||
\index{LCD\_\-CRTL\_\-DDR@{LCD\_\-CRTL\_\-DDR}!lc7981.h@{lc7981.h}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LCD\_\-CRTL\_\-DDR~DDRC}\label{lc7981_8h_4b6c8400da9a1ca3d4d83f3ef1f9c34a}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LCD\_\-CRTL\_\-DDR~DDRA}\label{lc7981_8h_4b6c8400da9a1ca3d4d83f3ef1f9c34a}
|
||||
|
||||
|
||||
Data-Direction-Register for the control signals.
|
||||
|
||||
\index{lc7981.h@{lc7981.h}!LCD\_\-CTRL@{LCD\_\-CTRL}}
|
||||
\index{LCD\_\-CTRL@{LCD\_\-CTRL}!lc7981.h@{lc7981.h}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LCD\_\-CTRL~PORTC}\label{lc7981_8h_8e945df7ca614325cafa08258e82a63c}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LCD\_\-CTRL~PORTA}\label{lc7981_8h_8e945df7ca614325cafa08258e82a63c}
|
||||
|
||||
|
||||
Port used for control signals.
|
||||
|
@ -115,7 +115,7 @@ Data-Direction-Register for Data.
|
|||
|
||||
\index{lc7981.h@{lc7981.h}!LCD\_\-EN@{LCD\_\-EN}}
|
||||
\index{LCD\_\-EN@{LCD\_\-EN}!lc7981.h@{lc7981.h}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LCD\_\-EN~PC0}\label{lc7981_8h_1640ffbc0d8ec0f7edb04a2b93918072}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LCD\_\-EN~PA0}\label{lc7981_8h_1640ffbc0d8ec0f7edb04a2b93918072}
|
||||
|
||||
|
||||
Strobe Pin.
|
||||
|
@ -157,7 +157,7 @@ Horizontal display size in pixels.
|
|||
|
||||
\index{lc7981.h@{lc7981.h}!LCD\_\-RS@{LCD\_\-RS}}
|
||||
\index{LCD\_\-RS@{LCD\_\-RS}!lc7981.h@{lc7981.h}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LCD\_\-RS~PC4}\label{lc7981_8h_4781e073871c6f27f89b9463ad3a4ed1}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LCD\_\-RS~PA4}\label{lc7981_8h_4781e073871c6f27f89b9463ad3a4ed1}
|
||||
|
||||
|
||||
Register-Select Pin of the Display.
|
||||
|
@ -178,7 +178,7 @@ Set the Register-Select pin low.
|
|||
|
||||
\index{lc7981.h@{lc7981.h}!LCD\_\-RW@{LCD\_\-RW}}
|
||||
\index{LCD\_\-RW@{LCD\_\-RW}!lc7981.h@{lc7981.h}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LCD\_\-RW~PC2}\label{lc7981_8h_26089a10ddd59a0dc7283c19ccc02533}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LCD\_\-RW~PA2}\label{lc7981_8h_26089a10ddd59a0dc7283c19ccc02533}
|
||||
|
||||
|
||||
Read-Write-select Pin.
|
||||
|
|
|
@ -3,9 +3,11 @@
|
|||
{\tt \#include $<$avr/io.h$>$}\par
|
||||
{\tt \#include $<$stdlib.h$>$}\par
|
||||
{\tt \#include \char`\"{}include/lc7981.h\char`\"{}}\par
|
||||
{\tt \#include \char`\"{}include/adc.h\char`\"{}}\par
|
||||
{\tt \#include \char`\"{}button.h\char`\"{}}\par
|
||||
{\tt \#include \char`\"{}12x16\_\-horizontal\_\-LSB\_\-1.h\char`\"{}}\par
|
||||
{\tt \#include \char`\"{}8x8\_\-horizontal\_\-LSB\_\-1.h\char`\"{}}\par
|
||||
{\tt \#include \char`\"{}include/touch.h\char`\"{}}\par
|
||||
{\tt \#include \char`\"{}writing\_\-demo.h\char`\"{}}\par
|
||||
\subsection*{Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
\vspace*{1cm}
|
||||
{\large Generated by Doxygen 1.5.5}\\
|
||||
\vspace*{0.5cm}
|
||||
{\small Tue May 26 15:32:24 2009}\\
|
||||
{\small Mon Jun 1 14:55:44 2009}\\
|
||||
\end{center}
|
||||
\end{titlepage}
|
||||
\clearemptydoublepage
|
||||
|
@ -35,8 +35,14 @@
|
|||
\input{12x16__horizontal__LSB__1_8h}
|
||||
\include{8x8__horizontal__LSB__1_8h}
|
||||
\include{button_8h}
|
||||
\include{adc_8c}
|
||||
\include{adc_8h}
|
||||
\include{lc7981_8c}
|
||||
\include{lc7981_8h}
|
||||
\include{touch_8c}
|
||||
\include{touch_8h}
|
||||
\include{main_8c}
|
||||
\include{writing__demo_8c}
|
||||
\include{writing__demo_8h}
|
||||
\printindex
|
||||
\end{document}
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
\section{include/touch.c File Reference}
|
||||
\label{touch_8c}\index{include/touch.c@{include/touch.c}}
|
||||
{\tt \#include \char`\"{}touch.h\char`\"{}}\par
|
||||
\subsection*{Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
uint8\_\-t {\bf touch\_\-is\_\-pressed} ()
|
||||
\begin{CompactList}\small\item\em This functions set 5V to X1 and GND to Y1, the voltage at X2 is measured via the ADC. \item\end{CompactList}\item
|
||||
int16\_\-t {\bf touch\_\-readX} ()
|
||||
\item
|
||||
int16\_\-t {\bf touch\_\-readY} ()
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Function Documentation}
|
||||
\index{touch.c@{touch.c}!touch\_\-is\_\-pressed@{touch\_\-is\_\-pressed}}
|
||||
\index{touch\_\-is\_\-pressed@{touch\_\-is\_\-pressed}!touch.c@{touch.c}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}uint8\_\-t touch\_\-is\_\-pressed ()}\label{touch_8c_215947ded979abf11d490536508ecafc}
|
||||
|
||||
|
||||
This functions set 5V to X1 and GND to Y1, the voltage at X2 is measured via the ADC.
|
||||
|
||||
If the ADC-Value is less then TOUCH\_\-PRESSED\_\-LEVEL, the function will return 1. \begin{Desc}
|
||||
\item[Returns:]1 if pressed else 0 \end{Desc}
|
||||
\index{touch.c@{touch.c}!touch\_\-readX@{touch\_\-readX}}
|
||||
\index{touch\_\-readX@{touch\_\-readX}!touch.c@{touch.c}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int16\_\-t touch\_\-readX ()}\label{touch_8c_dbea78d45cc89e43f7510ebf6eb01ac0}
|
||||
|
||||
|
||||
\index{touch.c@{touch.c}!touch\_\-readY@{touch\_\-readY}}
|
||||
\index{touch\_\-readY@{touch\_\-readY}!touch.c@{touch.c}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int16\_\-t touch\_\-readY ()}\label{touch_8c_cdce8a6997f2d00dbfcb61be2e67e886}
|
||||
|
||||
|
|
@ -0,0 +1,105 @@
|
|||
\section{include/touch.h File Reference}
|
||||
\label{touch_8h}\index{include/touch.h@{include/touch.h}}
|
||||
{\tt \#include \char`\"{}adc.h\char`\"{}}\par
|
||||
\subsection*{Defines}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
\#define {\bf TOUCH\_\-H\_\-}~TOUCH\_\-H\_\-
|
||||
\begin{CompactList}\small\item\em \doxyref{touch.h}{p.}{touch_8h} \item\end{CompactList}\item
|
||||
\#define {\bf TOUCH\_\-PORT}~PORTA
|
||||
\item
|
||||
\#define {\bf TOUCH\_\-PIN}~PINA
|
||||
\item
|
||||
\#define {\bf TOUCH\_\-DDR}~DDRA
|
||||
\item
|
||||
\#define {\bf TOUCH\_\-X1}~PA1
|
||||
\item
|
||||
\#define {\bf TOUCH\_\-X2}~PA3
|
||||
\item
|
||||
\#define {\bf TOUCH\_\-Y1}~PA5
|
||||
\item
|
||||
\#define {\bf TOUCH\_\-Y2}~PA7
|
||||
\item
|
||||
\#define {\bf TOUCH\_\-PRESSED\_\-LEVEL}~1000
|
||||
\end{CompactItemize}
|
||||
\subsection*{Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
uint8\_\-t {\bf touch\_\-is\_\-pressed} ()
|
||||
\begin{CompactList}\small\item\em This functions set 5V to X1 and GND to Y1, the voltage at X2 is measured via the ADC. \item\end{CompactList}\item
|
||||
int16\_\-t {\bf touch\_\-readX} ()
|
||||
\item
|
||||
int16\_\-t {\bf touch\_\-readY} ()
|
||||
\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Define Documentation}
|
||||
\index{touch.h@{touch.h}!TOUCH\_\-DDR@{TOUCH\_\-DDR}}
|
||||
\index{TOUCH\_\-DDR@{TOUCH\_\-DDR}!touch.h@{touch.h}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define TOUCH\_\-DDR~DDRA}\label{touch_8h_7df7927e1c0467a8e462b483a7da62c7}
|
||||
|
||||
|
||||
\index{touch.h@{touch.h}!TOUCH\_\-H\_\-@{TOUCH\_\-H\_\-}}
|
||||
\index{TOUCH\_\-H\_\-@{TOUCH\_\-H\_\-}!touch.h@{touch.h}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define TOUCH\_\-H\_\-~TOUCH\_\-H\_\-}\label{touch_8h_c7d5ec105ddb1a3240d9f8b1dc259974}
|
||||
|
||||
|
||||
\doxyref{touch.h}{p.}{touch_8h}
|
||||
|
||||
Created on: 29.05.2009 Author: sebastian \index{touch.h@{touch.h}!TOUCH\_\-PIN@{TOUCH\_\-PIN}}
|
||||
\index{TOUCH\_\-PIN@{TOUCH\_\-PIN}!touch.h@{touch.h}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define TOUCH\_\-PIN~PINA}\label{touch_8h_eccf4c5be8d2e85e37d07d834673ce29}
|
||||
|
||||
|
||||
\index{touch.h@{touch.h}!TOUCH\_\-PORT@{TOUCH\_\-PORT}}
|
||||
\index{TOUCH\_\-PORT@{TOUCH\_\-PORT}!touch.h@{touch.h}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define TOUCH\_\-PORT~PORTA}\label{touch_8h_2ea8f9960f5f713995fd0e1304a33831}
|
||||
|
||||
|
||||
\index{touch.h@{touch.h}!TOUCH\_\-PRESSED\_\-LEVEL@{TOUCH\_\-PRESSED\_\-LEVEL}}
|
||||
\index{TOUCH\_\-PRESSED\_\-LEVEL@{TOUCH\_\-PRESSED\_\-LEVEL}!touch.h@{touch.h}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define TOUCH\_\-PRESSED\_\-LEVEL~1000}\label{touch_8h_7f34b02cb67c42f6d7b862a061496da7}
|
||||
|
||||
|
||||
\index{touch.h@{touch.h}!TOUCH\_\-X1@{TOUCH\_\-X1}}
|
||||
\index{TOUCH\_\-X1@{TOUCH\_\-X1}!touch.h@{touch.h}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define TOUCH\_\-X1~PA1}\label{touch_8h_68fb42f50f3eb1acfc00869488260dd8}
|
||||
|
||||
|
||||
\index{touch.h@{touch.h}!TOUCH\_\-X2@{TOUCH\_\-X2}}
|
||||
\index{TOUCH\_\-X2@{TOUCH\_\-X2}!touch.h@{touch.h}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define TOUCH\_\-X2~PA3}\label{touch_8h_f14aca3b903c90c70433d41fdb840a93}
|
||||
|
||||
|
||||
\index{touch.h@{touch.h}!TOUCH\_\-Y1@{TOUCH\_\-Y1}}
|
||||
\index{TOUCH\_\-Y1@{TOUCH\_\-Y1}!touch.h@{touch.h}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define TOUCH\_\-Y1~PA5}\label{touch_8h_2168431fed386ed4cfec1127b055652a}
|
||||
|
||||
|
||||
\index{touch.h@{touch.h}!TOUCH\_\-Y2@{TOUCH\_\-Y2}}
|
||||
\index{TOUCH\_\-Y2@{TOUCH\_\-Y2}!touch.h@{touch.h}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define TOUCH\_\-Y2~PA7}\label{touch_8h_347b052e8cb9e548e2aaebbb9d8ed405}
|
||||
|
||||
|
||||
|
||||
|
||||
\subsection{Function Documentation}
|
||||
\index{touch.h@{touch.h}!touch\_\-is\_\-pressed@{touch\_\-is\_\-pressed}}
|
||||
\index{touch\_\-is\_\-pressed@{touch\_\-is\_\-pressed}!touch.h@{touch.h}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}uint8\_\-t touch\_\-is\_\-pressed ()}\label{touch_8h_215947ded979abf11d490536508ecafc}
|
||||
|
||||
|
||||
This functions set 5V to X1 and GND to Y1, the voltage at X2 is measured via the ADC.
|
||||
|
||||
If the ADC-Value is less then TOUCH\_\-PRESSED\_\-LEVEL, the function will return 1. \begin{Desc}
|
||||
\item[Returns:]1 if pressed else 0 \end{Desc}
|
||||
\index{touch.h@{touch.h}!touch\_\-readX@{touch\_\-readX}}
|
||||
\index{touch\_\-readX@{touch\_\-readX}!touch.h@{touch.h}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int16\_\-t touch\_\-readX ()}\label{touch_8h_dbea78d45cc89e43f7510ebf6eb01ac0}
|
||||
|
||||
|
||||
\index{touch.h@{touch.h}!touch\_\-readY@{touch\_\-readY}}
|
||||
\index{touch\_\-readY@{touch\_\-readY}!touch.h@{touch.h}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int16\_\-t touch\_\-readY ()}\label{touch_8h_cdce8a6997f2d00dbfcb61be2e67e886}
|
||||
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
\section{writing\_\-demo.c File Reference}
|
||||
\label{writing__demo_8c}\index{writing\_\-demo.c@{writing\_\-demo.c}}
|
||||
{\tt \#include \char`\"{}writing\_\-demo.h\char`\"{}}\par
|
||||
\subsection*{Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
void {\bf writing\_\-demo} ()
|
||||
\begin{CompactList}\small\item\em particel\_\-demo.c \item\end{CompactList}\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Function Documentation}
|
||||
\index{writing\_\-demo.c@{writing\_\-demo.c}!writing\_\-demo@{writing\_\-demo}}
|
||||
\index{writing\_\-demo@{writing\_\-demo}!writing_demo.c@{writing\_\-demo.c}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void writing\_\-demo ()}\label{writing__demo_8c_bdd925f1d9c8a09b9950c059c51e02d1}
|
||||
|
||||
|
||||
particel\_\-demo.c
|
||||
|
||||
Created on: 29.05.2009 Author: sebastian
|
|
@ -0,0 +1,37 @@
|
|||
\section{writing\_\-demo.h File Reference}
|
||||
\label{writing__demo_8h}\index{writing\_\-demo.h@{writing\_\-demo.h}}
|
||||
{\tt \#include $<$stdlib.h$>$}\par
|
||||
{\tt \#include \char`\"{}include/lc7981.h\char`\"{}}\par
|
||||
{\tt \#include \char`\"{}include/adc.h\char`\"{}}\par
|
||||
{\tt \#include \char`\"{}include/touch.h\char`\"{}}\par
|
||||
\subsection*{Defines}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
\#define {\bf WIRTING\_\-DEMO\_\-H\_\-}~WIRTING\_\-DEMO\_\-H\_\-
|
||||
\begin{CompactList}\small\item\em particel\_\-demo.h \item\end{CompactList}\end{CompactItemize}
|
||||
\subsection*{Functions}
|
||||
\begin{CompactItemize}
|
||||
\item
|
||||
void {\bf writing\_\-demo} ()
|
||||
\begin{CompactList}\small\item\em particel\_\-demo.c \item\end{CompactList}\end{CompactItemize}
|
||||
|
||||
|
||||
\subsection{Define Documentation}
|
||||
\index{writing\_\-demo.h@{writing\_\-demo.h}!WIRTING\_\-DEMO\_\-H\_\-@{WIRTING\_\-DEMO\_\-H\_\-}}
|
||||
\index{WIRTING\_\-DEMO\_\-H\_\-@{WIRTING\_\-DEMO\_\-H\_\-}!writing_demo.h@{writing\_\-demo.h}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define WIRTING\_\-DEMO\_\-H\_\-~WIRTING\_\-DEMO\_\-H\_\-}\label{writing__demo_8h_69a65c026c8b8e97c7b6f99de76ab00d}
|
||||
|
||||
|
||||
particel\_\-demo.h
|
||||
|
||||
Created on: 29.05.2009 Author: sebastian
|
||||
|
||||
\subsection{Function Documentation}
|
||||
\index{writing\_\-demo.h@{writing\_\-demo.h}!writing\_\-demo@{writing\_\-demo}}
|
||||
\index{writing\_\-demo@{writing\_\-demo}!writing_demo.h@{writing\_\-demo.h}}
|
||||
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void writing\_\-demo ()}\label{writing__demo_8h_bdd925f1d9c8a09b9950c059c51e02d1}
|
||||
|
||||
|
||||
particel\_\-demo.c
|
||||
|
||||
Created on: 29.05.2009 Author: sebastian
|
|
@ -0,0 +1,30 @@
|
|||
#include "adc.h"
|
||||
|
||||
|
||||
uint16_t readADC(uint8_t channel) {
|
||||
uint16_t result;
|
||||
|
||||
//ADC aktiv, Prescaler 16
|
||||
ADCSRA = (1 << ADEN) | (1 << ADPS2);
|
||||
|
||||
//ADC0 kein mutiplexing
|
||||
ADMUX = channel;
|
||||
|
||||
// AVcc als Versorgungspannung
|
||||
ADMUX |= (1 << REFS0);
|
||||
|
||||
//ADC starten mit Dummyreadout
|
||||
ADCSRA |= (1 << ADSC);
|
||||
while(ADCSRA & (1 << ADSC));
|
||||
|
||||
|
||||
ADCSRA |= (1 << ADSC);
|
||||
while(ADCSRA & (1 << ADSC));
|
||||
result = ADCW;
|
||||
|
||||
//ADC aus
|
||||
ADCSRA &= ~(1 << ADEN);
|
||||
|
||||
|
||||
return result;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
#ifndef ADC_H
|
||||
#define ADC_H ADC_H
|
||||
|
||||
#include <avr/io.h>
|
||||
#include <util/delay.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
|
||||
uint16_t readADC(uint8_t channel);
|
||||
|
||||
#endif /* ADC_H */
|
|
@ -36,8 +36,7 @@ void lcd_init(uint8_t mode) {
|
|||
|
||||
LCD_DATA_DDR = 0xFF;
|
||||
LCD_DATA = 0;
|
||||
LCD_CRTL_DDR = 0xFF;
|
||||
//|= (1 << LCD_RS) | (1 << LCD_RW) | (1 << LCD_EN) | (1 << LCD_CS) | (1 << LCD_RST);
|
||||
LCD_CRTL_DDR |= (1 << LCD_RS) | (1 << LCD_RW) | (1 << LCD_EN);
|
||||
LCD_CTRL = 0;
|
||||
|
||||
|
||||
|
|
|
@ -35,11 +35,11 @@
|
|||
#include <util/delay.h>
|
||||
#include <avr/pgmspace.h>
|
||||
|
||||
#define LCD_CTRL PORTC //!< Port used for control signals
|
||||
#define LCD_CRTL_DDR DDRC //!< Data-Direction-Register for the control signals
|
||||
#define LCD_RS PC4 //!< Register-Select Pin of the Display
|
||||
#define LCD_RW PC2 //!< Read-Write-select Pin
|
||||
#define LCD_EN PC0 //!< Strobe Pin
|
||||
#define LCD_CTRL PORTA //!< Port used for control signals
|
||||
#define LCD_CRTL_DDR DDRA //!< Data-Direction-Register for the control signals
|
||||
#define LCD_RS PA4 //!< Register-Select Pin of the Display
|
||||
#define LCD_RW PA2 //!< Read-Write-select Pin
|
||||
#define LCD_EN PA0 //!< Strobe Pin
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,94 @@
|
|||
/*
|
||||
* touch.c
|
||||
*
|
||||
* Created on: 29.05.2009
|
||||
* Author: sebastian
|
||||
*/
|
||||
|
||||
#include "touch.h"
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* This functions set 5V to X1 and GND to Y1,
|
||||
* the voltage at X2 is measured via the ADC.
|
||||
* If the ADC-Value is less then TOUCH_PRESSED_LEVEL,
|
||||
* the function will return 1.
|
||||
* \return 1 if pressed else 0
|
||||
*/
|
||||
uint8_t touch_is_pressed() {
|
||||
TOUCH_DDR |= (1 << TOUCH_X1);
|
||||
TOUCH_DDR |= (1 << TOUCH_Y1);
|
||||
TOUCH_DDR &= ~(1 << TOUCH_X2);
|
||||
|
||||
TOUCH_PORT &= ~(1 << TOUCH_Y1);
|
||||
TOUCH_PORT |= (1 << TOUCH_X1);
|
||||
|
||||
if(readADC(TOUCH_X2) < TOUCH_PRESSED_LEVEL) {
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
int16_t touch_readX() {
|
||||
int16_t pos;
|
||||
|
||||
if(touch_is_pressed()) {
|
||||
|
||||
TOUCH_DDR |= (1 << TOUCH_X1);
|
||||
TOUCH_DDR |= (1 << TOUCH_X2);
|
||||
TOUCH_DDR &= ~(1 << TOUCH_Y1);
|
||||
TOUCH_DDR &= ~(1 << TOUCH_Y2);
|
||||
|
||||
TOUCH_PORT &= ~(1 << TOUCH_X1);
|
||||
TOUCH_PORT |= (1 << TOUCH_X2);
|
||||
|
||||
_delay_us(10);
|
||||
|
||||
pos = (readADC(TOUCH_Y1) - 263) * 16 / 53;
|
||||
|
||||
|
||||
return pos;
|
||||
|
||||
|
||||
}
|
||||
else {
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
int16_t touch_readY() {
|
||||
int16_t pos;
|
||||
|
||||
if(touch_is_pressed()) {
|
||||
|
||||
TOUCH_DDR |= (1 << TOUCH_Y1);
|
||||
TOUCH_DDR |= (1 << TOUCH_Y2);
|
||||
TOUCH_DDR &= ~(1 << TOUCH_X1);
|
||||
TOUCH_DDR &= ~(1 << TOUCH_X2);
|
||||
|
||||
TOUCH_PORT |= (1 << TOUCH_Y1);
|
||||
TOUCH_PORT &= ~(1 << TOUCH_Y2);
|
||||
|
||||
_delay_us(10);
|
||||
|
||||
pos = (readADC(TOUCH_X1) - 330) * 8 / 40;
|
||||
|
||||
|
||||
return pos;
|
||||
|
||||
|
||||
}
|
||||
else {
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
/**
|
||||
* touch.h
|
||||
*
|
||||
* Created on: 29.05.2009
|
||||
* Author: sebastian
|
||||
*/
|
||||
|
||||
#ifndef TOUCH_H_
|
||||
#define TOUCH_H_ TOUCH_H_
|
||||
|
||||
#include "adc.h"
|
||||
|
||||
|
||||
#define TOUCH_PORT PORTA
|
||||
#define TOUCH_PIN PINA
|
||||
#define TOUCH_DDR DDRA
|
||||
|
||||
#define TOUCH_X1 PA1
|
||||
#define TOUCH_X2 PA3
|
||||
#define TOUCH_Y1 PA5
|
||||
#define TOUCH_Y2 PA7
|
||||
|
||||
#define TOUCH_PRESSED_LEVEL 1000
|
||||
|
||||
uint8_t touch_is_pressed();
|
||||
|
||||
int16_t touch_readX();
|
||||
int16_t touch_readY() ;
|
||||
|
||||
#endif /* TOUCH_H_ */
|
73
main.c
73
main.c
|
@ -9,83 +9,32 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
#include "include/lc7981.h"
|
||||
#include "include/adc.h"
|
||||
#include "button.h"
|
||||
#include "12x16_horizontal_LSB_1.h"
|
||||
#include "8x8_horizontal_LSB_1.h"
|
||||
//#include "8x8_horizontal_LSB_1.h"
|
||||
#include "include/touch.h"
|
||||
|
||||
#include "writing_demo.h"
|
||||
|
||||
|
||||
|
||||
|
||||
int main() {
|
||||
uint8_t x,y;
|
||||
uint16_t pos;
|
||||
const uint8_t *letter;
|
||||
int16_t posX,posY;
|
||||
uint8_t i;
|
||||
char tmp[10];
|
||||
|
||||
|
||||
lcd_init(LCD_GRAPHIC);
|
||||
|
||||
|
||||
|
||||
|
||||
//while(1) {
|
||||
|
||||
|
||||
lcd_plot_text(5,5,"Hello",16,16,font_12x16);
|
||||
lcd_plot_text(50,22,"World",16,16,font_12x16);
|
||||
lcd_plot_text(5,40,"Hallo Welt !",8,8,font_8x8);
|
||||
|
||||
while(!touch_is_pressed());
|
||||
|
||||
|
||||
/*for(x = 1; x < 10; x++) {
|
||||
_delay_ms(500);
|
||||
}
|
||||
lcd_clear();
|
||||
|
||||
|
||||
for(x = 31; x > 0; x--) {
|
||||
lcd_plot_char(x,12,'A',12,16,font_12x16);
|
||||
|
||||
_delay_ms(500);
|
||||
lcd_clear();
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
|
||||
while(1) {
|
||||
for(y = 1; y <= 32; y++) {
|
||||
lcd_plot_bitmap(16+y,16,bitmap,32,32);
|
||||
_delay_ms(500);
|
||||
lcd_clear();
|
||||
}
|
||||
|
||||
for(y = 31; y > 0; y--) {
|
||||
lcd_plot_bitmap(16+y,16,bitmap,32,32);
|
||||
_delay_ms(500);
|
||||
lcd_clear();
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
/*draw_penguin(); */
|
||||
|
||||
|
||||
/*for(i = 0; i <= 8; i++) {
|
||||
lcd_gotoxy(0,i);
|
||||
lcd_write_text("Zeile : ");
|
||||
lcd_write_text(itoa(i,tmp,10));
|
||||
lcd_write_text("\n");
|
||||
_delay_ms(100);
|
||||
}
|
||||
_delay_ms(100);
|
||||
|
||||
|
||||
|
||||
lcd_write_text("123456789012345678901234567890\n");
|
||||
lcd_write_text("Letzte Zeile"); */
|
||||
writing_demo();
|
||||
|
||||
return 0;
|
||||
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
/**
|
||||
* particel_demo.c
|
||||
*
|
||||
* Created on: 29.05.2009
|
||||
* Author: sebastian
|
||||
*/
|
||||
|
||||
|
||||
#include "writing_demo.h"
|
||||
|
||||
|
||||
|
||||
void writing_demo() {
|
||||
uint8_t i;
|
||||
uint16_t x,y;
|
||||
|
||||
lcd_clear();
|
||||
|
||||
while(1) {
|
||||
|
||||
if(touch_is_pressed()) {
|
||||
|
||||
x = touch_readX();
|
||||
y = touch_readY();
|
||||
|
||||
lcd_plot_pixel(x-1,y+1,PIXEL_ON);
|
||||
lcd_plot_pixel(x,y+1,PIXEL_ON);
|
||||
lcd_plot_pixel(x+1,y+1,PIXEL_ON);
|
||||
lcd_plot_pixel(x-1,y,PIXEL_ON);
|
||||
lcd_plot_pixel(x,y,PIXEL_ON);
|
||||
lcd_plot_pixel(x+1,y,PIXEL_ON);
|
||||
lcd_plot_pixel(x-1,y-1,PIXEL_ON);
|
||||
lcd_plot_pixel(x,y-1,PIXEL_ON);
|
||||
lcd_plot_pixel(x+1,y-1,PIXEL_ON);
|
||||
|
||||
}
|
||||
_delay_ms(1);
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
/**
|
||||
* particel_demo.h
|
||||
*
|
||||
* Created on: 29.05.2009
|
||||
* Author: sebastian
|
||||
*/
|
||||
|
||||
#ifndef WIRTING_DEMO_H_
|
||||
#define WIRTING_DEMO_H_ WIRTING_DEMO_H_
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "include/lc7981.h"
|
||||
#include "include/adc.h"
|
||||
#include "include/touch.h"
|
||||
|
||||
void writing_demo();
|
||||
|
||||
#endif /* PARTICEL_DEMO_H_ */
|
Loading…
Reference in New Issue