Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TD1_exo1 TD1_exe1_suite TP3_exo1 TP3_exo2 ... more
lib_LCD_i2c_SPTLYI.h@0:0549f4c4896c, 2013-06-05 (annotated)
- Committer:
- YSI
- Date:
- Wed Jun 05 08:11:28 2013 +0000
- Revision:
- 0:0549f4c4896c
- Child:
- 1:a805daa83dd0
library "lib_LCD_i2c_SPTLYI" revision v1.0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
YSI | 0:0549f4c4896c | 1 | #ifndef DEF_lib_LCD_i2c_SPTLYI_H |
YSI | 0:0549f4c4896c | 2 | #define DEF_lib_LCD_i2c_SPTLYI_H |
YSI | 0:0549f4c4896c | 3 | |
YSI | 0:0549f4c4896c | 4 | #include "mbed.h" |
YSI | 0:0549f4c4896c | 5 | |
YSI | 0:0549f4c4896c | 6 | |
YSI | 0:0549f4c4896c | 7 | class LCD_I2C : public I2C |
YSI | 0:0549f4c4896c | 8 | { |
YSI | 0:0549f4c4896c | 9 | public: |
YSI | 0:0549f4c4896c | 10 | LCD_I2C(PinName pin_sda, PinName pin_scl, PinName pin_rst, int address); |
YSI | 0:0549f4c4896c | 11 | |
YSI | 0:0549f4c4896c | 12 | int clear(void); |
YSI | 0:0549f4c4896c | 13 | int return_home_cursor(void); |
YSI | 0:0549f4c4896c | 14 | int turn_on_cursor(void); |
YSI | 0:0549f4c4896c | 15 | int turn_off_cursor(void); |
YSI | 0:0549f4c4896c | 16 | int turn_on_display(void); |
YSI | 0:0549f4c4896c | 17 | int turn_off_display(void); |
YSI | 0:0549f4c4896c | 18 | int set_position_cursor(int position); |
YSI | 0:0549f4c4896c | 19 | void shift_left_cursor(int n); |
YSI | 0:0549f4c4896c | 20 | void shift_right_cursor(int n); |
YSI | 0:0549f4c4896c | 21 | int shift_line_cursor(void); |
YSI | 0:0549f4c4896c | 22 | void shift_left_display(int n); |
YSI | 0:0549f4c4896c | 23 | void shift_right_display(int n); |
YSI | 0:0549f4c4896c | 24 | int enable_auto_shift_right_display(void); |
YSI | 0:0549f4c4896c | 25 | int enable_auto_shift_left_display(void); |
YSI | 0:0549f4c4896c | 26 | int disable_auto_shift_display(void); |
YSI | 0:0549f4c4896c | 27 | int auto_shift_right_cursor(void); |
YSI | 0:0549f4c4896c | 28 | int auto_shift_left_cursor(void); |
YSI | 0:0549f4c4896c | 29 | |
YSI | 0:0549f4c4896c | 30 | int putnc(char *s, int n); |
YSI | 0:0549f4c4896c | 31 | int print(char c); |
YSI | 0:0549f4c4896c | 32 | int print(char c1, char c2); |
YSI | 0:0549f4c4896c | 33 | int print(char c1, char c2, char c3); |
YSI | 0:0549f4c4896c | 34 | int print(int nb); |
YSI | 0:0549f4c4896c | 35 | int print(double nb); |
YSI | 0:0549f4c4896c | 36 | int print(char *s); |
YSI | 0:0549f4c4896c | 37 | int print(char *s, int nb); |
YSI | 0:0549f4c4896c | 38 | int print(char *s, double nb); |
YSI | 0:0549f4c4896c | 39 | int print(char *s, int nb1, int nb2); |
YSI | 0:0549f4c4896c | 40 | int print(char *s, int nb1, double nb2); |
YSI | 0:0549f4c4896c | 41 | int print(char *s, double nb1, int nb2); |
YSI | 0:0549f4c4896c | 42 | int print(char *s, double nb1, double nb2); |
YSI | 0:0549f4c4896c | 43 | int print(char *s, double nb1, double nb2, double nb3); |
YSI | 0:0549f4c4896c | 44 | int print(char *s, double nb1, double nb2, int nb3); |
YSI | 0:0549f4c4896c | 45 | int print(char *s, double nb1, int nb2, double nb3); |
YSI | 0:0549f4c4896c | 46 | int print(char *s, double nb1, int nb2, int nb3); |
YSI | 0:0549f4c4896c | 47 | int print(char *s, int nb1, double nb2, double nb3); |
YSI | 0:0549f4c4896c | 48 | int print(char *s, int nb1, double nb2, int nb3); |
YSI | 0:0549f4c4896c | 49 | int print(char *s, int nb1, int nb2, double nb3); |
YSI | 0:0549f4c4896c | 50 | int print(char *s, int nb1, int nb2, int nb3); |
YSI | 0:0549f4c4896c | 51 | int print(char *s, char c1); |
YSI | 0:0549f4c4896c | 52 | int print(char *s, char c1, int nb); |
YSI | 0:0549f4c4896c | 53 | int print(char *s, char c1, double nb); |
YSI | 0:0549f4c4896c | 54 | int print(char *s, char c1, int nb1, int nb2); |
YSI | 0:0549f4c4896c | 55 | int print(char *s, char c1, int nb1, double nb2); |
YSI | 0:0549f4c4896c | 56 | int print(char *s, char c1, double nb1, int nb2); |
YSI | 0:0549f4c4896c | 57 | int print(char *s, char c1, double nb1, double nb2); |
YSI | 0:0549f4c4896c | 58 | int print(char *s, char c1, double nb1, double nb2, double nb3); |
YSI | 0:0549f4c4896c | 59 | int print(char *s, char c1, double nb1, double nb2, int nb3); |
YSI | 0:0549f4c4896c | 60 | int print(char *s, char c1, double nb1, int nb2, double nb3); |
YSI | 0:0549f4c4896c | 61 | int print(char *s, char c1, double nb1, int nb2, int nb3); |
YSI | 0:0549f4c4896c | 62 | int print(char *s, char c1, int nb1, double nb2, double nb3); |
YSI | 0:0549f4c4896c | 63 | int print(char *s, char c1, int nb1, double nb2, int nb3); |
YSI | 0:0549f4c4896c | 64 | int print(char *s, char c1, int nb1, int nb2, double nb3); |
YSI | 0:0549f4c4896c | 65 | int print(char *s, char c1, int nb1, int nb2, int nb3); |
YSI | 0:0549f4c4896c | 66 | int print(char *s, char c1, char c2); |
YSI | 0:0549f4c4896c | 67 | int print(char *s, char c1, char c2, int nb); |
YSI | 0:0549f4c4896c | 68 | int print(char *s, char c1, char c2, double nb); |
YSI | 0:0549f4c4896c | 69 | int print(char *s, char c1, char c2, int nb1, int nb2); |
YSI | 0:0549f4c4896c | 70 | int print(char *s, char c1, char c2, int nb1, double nb2); |
YSI | 0:0549f4c4896c | 71 | int print(char *s, char c1, char c2, double nb1, int nb2); |
YSI | 0:0549f4c4896c | 72 | int print(char *s, char c1, char c2, double nb1, double nb2); |
YSI | 0:0549f4c4896c | 73 | int print(char *s, char c1, char c2, double nb1, double nb2, double nb3); |
YSI | 0:0549f4c4896c | 74 | int print(char *s, char c1, char c2, double nb1, double nb2, int nb3); |
YSI | 0:0549f4c4896c | 75 | int print(char *s, char c1, char c2, double nb1, int nb2, double nb3); |
YSI | 0:0549f4c4896c | 76 | int print(char *s, char c1, char c2, double nb1, int nb2, int nb3); |
YSI | 0:0549f4c4896c | 77 | int print(char *s, char c1, char c2, int nb1, double nb2, double nb3); |
YSI | 0:0549f4c4896c | 78 | int print(char *s, char c1, char c2, int nb1, double nb2, int nb3); |
YSI | 0:0549f4c4896c | 79 | int print(char *s, char c1, char c2, int nb1, int nb2, double nb3); |
YSI | 0:0549f4c4896c | 80 | int print(char *s, char c1, char c2, int nb1, int nb2, int nb3); |
YSI | 0:0549f4c4896c | 81 | private: |
YSI | 0:0549f4c4896c | 82 | DigitalInOut m_pin_rst; |
YSI | 0:0549f4c4896c | 83 | int m_address; |
YSI | 0:0549f4c4896c | 84 | |
YSI | 0:0549f4c4896c | 85 | int init(void); |
YSI | 0:0549f4c4896c | 86 | void reset(void); |
YSI | 0:0549f4c4896c | 87 | int putnb2(int nb); |
YSI | 0:0549f4c4896c | 88 | }; |
YSI | 0:0549f4c4896c | 89 | |
YSI | 0:0549f4c4896c | 90 | #endif |