Yoshiyuki Uehara / Mbed 2 deprecated Maple

Dependencies:   mbed

Committer:
uehara00
Date:
Mon Oct 10 11:45:51 2011 +0000
Revision:
1:aefa1992ce0f
Parent:
0:0be38b583cf7
Child:
3:eec13a411e94
Date/time display to LCD, adjust by buttons, alarm, timer, clock-output control. Just an example of RTC funtions, not for a practical use.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
uehara00 1:aefa1992ce0f 1 //copyright 2011 Uehara Yoshiyuki
uehara00 1:aefa1992ce0f 2 //====================================================================
uehara00 1:aefa1992ce0f 3 //The author provide the programs without any guarantees or warranty.
uehara00 1:aefa1992ce0f 4 //The author is not responsible for any damage or losses of any kind
uehara00 1:aefa1992ce0f 5 //caused by using or misusing of the programs.
uehara00 1:aefa1992ce0f 6 //The author is under no obligation to provide support, service,
uehara00 1:aefa1992ce0f 7 //corrections, or upgrades to the programs.
uehara00 1:aefa1992ce0f 8 //====================================================================
uehara00 0:0be38b583cf7 9 // MAPLE board[MARM01-BASE]
uehara00 0:0be38b583cf7 10 // LCD(TC1602E-25A) driver
uehara00 1:aefa1992ce0f 11 // - 4-bit I/O port.
uehara00 1:aefa1992ce0f 12 // - "r/w" is fixed to "w". Read instructions do not work.
uehara00 0:0be38b583cf7 13 #ifndef MAPLE_LCD_H_
uehara00 0:0be38b583cf7 14 #define MAPLE_LCD_H_
uehara00 0:0be38b583cf7 15
uehara00 0:0be38b583cf7 16 //constants
uehara00 0:0be38b583cf7 17 #define LCD_CURSOR_ON 1
uehara00 0:0be38b583cf7 18 #define LCD_CURSOR_OFF 0
uehara00 0:0be38b583cf7 19
uehara00 0:0be38b583cf7 20 // prototypes
uehara00 0:0be38b583cf7 21 void LCD_clear_display();
uehara00 0:0be38b583cf7 22 void LCD_return_home();
uehara00 0:0be38b583cf7 23 void LCD_entry_mode_set(int id, int s);
uehara00 0:0be38b583cf7 24 void LCD_display_on_off_control(int d, int c, int b);
uehara00 0:0be38b583cf7 25 void LCD_cursor_or_display_shift(int sc, int rl);
uehara00 0:0be38b583cf7 26 void LCD_function_set(int n, int f);
uehara00 0:0be38b583cf7 27 void LCD_set_CGRAM_address(int a);
uehara00 0:0be38b583cf7 28 void LCD_set_DDRAM_address(int a);
uehara00 0:0be38b583cf7 29 char LCD_read_busy_flag_and_address();
uehara00 0:0be38b583cf7 30 void LCD_write_data_to_CG_or_DDRAM(char d);
uehara00 0:0be38b583cf7 31 char LCD_read_data_from_CG_or_DDRAM();
uehara00 0:0be38b583cf7 32 void LCD_CGRAM_customize();
uehara00 0:0be38b583cf7 33
uehara00 0:0be38b583cf7 34 void LCD_initialize();
uehara00 0:0be38b583cf7 35 void LCD_print_char(char c);
uehara00 0:0be38b583cf7 36 void LCD_print_string(char s[]);
uehara00 1:aefa1992ce0f 37 void LCD_print_hex(int i);
uehara00 0:0be38b583cf7 38 void LCD_locate(int row, int column);
uehara00 0:0be38b583cf7 39 void LCD_cursor(int c);
uehara00 0:0be38b583cf7 40
uehara00 0:0be38b583cf7 41 #endif