Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Adafruit_GFX_128x64 DS3231 PinDetect SDFileSystem USBDevice mbed RealtimeMath MODSERIAL
Diff: main.h
- Revision:
- 1:93723df61425
- Parent:
- 0:cd1fe4f0ed39
--- a/main.h Thu May 08 20:01:10 2014 +0000 +++ b/main.h Thu May 08 20:59:29 2014 +0000 @@ -1,59 +1,4 @@ #define DMP_ERROR_RATE 1 #define SD_ERROR_RATE 2 -#define LOG_FILE "/sd/data.log" - -//#define PC_DEBUG -#ifdef PC_DEBUG - #define PC_PRINT(x) pc.printf("%s", x); - #define PC_PRINTF(x,y) pc.printf(x, y); - #define PC_PRINTLN(x) pc.printf("%s\r\n", x); - #define PC_PRINTLNF(x,y) pc.printf(x,y); pc.printf("\r\n"); - #define PC_PRINTR(x) pc.printf("%s\r",x); - #define PC_PRINTFR(x,y) pc.printf(x,y); pc.printf("\r"); -#else - #define PC_PRINT(x) - #define PC_PRINTF(x,y) - #define PC_PRINTLN(x) - #define PC_PRINTLNF(x,y) - #define PC_PRINTR(x) - #define PC_PRINTFR(x,y) -#endif - -#define OLED_DEBUG -#ifdef OLED_DEBUG - #define OLED_SETCURS(xpos,ypos) oled.setCursor(xpos,ypos); - #define OLED_CLEAR() oled.clearDisplay(); - - #define OLED_PRINT(x) oled.printf("%s", x); oled.display(); - #define OLED_PRINTF(x,y) oled.printf(x, y); oled.display(); - #define OLED_PRINTLN(x) oled.printf("%s\r\n", x); oled.display(); - #define OLED_PRINTLNF(x,y) oled.printf(x,y); oled.printf("\r\n"); oled.display(); - #define OLED_PRINTR(x) oled.printf("%s\r",x); oled.display(); - #define OLED_PRINTFR(x,y) oled.printf(x,y); oled.printf("\r"); oled.display(); - - // Specify position - #define OLED_PRINTP(x,xpos,ypos) oled.setCursor(xpos,ypos); oled.printf("%s", x); oled.display(); - #define OLED_PRINTPF(x,y,xpos,ypos) oled.setCursor(xpos,ypos); oled.printf(x, y); oled.display(); - #define OLED_PRINTPLN(x,xpos,ypos) oled.setCursor(xpos,ypos); oled.printf("%s\r\n", x); oled.display(); - #define OLED_PRINTPLNF(x,y,xpos,ypos) oled.setCursor(xpos,ypos); oled.printf(x,y); oled.printf("\r\n"); oled.display(); - #define OLED_PRINTPR(x,xpos,ypos) oled.setCursor(xpos,ypos); oled.printf("%s\r",x); oled.display(); - #define OLED_PRINTPFR(x,y,xpos,ypos) oled.setCursor(xpos,ypos); oled.printf(x,y); oled.printf("\r"); oled.display(); -#else - #define OLED_SETCURS(xpos,ypos) - - #define OLED_PRINT(x) - #define OLED_PRINTF(x,y) - #define OLED_PRINTLN(x) - #define OLED_PRINTLNF(x,y) - #define OLED_PRINTR(x) - #define OLED_PRINTFR(x,y) - - // Specify position - #define OLED_PRINTP(x,xpos,ypos) - #define OLED_PRINTPF(x,y,xpos,ypos) - #define OLED_PRINTPLN(x,xpos,ypos) - #define OLED_PRINTPLNF(x,y,xpos,ypos) - #define OLED_PRINTPR(x,xpos,ypos) - #define OLED_PRINTPFR(x,y,xpos,ypos) -#endif \ No newline at end of file +#define LOG_FILE "/sd/data.log" \ No newline at end of file