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...

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> CompilerUsing a Graphic LCD “NOT AVAILABLE IN THE <strong>LITE</strong> VERSION”.Once a graphic LCD has been chosen using the DECLARELCD_TYPE directive, all PRINT outputs will be directed to that LCD.The standard modifiers may also be used with the graphics LCD: -AT ypos (0 to 7),xpos (0 to 20) Position the cursor on the LCDBIN{1..16}Send binary digitsCLSClear the LCDDEC{1..5}Send decimal digitsHEX{1..4}Send hexadecimal digitsREP c\nSend character c repeated n timesMost of the above modifiers still work in the expected manner, however,the AT modifier now starts at Ypos 0 and Xpos 0, where values0,0 will be the top left corner of the LCD.There are also four new modifiers. These are: -FONT 0 to nINVERSE 0-1OR 0-1XOR 0-1Choose the n th font, if availableInvert the characters sent to the LCDOR the new character with the originalXOR the new character with the originalOnce one of the four new modifiers has been enabled, all futurePRINT commands will use that particular feature until the modifier isdisabled. For example: -‘ Enable inverted characters from this pointPRINT AT 0 , 0 , INVERSE 1 , “HELLO WORLD”PRINT AT 1 , 0 , “STILL INVERTED”‘ Now use normal charactersPRINT AT 2 , 0 , INVERSE 0 , “NORMAL CHARACTERS”If no modifiers are present, then the character’s ASCII representationwill be displayed: -‘ Print characters A and BPRINT AT 0 , 0 , 65 , 66Declares :There are six declares associated with a graphic LCD.DECLARE LCD_DTPORT PORTAssign the port that will output the 8-bit data to the graphic LCD.If the DECLARE is not used, then the default port is PORTD.96Copyright Crownhill 2001

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

Saved successfully!

Ooh no, something went wrong!