2018 revision to classic DataBus AVC code.

Dependencies:   LSM303DLM Servo SerialGraphicLCD L3G4200D IncrementalEncoder SimpleShell

Revision:
4:de7feb458652
Parent:
1:7019a60fd585
Child:
7:1f2661b840ed
--- a/main.cpp	Sun Dec 02 17:48:23 2018 +0000
+++ b/main.cpp	Mon Dec 03 21:51:14 2018 +0000
@@ -10,12 +10,13 @@
 #include "SDBlockDevice.h"
 #include "FATFileSystem.h"
 #include "SimpleShell.h"
+#include "Config.h"
 
 Serial pc(USBTX, USBRX);
 //SDBlockDevice bd(p5, p6, p7, p8); // MOSI, MISO, CLK, CS
 //FATFileSystem ffs("log", &bd);
 LocalFileSystem lfs("etc");
-
+Config config;
 SimpleShell sh;
 
 DigitalOut led1(LED1);
@@ -33,6 +34,11 @@
     printf("Bootup...\n");
     fflush(stdout);
     
+    printf("Loading config...\n");
+    if (config.load("/etc/2018cfg.txt")) {
+        printf("error loading config\n");
+    }
+    
     sh.attach(test, "test");
     
     thread.start(callback(&sh, &SimpleShell::run));