Edutech IoT Team / Mbed 2 deprecated Eg6_LCD_CharacterDisplay

Dependencies:   C12832 mbed

Files at this revision

API Documentation at this revision

Comitter:
dwijaybane
Date:
Sat Oct 10 06:16:24 2015 +0000
Parent:
0:c023272f2367
Commit message:
comments updated

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r c023272f2367 -r 033c7aaa6898 main.cpp
--- 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');