AND
/
LCDTEST
lcd test
main.cpp@0:58c95c1c6b62, 2019-05-10 (annotated)
- Committer:
- mehrnaz
- Date:
- Fri May 10 15:08:51 2019 +0000
- Revision:
- 0:58c95c1c6b62
lcd
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mehrnaz | 0:58c95c1c6b62 | 1 | #include "mbed.h" |
mehrnaz | 0:58c95c1c6b62 | 2 | #include "TextLCD.h" |
mehrnaz | 0:58c95c1c6b62 | 3 | |
mehrnaz | 0:58c95c1c6b62 | 4 | TextLCD lcd(PC_8,PC_7,PC_6,PB_15,PB_14,PB_13,PB_12, TextLCD::LCD16x2); |
mehrnaz | 0:58c95c1c6b62 | 5 | |
mehrnaz | 0:58c95c1c6b62 | 6 | int main() { |
mehrnaz | 0:58c95c1c6b62 | 7 | lcd.cls(); |
mehrnaz | 0:58c95c1c6b62 | 8 | wait(0.001); |
mehrnaz | 0:58c95c1c6b62 | 9 | lcd.printf("Row 1!"); |
mehrnaz | 0:58c95c1c6b62 | 10 | lcd.locate(0,1); |
mehrnaz | 0:58c95c1c6b62 | 11 | lcd.printf("Row 2!"); |
mehrnaz | 0:58c95c1c6b62 | 12 | } |