⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lcd99.htm

📁 本文介绍MGLS-l2864液晶显示模块的功能、原理及开发步骤。MGLS-12864液晶显示模块内置有HD61202液晶显示控制驱动器
💻 HTM
📖 第 1 页 / 共 2 页
字号:
<html>

<head>
<title>TLCD99 ReadMe</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF">
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="4"><b>TLCD99 ReadMe</b></font><br>
  <font face="Verdana, Arial, Helvetica, sans-serif" size="2">By Jonathan Hosking<br>
  V1.8 (15/10/2000)</font></p>
<p><font face="Arial, Helvetica, sans-serif" size="3"><b>Table of contents</b></font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b><a href="#about">What 
  is the TLCD99 component?</a><br>
  <a href="#install">How to install the TLCD99 component</a><br>
  <a href="#reference">TLCD99 reference</a><br>
  <a href="#history">Revision history</a><br>
  <a href="#future">Future ideas</a><br>
  <a href="#components">Other components</a><br>
  <a href="#contact">Contacting me</a></b></font></p>
<p><font face="Arial, Helvetica, sans-serif" size="3"><a name="About"><b>What 
  is the TLCD99 component?</b></a></font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">The TLCD99 component 
  is a new component I have written for Delphi and C++Builder. It simply looks 
  like an LCD display, but there is more to it than you think. It can be fully 
  customised if desired. It has the following features: -</font></p>
<ul>
  <font face="Verdana, Arial, Helvetica, sans-serif" size="2"> 
  <li>Fully customisable source code, which can be edited if necessary.</li>
  <li>A popup menu can be used with the control.</li>
  <li>Doesn't require bitmaps to operate. It simply generates the LCD digits.</li>
  <li>LCD digits can be adjusted in size and space.</li>
  <li>The display can be updated with an animation effect.</li>
  <li>Works on Windows 95, NT &amp; 2000. (I have not tested it with Windows 98)</li>
  <li>Compact size, only occupying 27KB when compiled in Delphi 1! (21KB in Delphi 
    5!)</li>
  </font> 
</ul>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">The component code 
  was written by modifying some code for my TYearPlanner component. The code works 
  fine on Delphi 1.0, 2.0, 4.0, 5.0 and C++Builder 3.0 &amp; 4.0, but I have not 
  tested it with other versions.</font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">You are free to 
  distribute the code, but you may NOT sell it. If you modify the code, you must 
  include me in the acknowledgements. If you do want your ideas or modifications 
  to be incorporated into the latest version, send them to the address at the 
  end of this document.</font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Thanks to <a href="mailto:jean-pierre.cocatrix@vx.cit.alcatel.fr"><b>Jean 
  Pierre</b></a> and <a href="mailto:danysz@applicom.co.il"><b>Daniel Szasz</b></a> 
  for their help with the drawing routines and colon support routines.</font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Thanks to <a href="mailto:alan.warriner@bigfoot.com"><b>Alan 
  Warriner</b></a> for implementing double buffering, the animation preview feature, 
  and improving the animation delays.</font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2"> Thanks to <a href="mailto:mheydon@eoh.co.za"><b>Mike 
  Heydon</b></a> for implementing the numeric value routines and <b>OnChange</b> 
  event.</font></p>
<p><font face="Arial, Helvetica, sans-serif" size="3"><a name="Install"><b>How 
  to install the TLCD99 component</b></a></font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">To unzip the TLCD99 
  component, assuming <b>[Program Path]</b> is the path to Delphi or C++Builder, 
  follow these steps: -</font></p>
<ol>
  <font face="Verdana, Arial, Helvetica, sans-serif" size="2"> 
  <li>Unzip the file <b>LCD99.ZIP</b> to any directory, using the directory switch 
    (This is VERY important).</li>
  <li>Copy the file <b>LCD99.PAS</b> to the directory <b>[Program Path]\Source\Samples</b>.</li>
  <li>If you want documentation, copy the file <b>LCD99.HTM</b> to the directory 
    <b>[Program Path]\Bin</b>, if you are using Delphi 1.0. Otherwise, copy it 
    to the directory <b>[Program Path]\Help</b>.</li>
  <li>If you are using Delphi 1.0, copy the files in the <b>16-Bit</b> directory 
    of this Zip to the directory <b>[Program Path]\Source\Samples</b>. Otherwise, 
    copy the files in the <b>32-Bit</b> directory of this Zip to the directory 
    <b>[Program Path]\Source\Samples</b>.</li>
  </font> 
