CSE477 / swimate_v2

Dependencies:   Adafruit_GFX_128x64 DS3231 PinDetect SDFileSystem USBDevice mbed RealtimeMath MODSERIAL

Committer:
ellingjp
Date:
Thu May 08 20:01:10 2014 +0000
Revision:
0:cd1fe4f0ed39
Child:
1:93723df61425
Child:
2:a28cc676a454
Child:
5:7c2e7d657716
Child:
7:33a74adff0ff
Initial commit.  Ready for data gathering.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ellingjp 0:cd1fe4f0ed39 1 #define DMP_ERROR_RATE 1
ellingjp 0:cd1fe4f0ed39 2 #define SD_ERROR_RATE 2
ellingjp 0:cd1fe4f0ed39 3
ellingjp 0:cd1fe4f0ed39 4 #define LOG_FILE "/sd/data.log"
ellingjp 0:cd1fe4f0ed39 5
ellingjp 0:cd1fe4f0ed39 6 //#define PC_DEBUG
ellingjp 0:cd1fe4f0ed39 7 #ifdef PC_DEBUG
ellingjp 0:cd1fe4f0ed39 8 #define PC_PRINT(x) pc.printf("%s", x);
ellingjp 0:cd1fe4f0ed39 9 #define PC_PRINTF(x,y) pc.printf(x, y);
ellingjp 0:cd1fe4f0ed39 10 #define PC_PRINTLN(x) pc.printf("%s\r\n", x);
ellingjp 0:cd1fe4f0ed39 11 #define PC_PRINTLNF(x,y) pc.printf(x,y); pc.printf("\r\n");
ellingjp 0:cd1fe4f0ed39 12 #define PC_PRINTR(x) pc.printf("%s\r",x);
ellingjp 0:cd1fe4f0ed39 13 #define PC_PRINTFR(x,y) pc.printf(x,y); pc.printf("\r");
ellingjp 0:cd1fe4f0ed39 14 #else
ellingjp 0:cd1fe4f0ed39 15 #define PC_PRINT(x)
ellingjp 0:cd1fe4f0ed39 16 #define PC_PRINTF(x,y)
ellingjp 0:cd1fe4f0ed39 17 #define PC_PRINTLN(x)
ellingjp 0:cd1fe4f0ed39 18 #define PC_PRINTLNF(x,y)
ellingjp 0:cd1fe4f0ed39 19 #define PC_PRINTR(x)
ellingjp 0:cd1fe4f0ed39 20 #define PC_PRINTFR(x,y)
ellingjp 0:cd1fe4f0ed39 21 #endif
ellingjp 0:cd1fe4f0ed39 22
ellingjp 0:cd1fe4f0ed39 23 #define OLED_DEBUG
ellingjp 0:cd1fe4f0ed39 24 #ifdef OLED_DEBUG
ellingjp 0:cd1fe4f0ed39 25 #define OLED_SETCURS(xpos,ypos) oled.setCursor(xpos,ypos);
ellingjp 0:cd1fe4f0ed39 26 #define OLED_CLEAR() oled.clearDisplay();
ellingjp 0:cd1fe4f0ed39 27
ellingjp 0:cd1fe4f0ed39 28 #define OLED_PRINT(x) oled.printf("%s", x); oled.display();
ellingjp 0:cd1fe4f0ed39 29 #define OLED_PRINTF(x,y) oled.printf(x, y); oled.display();
ellingjp 0:cd1fe4f0ed39 30 #define OLED_PRINTLN(x) oled.printf("%s\r\n", x); oled.display();
ellingjp 0:cd1fe4f0ed39 31 #define OLED_PRINTLNF(x,y) oled.printf(x,y); oled.printf("\r\n"); oled.display();
ellingjp 0:cd1fe4f0ed39 32 #define OLED_PRINTR(x) oled.printf("%s\r",x); oled.display();
ellingjp 0:cd1fe4f0ed39 33 #define OLED_PRINTFR(x,y) oled.printf(x,y); oled.printf("\r"); oled.display();
ellingjp 0:cd1fe4f0ed39 34
ellingjp 0:cd1fe4f0ed39 35 // Specify position
ellingjp 0:cd1fe4f0ed39 36 #define OLED_PRINTP(x,xpos,ypos) oled.setCursor(xpos,ypos); oled.printf("%s", x); oled.display();
ellingjp 0:cd1fe4f0ed39 37 #define OLED_PRINTPF(x,y,xpos,ypos) oled.setCursor(xpos,ypos); oled.printf(x, y); oled.display();
ellingjp 0:cd1fe4f0ed39 38 #define OLED_PRINTPLN(x,xpos,ypos) oled.setCursor(xpos,ypos); oled.printf("%s\r\n", x); oled.display();
ellingjp 0:cd1fe4f0ed39 39 #define OLED_PRINTPLNF(x,y,xpos,ypos) oled.setCursor(xpos,ypos); oled.printf(x,y); oled.printf("\r\n"); oled.display();
ellingjp 0:cd1fe4f0ed39 40 #define OLED_PRINTPR(x,xpos,ypos) oled.setCursor(xpos,ypos); oled.printf("%s\r",x); oled.display();
ellingjp 0:cd1fe4f0ed39 41 #define OLED_PRINTPFR(x,y,xpos,ypos) oled.setCursor(xpos,ypos); oled.printf(x,y); oled.printf("\r"); oled.display();
ellingjp 0:cd1fe4f0ed39 42 #else
ellingjp 0:cd1fe4f0ed39 43 #define OLED_SETCURS(xpos,ypos)
ellingjp 0:cd1fe4f0ed39 44
ellingjp 0:cd1fe4f0ed39 45 #define OLED_PRINT(x)
ellingjp 0:cd1fe4f0ed39 46 #define OLED_PRINTF(x,y)
ellingjp 0:cd1fe4f0ed39 47 #define OLED_PRINTLN(x)
ellingjp 0:cd1fe4f0ed39 48 #define OLED_PRINTLNF(x,y)
ellingjp 0:cd1fe4f0ed39 49 #define OLED_PRINTR(x)
ellingjp 0:cd1fe4f0ed39 50 #define OLED_PRINTFR(x,y)
ellingjp 0:cd1fe4f0ed39 51
ellingjp 0:cd1fe4f0ed39 52 // Specify position
ellingjp 0:cd1fe4f0ed39 53 #define OLED_PRINTP(x,xpos,ypos)
ellingjp 0:cd1fe4f0ed39 54 #define OLED_PRINTPF(x,y,xpos,ypos)
ellingjp 0:cd1fe4f0ed39 55 #define OLED_PRINTPLN(x,xpos,ypos)
ellingjp 0:cd1fe4f0ed39 56 #define OLED_PRINTPLNF(x,y,xpos,ypos)
ellingjp 0:cd1fe4f0ed39 57 #define OLED_PRINTPR(x,xpos,ypos)
ellingjp 0:cd1fe4f0ed39 58 #define OLED_PRINTPFR(x,y,xpos,ypos)
ellingjp 0:cd1fe4f0ed39 59 #endif