Mikroelektronika MIKROE-724 データシート

ページ / 726
378
mikoBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
Lcd_Chr_Cp
Lcd_Cmd
Available Lcd Commands
Prototype
sub procedure Lcd_Chr_Cp(dim out_char as byte)
Description Prints character on Lcd at current cursor position. Both variables and literals can be passed as a 
character.
Parameters 
out_char
: character to be written 
Returns
Nothing.
Requires
The Lcd module needs to be initialized. See Lcd_Init routine.
Example
‘ Write character “e” at current cursor position:
Lcd_Chr_Cp(“e”)
Notes
None
Prototype
sub procedure Lcd_Cmd(dim out_char as byte)
Description Sends command to Lcd.
Parameters 
out_char
: command to be sent 
Returns
Nothing.
Requires
The Lcd module needs to be initialized. See Lcd_Init table.
Example
‘ Clear Lcd display:
Lcd_Cmd(_LCD_CLEAR)
Notes
Predefined constants can be passed to the function, see Available Lcd Commands.
Lcd Command
Purpose
_LCD_FIRST_ROW
Move cursor to the 1st row
_LCD_SECOND_ROW
Move cursor to the 2nd row
_LCD_THIRD_ROW
Move cursor to the 3rd row
_LCD_FOURTH_ROW
Move cursor to the 4th row
_LCD_CLEAR
Clear display
_LCD_RETURN_HOME
Return cursor to home position, returns a shifted display to its 
original position. Display data RAM is unaffected.
_LCD_CURSOR_OFF
Turn off cursor
_LCD_UNDERLINE_ON
Underline cursor on
_LCD_BLINK_CURSOR_ON
Blink cursor on
_LCD_MOVE_CURSOR_LEFT
Move cursor left without changing display data RAM
_LCD_MOVE_CURSOR_RIGHT
Move cursor right without changing display data RAM
_LCD_TURN_ON
Turn Lcd display on
_LCD_TURN_OFF
Turn Lcd display off
_LCD_SHIFT_LEFT
Shift display left without changing display data RAM
_LCD_SHIFT_RIGHT
Shift display right without changing display data RAM