Zoltan Hudak / Mbed 2 deprecated Menu_Hello

Dependencies:   Menu mbed

Revision:
1:cc0fa853f718
Parent:
0:f7514c3f33b6
Child:
2:92f4dad1b937
--- a/main.cpp	Tue Dec 08 16:26:37 2015 +0000
+++ b/main.cpp	Thu Nov 30 18:26:58 2017 +0000
@@ -39,8 +39,8 @@
  *       GND
  *
  *
- * NOTE: When creating an object the MenuSystem constructor connects an internal pull-up resistor
- *       to each digital input used by the MenuSytem push buttons.
+ * NOTE: When creating a MenuSystem the constructor automatically connects 
+ * an internal pull-up resistor to each digital input used by the MenuSytem push buttons.
  */
 
 #include "mbed.h"
@@ -70,7 +70,7 @@
    || defined(TARGET_K20D50M) || defined(TARGET_K22F) \
    || defined(TARGET_NRF51822) \
    || defined(TARGET_RZ_A1H)
-DigitalIn   buttons[] = { DigitalIn(D2), DigitalIn(D3), DigitalIn(D4), DigitalIn(D5) };
+DigitalIn   buttons[] = { DigitalIn(PC_13), DigitalIn(D3), DigitalIn(D4), DigitalIn(D5) };
 #endif
 
 /*
@@ -84,7 +84,7 @@
 /*
  * Create a menu system object associated with the push buttons
  */
-MenuSystem  menuSystem(buttons, 4 /*, 300*/); // name of button array, number of buttons, debounce time in ms
+MenuSystem  menuSystem(buttons, 4 /*=300*/); // name of button array, number of buttons, debounce time in ms
 
 /*
  * Create as many menus as you need.
@@ -119,8 +119,7 @@
 int main(void) {
 
     // Attach 'button pressed' event handler functions to the individual push buttons.
-    // NOTE: In different menus the same button can be linked with different function.
-    //       It is not compulsory to attach a function to all push buttons in each menu.
+    // NOTE: It is not compulsory to attach a function to all push buttons in each menu.
     //
 
     // 'Main' menu: