/ / Standard command should work with most common devices. #define write_data 0x00 / With RS = 1 / #define clr_lcd 0x01 / Clear Display /#define ret_home 0x02 / cursor to home position.
/ / Standard command should work with most common devices. #define write_data 0x00 / With RS = 1 / #define clr_lcd 0x01 / Clear Display /#define ret_home 0x02 / cursor to home position.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online from Scribd
/ / Standard command should work with most common devices. #define write_data 0x00 / With RS = 1 / #define clr_lcd 0x01 / Clear Display /#define ret_home 0x02 / cursor to home position.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online from Scribd
*/ /* Standard command should work with most common devices */ /*****************************************************************************/ /* */ #define write_data 0x00 /* With RS = 1 */ #define clr_lcd 0x01 /* Clear Display */ #define ret_home 0x02 /* Cursor to Home position */ #define entry_mode 0x06 /* Normal entry mode */ #define entry_mode_sh 0x07 /* - with shift */ #define sys_set_4_bit 0x28 /* 4 bit data mode 2 line ( 5x7 font ) */ #define sys_set_8_bit 0x38 /* 8 bit data mode 2 line ( 5x7 font ) */ #define disp_on 0x0C /* Display ON */ #define disp_off 0x08 /* Cursor plus blink */ #define cursor_on 0x0E /* Switch Cursor ON */ #define cursor_on_blink 0x0F /* Switch Cursor ON ,Blink ON */ #define cursor_off 0x0C /* Switch Cursor OFF */ #define move_cursor_l 0x10 /* Move cursor one character left */ #define move_cursor_r 0x14 /* Move cursor one character right */ #define scrl_disp_l 0x18 /* Scroll display 1 character left (all lines)*/ #define scrl_disp_r 0x1E /* Scroll display 1 character left (all lines)*/ #define goto_line1 0x80 /* Line 1 position 1 */ #define goto_line2 0xC0 /* Line 2 position 1 */ /*****************************************************************************/