LCDbar_INC.bas
is an Include file that makes it easy to create BARgraphs on your LCD display.
Features:
- Can be placed anywhere on the screen.
- Can be any width (whole characters)
- Can be scaled anywhere between 0 and 32768.
- Three styles to choose from.* {lines, boxed, blocks}
- Just 1 Command does it all. (Well, sort of)
<table border="0" width="610" height="460"> <tr> <td width="100%" nowrap><font face="Courier New"><b>@** BARgraph** Value, Row, Col, Width, Range, Style</b></font> </td> </tr> <tr> <td width="100%" height="20"></td> </tr> <tr> <td width="100%" valign="top"> <table border="1" cellpadding="6" cellspacing="0"> <tr> <td align="right" valign="top" bgcolor="#CCCCCC"><b>**Value:</b></td> <td bordercolor="#000000">The Value of the BARgraph* (0 to Range).<p>If Range = 100 and Value is 50, then half of the BARgraph will be filled in. **<br>Value <b>MUST</b> be a <b>WORD</b> sized variable<b>¹</b>*</p> </td> </tr> <tr> <td align="right" valign="top" bgcolor="#CCCCCC"><b>Row:</b></td> <td bordercolor="#000000">LCD Row to place the BARgraph (1 to 4) <p>* can be either a <b>constant or a variable¹</b>.*</p> </td> </tr> <tr> <td align="right" valign="top" bgcolor="#CCCCCC"><b>Col:</b></td> <td bordercolor="#000000">LCD Column to place the BARgraph (0 to LCDsize² - 1) <p>* can be either a <b>constant or a variable¹.</b></p></td> </tr> <tr> <td align="right" valign="top" bgcolor="#CCCCCC"><b>Width:</b></td> <td bordercolor="#000000">Width of the BARgraph in charaters. (1 to LCDsize²) <p>* can be either a <b>constant or a variable¹.</b></p></td> </tr> <tr> <td align="right" valign="top" bgcolor="#CCCCCC"><b>Range</b></td> <td bordercolor="#000000">The "full-scale" range of the BARgraph* (0 to 32768) <p><b>MUST</b> be a <b>constant</b>.* Variables will not work here.</p></td> </tr> <tr> <td align="right" valign="top" bgcolor="#CCCCCC"><b>Style</b></td> <td bordercolor="#000000">Selects which Style will be used for the BARgraph* (lines, boxed, blocks) <p>* can be either a <b>constant or a variable¹.</b></p></td> </tr> </table> </td> </tr> <tr> <td> <p align="right">Note <b>¹</b> - Variables must be preceeded with a underscore.** ie.* _Temperature** </td> </tr> <tr> <td> <p align="right">Note ² - LCDsize is the number of Chars in 1 line of the LCD, for "4x16" it's <b>16</b>* </td> </tr> </table>
DEFINE LCD4X20 1
Re: hserout issues on the 18F26K83
This could be due to your code and how the two terminals work. MCS will send the data when you click 'send', or when you hit 'Enter' if you have the transmit window setting 'Transmit on carriage...
tumbleweed Today, 14:05