lib_LCD_i2C_example
Dependencies: lib_LCD_i2c_SPTLYI mbed
main.cpp@3:19fd9940adf6, 2018-05-02 (annotated)
- Committer:
- YSI
- Date:
- Wed May 02 15:03:54 2018 +0000
- Revision:
- 3:19fd9940adf6
- Parent:
- 0:78e51956ce26
update interrupt bug
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| YSI | 0:78e51956ce26 | 1 | #include "mbed.h" |
| YSI | 0:78e51956ce26 | 2 | #include "lib_LCD_i2c_SPTLYI.h" |
| YSI | 0:78e51956ce26 | 3 | |
| YSI | 0:78e51956ce26 | 4 | LCD_I2C LCD; |
| YSI | 0:78e51956ce26 | 5 | //LCD_I2C LCD(p28, p27, p26, 0x7C); //sda, scl, rst, only 4 slave address 0x7C 0x7D 0x7E 0x7F |
| YSI | 0:78e51956ce26 | 6 | |
| YSI | 0:78e51956ce26 | 7 | int main() |
| YSI | 0:78e51956ce26 | 8 | { |
| YSI | 0:78e51956ce26 | 9 | while(1) |
| YSI | 0:78e51956ce26 | 10 | { |
| YSI | 0:78e51956ce26 | 11 | for(int i = 0; i < 9999; i++) |
| YSI | 0:78e51956ce26 | 12 | { |
| YSI | 0:78e51956ce26 | 13 | LCD.clear(); |
| YSI | 0:78e51956ce26 | 14 | LCD.print(i); |
| YSI | 0:78e51956ce26 | 15 | wait(0.25); |
| YSI | 0:78e51956ce26 | 16 | } |
| YSI | 0:78e51956ce26 | 17 | } |
| YSI | 0:78e51956ce26 | 18 | } |
Y SI