FRDM-KL46Z board sLCD demo code

Dependencies:   SLCD mbed

Fork of FRDM-KL46Z LCD rtc Demo by Paul Staron

Revision:
5:15c484c41006
Parent:
4:15da67d64f85
Child:
6:10b73ebdba3d
--- a/main.cpp	Sat Sep 27 16:45:43 2014 +0000
+++ b/main.cpp	Sun Sep 28 01:50:26 2014 +0000
@@ -19,7 +19,7 @@
 //======== DEFINES ============================================//
 //¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯//
 #ifdef LED_BLINK_TEST
-#define PWMDWELL 50    // milliseconds
+#define PWMDWELL 50
 #define DFDELTA 0.01
 #endif //RTC_CLOCK_TEST
 
@@ -134,8 +134,8 @@
     }
     wait(1);
     
-    switchinput1_INT.rise(switchinput1_INTIRQ);    // start set Minutes IRQ
-    switchinput3_INT.rise(switchinput3_INTIRQ);    // start set Hours IRQ
+    switchinput1_INT.rise(switchinput1_INTIRQ);
+    switchinput3_INT.rise(switchinput3_INTIRQ);
 #endif //RTC_CLOCK_TEST
 }
 #endif //RTC_CLOCK_TEST || LED_BLINK_TEST
@@ -167,13 +167,15 @@
     time_t seconds = time(NULL);
 
     if (display_timer > 6) {
-        strftime(buffer, 4, "%H%M", localtime(&seconds));    // display Hours,Minutes for 2 seconds
+        // display Hours,Minutes for 2 seconds
+        strftime(buffer, 4, "%H%M", localtime(&seconds));
         slcd.Colon(1);
         redled_DO = 0;
         slcd.DP2(0);
         greenled_DO = 1;
     } else {
-        strftime(buffer, 4, "%M%S", localtime(&seconds));    // display Minutes,Seconds for 8 seconds
+        // display Minutes,Seconds for 8 seconds
+        strftime(buffer, 4, "%M%S", localtime(&seconds));
         slcd.Colon(0);
         redled_DO = 1;
         slcd.DP2(1);