PICBASIC PLUS LITE Manual - Profe Saul
PICBASIC PLUS LITE Manual - Profe Saul
PICBASIC PLUS LITE Manual - Profe Saul
- No tags were found...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>PICBASIC</strong> <strong>PLUS</strong> Compiler5.47. PLOT “NOT AVAILABLE IN THE <strong>LITE</strong> VERSION”.Syntax :Overview :PLOT Ypos , XposSet an individual pixel on a 64x128 element graphic LCD.Operators : Xpos can be a constant, variable, or expression, pointing to the X-axis location of the pixel to set. This must be a value of 0 to 127.Where 0 is the far left row of pixels.Ypos can be a constant, variable, or expression, pointing to the Y-axis location of the pixel to set. This must be a value of 0 to 63.Where 0 is the top column of pixels.Example :DEVICE 16F877DECLARE LCD_TYPE GRAPHIC' Use a Graphic LCD' Graphic LCD Pin AssignmentsDECLARE LCD_DTPORT PORTDDECLARE LCD_RSPIN PORTC.2DECLARE LCD_RWPIN PORTE.0DECLARE LCD_ENPIN PORTC.5DECLARE LCD_CS1PIN PORTE.1DECLARE LCD_CS2PIN PORTE.2DIM Xpos as BYTEADCON1 = 7‘ Set PORTA and PORTE to all digital‘ Draw a line across the LCDAgain: FOR Xpos = 0 TO 127PLOT 20 , XposDELAYMS 10NEXT‘ Now erase the lineFOR Xpos = 0 TO 127UNPLOT 20 , XposDELAYMS 10NEXTGOTO AgainSee also :LCDREAD, LCDWRITE, PIXEL, UNPLOT. See PRINT for circuit.89Copyright Crownhill 2001