Modify the previous example to use NVStore for keeping track of how many times every different LED turned on This information must persist across system reboots! Print this information on STDout at every boot before running the application

Dependencies:   BSP_B-L475E-IOT01

Files at this revision

API Documentation at this revision

Comitter:
vicara
Date:
Thu Dec 06 15:54:33 2018 +0000
Parent:
0:063b251c6aed
Child:
2:4cfbd0da7242
Commit message:
use NVStore for keeping track of how many; times every different LED turned on

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Dec 06 15:53:04 2018 +0000
+++ b/main.cpp	Thu Dec 06 15:54:33 2018 +0000
@@ -118,7 +118,7 @@
             value_3+=1;
             nvstore.set(key_3, sizeof(value_3), &value_3);
         }
-      printf("Press the restart button to sample again.");
+      printf("Press the restart button to sample again.\n");
       
       fflush(stdout);
       int err = fclose(f);