please dont rip this site

The LCD code I promised is here

There are three user functions in there.

initGRLCD: This sets a few things up and turns the display on

clearLCD: Clears the display to all OFF (light) pixels.

linedraw: This draws a line between (x1,y1) and (x2,y2). x1,y1,x2,y2 are declared as GLOBAL. A 64 byte cache is used to hold modified pixels from the current LCD page. The line is always drawn from left to right and while the pixels to be plotted remain in the same page , each step to the right only requires the next byte to read from the LCD, the appropriate bit to be set and the modified value written into the cache. When a vertical step (up or down) crosses a page boundary the used part of the cache is flushed back to the LCD.

I have also put a bit of demo code here. The first file is a sin/cosine lookup table with values scaled to draw circles on the LCD.

The second file is a little demo that draws a series of lines from vertical to horizontal, then draws a rotating “clock hand”.

Just assemble and link the three files together. Note there is no fuses definition included.

+
file: /techref/member/peter_Oonion-bt-/index.htm, 1KB, , updated: 2005/6/4 01:10, local time: 2008/11/21 11:48, owner: peter_Oonion-bt-,
TOP NEW HELP FIND: 
38.103.63.58:LOG IN
©2008 PLEASE DON'T RIP! DO: LINK / DIGG! / MAKE!

 ©2008 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it!
<A HREF="http://www.piclist.com/techref/member/peter_Oonion-bt-/index.htm"> member peter_Oonion-bt- index</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be reviewed) Just type in the box and press the Post button. (HTML welcomed!): A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Did you find what you needed?

  PICList 2008 contributors:
o List host: MIT, Site host massmind.org, Top posters @20081121 Apptech, Jinx, Xiaofan Chen, olin piclist, Vitaliy, William \Chops\ Westfield, Tamas Rudnai, Alan B. Pearce, JonnyMac, Gerhard Fiedler,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Shultz Electronics, Timothy Weber, on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
  'What can I do?' - SiCKO

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .