Edutech IoT Team
/
Eg6_LCD_CharacterDisplay
Displays HELLO using Character Display function
Diff: main.cpp
- Revision:
- 1:033c7aaa6898
- Parent:
- 0:c023272f2367
--- a/main.cpp Tue Oct 06 09:18:12 2015 +0000 +++ b/main.cpp Sat Oct 10 06:16:24 2015 +0000 @@ -1,13 +1,15 @@ -#include "mbed.h" -#include "C12832.h" +#include "mbed.h" // Basic Library required for onchip peripherals +#include "C12832.h" // Library for SPI based LCD -C12832 lcd(p5, p7, p6, p8, p11); +/* Create Objects */ +C12832 lcd(p5, p7, p6, p8, p11); // Initialize lcd object with SPI pins +/* Main Program */ int main() { - lcd.cls(); + lcd.cls(); // Clear LCD Screen - lcd._putc('H'); + lcd._putc('H'); // Display single character lcd._putc('E'); lcd._putc('L'); lcd._putc('L');