</ol>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">You can now install 
  the component into the component library. Follow the procedure for the version 
  of Delphi or C++Builder that you are using.</font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>Delphi 1.0:</b></font></p>
<ol>
  <font face="Verdana, Arial, Helvetica, sans-serif" size="2"> 
  <li>Click on <b>Options</b> and then select <b>Install Components</b>.</li>
  <li>In the <b>Install Components</b> dialog, click <b>Add</b>. In the next dialog, 
    click <b>Browse</b> and open the file <b>LCD99.PAS</b>.</li>
  <li>Click <b>Ok</b> to install the component.</li>
  </font> 
</ol>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>Delphi 2.0:</b></font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">This procedure 
  should also work with C++Builder 1.0, but I'm not sure.</font></p>
<ol>
  <font face="Verdana, Arial, Helvetica, sans-serif" size="2"> 
  <li>Click on <b>Component</b> and select <b>Install</b>.</li>
  <li>In the <b>Install Components</b> dialog, click <b>Add</b>. In the next dialog, 
    click <b>Browse</b> and open the file <b>LCD99.PAS</b>.</li>
  <li>Click <b>Ok</b> to install the component.</li>
  </font> 
</ol>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>Delphi 4.0:</b></font></p>
<ol>
  <font face="Verdana, Arial, Helvetica, sans-serif" size="2"> 
  <li>Click on <b>Tools</b> and select <b>Environment Options</b>.</li>
  <li>In the next dialog, click on the <b>Library</b> tab and add the full path 
    of the TLCD99 source code to the <b>Library Path</b> edit box. Then click 
    <b>Ok</b>.</li>
  <li>Click on <b>Component</b> and select <b>Install Component</b>.</li>
  <li>In the <b>Install Component</b> dialog, click on the <b>Into existing package</b> 
    tab. Click on the first <b>Browse</b> button and open the file <b>LCD99.PAS</b>. 
    Then click on the second <b>Browse</b> button and open the file <b>DCLUSR40.DPK</b>. 
    Finally, click <b>Ok</b> to install the component.</li>
  </font> 
</ol>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>Delphi 5.0:</b></font></p>
<ol>
  <font face="Verdana, Arial, Helvetica, sans-serif" size="2"> 
  <li>Click on <b>Tools</b> and select <b>Environment Options</b>.</li>
  <li>In the next dialog, click on the <b>Library</b> tab and add the full path 
    of the TLCD99 source code to the <b>Library Path</b> edit box. Then click 
    <b>Ok</b>.</li>
  <li>Click on <b>Component</b> and select <b>Install Component</b>.</li>
  <li>In the <b>Install Component</b> dialog, click on the <b>Into existing package</b> 
    tab. Click on the first <b>Browse</b> button and open the file <b>LCD99.PAS</b>. 
    Then click on the second <b>Browse</b> button and open the file <b>DCLUSR50.DPK</b>. 
    Finally, click <b>Ok</b> to install the component.</li>
  </font> 
</ol>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>C++Builder 3.0:</b></font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">This procedure 
  should also work, with minor modifications, with Delphi 3.0, but I'm not sure.</font></p>
<ol>
  <font face="Verdana, Arial, Helvetica, sans-serif" size="2"> 
  <li>Click on <b>Tools</b> and select <b>Environment Options</b>.</li>
  <li>In the next dialog, click on the <b>Library</b> tab and add the full path 
    of the TLCD99 source code to the <b>Library Path</b> edit box. Then click 
    <b>Ok</b>.</li>
  <li>Click on <b>Component</b> and select <b>Install Component</b>.</li>
  <li>In the <b>Install Component</b> dialog, click on the <b>Into existing package</b> 
    tab. Click on the first <b>Browse</b> button and open the file <b>LCD99.PAS</b>. 
    Then click on the second <b>Browse</b> button and open the file <b>DCLUSR35.BPK</b>. 
    Finally, click <b>Ok</b> to install the component.</li>
  </font> 
