Edutech IoT Team
/
Eg5_LCD_Pixels
Display Some Pixels on LCD C12832
Revision 1:045707712c1f, committed 2015-10-07
- Comitter:
- dwijaybane
- Date:
- Wed Oct 07 12:40:54 2015 +0000
- Parent:
- 0:8b93035ef74d
- Commit message:
- updated comments
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 8b93035ef74d -r 045707712c1f main.cpp --- 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