11.07.2015 Views

PICBASIC PLUS LITE Manual - Profe Saul

PICBASIC PLUS LITE Manual - Profe Saul

PICBASIC PLUS LITE Manual - Profe Saul

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>PICBASIC</strong> <strong>PLUS</strong> Compiler5.73. UNPLOTSyntax :Overview :UNPLOT Ypos , XposClear 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 clear. 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 clear. 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, PLOT. See PRINT for circuit.132Copyright Crownhill 2001

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!