2018 revision to classic DataBus AVC code.
Dependencies: LSM303DLM Servo SerialGraphicLCD L3G4200D IncrementalEncoder SimpleShell
Diff: main.cpp
- Revision:
- 27:bfe141fad082
- Parent:
- 26:2dc31a801cc8
- Child:
- 29:cb2f55fbfe9c
--- a/main.cpp Fri Dec 21 21:23:53 2018 +0000 +++ b/main.cpp Fri Dec 21 21:26:59 2018 +0000 @@ -203,43 +203,9 @@ sh.attach(stats, "stats"); sh.run(); - /* - FILE *fp; - char buf[128]; - printf("Initializing the block device... "); - fflush(stdout); - int err = bd.init(); - printf("%s\n", (err ? "Fail :(" : "OK")); - - printf("Opening sdtest.txt..."); - fp = fopen("/log/sdtest.txt", "r"); - if(fp) { - while (!feof(fp)) { - fgets(buf, 127, fp); - printf(buf); - } - fclose(fp); - } - - printf("Opening config.txt..."); - fp = fopen("/etc/config.txt", "r"); - if(fp) { - while (!feof(fp)) { - fgets(buf, 127, fp); - printf(buf); - } - fclose(fp); - } -*/ - - //SystemReport sys_state(500); - while (true) { // Blink LED and wait 0.5 seconds led1 = !led1; wait(0.5f); - - // Following the main thread wait, report on the current system status - //sys_state.report_state(); } }