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.35. LCDREADSyntax :Overview :Operators :Example :Variable = LCDREAD Line Number , XposRead a byte from a graphic LCD.Variable is a user defined variable.Line Number may be a constant, variable or expression within therange of 0 to 7. This corresponds to the line number of the LCD, with0 being the top row.Xpos may be a constant, variable or expression with a value of 0 to127. This corresponds to the X position of the LCD, with 0 being thefar left column.‘ Read and display the top row of the LCDDEVICE 16F877DECLARE LCD_TYPE Graphic ‘ Target a graphic LCDDIM Var as BYTEDIM Xpos as BYTECLS‘ Clear the LCDPRINT “Testing 1 2 3”FOR Xpos = 0 TO 127 ‘ Create a loop of 128Var = LCDREAD 0 , Xpos ‘ Read the LCD’s top linePRINT AT 1 , 0 , “Chr= “ , @Var,” “DELAYMS 100NEXTSTOPNotes :The graphic LCDs that are compatible with <strong>PICBASIC</strong> <strong>PLUS</strong> are nonintelligenttypes based on the Samsung S6B0108 chipset. Thesehave a pixel resolution of 64 x 128. The 64 being the Y axis, made upof 8 lines each having 8-bits. The 128 being the X axis, made up of128 positions. See LCDWRITE.As with LCDWRITE, the graphic LCD must be targeted using theDECLARE LCD_TYPE directive before this command may be used.See also :LCDWRITE, PLOT, UNPLOT, see PRINT for LCD connections.72Copyright Crownhill 2001

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

Saved successfully!

Ooh no, something went wrong!