</ol>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>C++Builder 4.0:</b></font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">This procedure 
  should also work, with minor modifications, with C++Builder 5.0, but I'm not 
  sure.</font></p>
<ol>
  <font face="Verdana, Arial, Helvetica, sans-serif" size="2"> 
  <li>Click on <b>Tools</b> and select <b>Environment Options</b>.</li>
  <li>In the next dialog, click on the <b>Library</b> tab and add the full path 
    of the TLCD99 source code to the <b>Library Path</b> edit box. Then click 
    <b>Ok</b>.</li>
  <li>Click on <b>Component</b> and select <b>Install Component</b>.</li>
  <li>In the <b>Install Component</b> dialog, click on the <b>Into existing package</b> 
    tab. Click on the first <b>Browse</b> button and open the file <b>LCD99.PAS</b>. 
    Then click on the second <b>Browse</b> button and open the file <b>DCLUSR40.BPK</b>. 
    Finally, click <b>Ok</b> to install the component.</li>
  </font> 
</ol>
<p><font face="Arial, Helvetica, sans-serif" size="3"><a name="Reference"><b>TLCD99 
  reference</b></a></font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>Remarks:</b></font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">If your digits 
  do not display correctly, you may have done one of the following: -</font></p>
<ul>
  <font face="Verdana, Arial, Helvetica, sans-serif" size="2"> 
  <li>You may have chosen an unsuitable segment size.</li>
  <li>You may have chosen an unsuitable gap size for the segments.</li>
  <li>You may have an inappropriate number of digits for the component size. Try 
    adjusting the size or reducing the number of digits.</li>
  <li>You may not have enough digits to display the value.</li>
  <li>You may have chosen unsuitable colours for inactive and active segments.</li>
  </font> 
</ul>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">You can edit the 
  digit data by changing the values in the array <b>LCDDisplayData</b>. The array 
  consists of 38 digit sets, each comprising of 8 segments that can be turned 
  on or off. The first 10 sets are the digits 0 to 9, the next 2 sets are the 
  sign digit and colon, and the last set is the letters of the alphabet. A value 
  of 0 turns a segment off, while a value of 1 turns the segment on. A diagram 
  of the segment layout is included in the source code.</font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">You can edit the 
  animation patterns, if you wish, by changing the values in the variable <b>LCDAnimationData</b>. 
  There are sub-arrays for each animation, each containing a list of segment numbers. 
  The animation of drawn in the order of the segment numbers. Below is a list 
  of the animations: -</font></p>
<ol>
  <font face="Verdana, Arial, Helvetica, sans-serif" size="2"> 
  <li>Spiral animation.</li>
  <li>Up animation.</li>
  <li>Down animation.</li>
  <li>Right animation.</li>
  <li>Left animation.</li>
  </font> 
</ol>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">You can add your 
  own animations if you wish, but you will need to make some modifications. I 
  do not support this, however. If you want your animations in future releases, 
  send the new array list to me.</font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">The animation delay 
  is not entirely accurate at the moment. For example, if you specify a delay 
  of 1000 then the control may take slightly over a second to update. If anyone 
  can find a solution to this, please contact me, but it's not a major problem.</font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">You can use the 
  <b>GetNumericValue</b> function to get the numeric value of the <b>Value</b> 
  property. The <b>SetNumericValue</b> procedure will set the <b>Value</b> property 
  to a numeric value. These routines were designed to avoid using lengthy type 
  conversions, like <b>StrToInt</b> and <b>IntToStr</b>, when using the <b>Value</b> 
  property.</font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>Known problems:</b></font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">There is currently 
  one known problem with the control, but hopefully it will be fixed in future 
  versions. It is listed below: -</font></p>
<ul>
  <font face="Verdana, Arial, Helvetica, sans-serif" size="2"> 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -