Edutech IoT Team
/
Eg5_LCD_Pixels
Display Some Pixels on LCD C12832
Diff: main.cpp
- Revision:
- 1:045707712c1f
- Parent:
- 0:8b93035ef74d
--- a/main.cpp Tue Oct 06 07:57:19 2015 +0000 +++ b/main.cpp Wed Oct 07 12:40:54 2015 +0000 @@ -1,11 +1,13 @@ -#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.pixel(10,10,1); // first pixel lcd.pixel(11,11,1); // 2nd diagonal pixel