KBrat-SSD541-HW-4_2

Dependencies:   SLCD mbed

Fork of blink_kl46z_button_LCD by Stanley Cohen

Files at this revision

API Documentation at this revision

Comitter:
tisbrat
Date:
Mon Sep 12 05:02:56 2016 +0000
Parent:
3:fc189dd7ac64
Commit message:
KBrat-SSD541-HW-4_2

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Aug 24 16:37:09 2016 +0000
+++ b/main.cpp	Mon Sep 12 05:02:56 2016 +0000
@@ -6,14 +6,14 @@
 #define NUMBUTS 2
 #define LBUT PTC12  // port addresses for buttons
 #define RBUT PTC3
-#define BLINKTIME 0.3 // in seconds
-#define BUTTONTIME 0.2
-#define LCDCHARLEN 10
+#define BLINKTIME 0.2 // Time the led is ON is 200ms or 0.2 seconds.
+#define BUTTONTIME 0.5 // Time the led is OFF is 500ms or 0.5 seconds.
+#define LCDCHARLEN 22
 #define NUMMESS 2
-#define LRED "RED"
-#define LGREEN "GREN"
-#define PRED "RED\r\n"
-#define PGREEN "GREEN\r\n"
+#define LRED "RED" // LCD display when red button is pushed.
+#define LGREEN "GREN" // LCD display when green button is pushed.
+#define PRED "RED BUTTON PUSHED\r\n" // Serial display when red button is pushed.
+#define PGREEN "GREEN BUTTON PUSHED\r\n" // Serial display when green button is pushed.
 #define PROGNAME "blink_kl46z_buttton LCD v2\r\n"
 
 // slightly more interesting blinky 140814 sc