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
main.h
- Committer:
- ellingjp
- Date:
- 2014-05-09
- Revision:
- 3:9aa7c37212b5
- Parent:
- 2:a28cc676a454
File content as of revision 3:9aa7c37212b5:
#define DMP_ERROR_RATE 1 #define SD_ERROR_RATE 2 #define RAW_ACCEL_FILE "/sd/raw_accel.log" #define LIN_ACCEL_FILE "/sd/lin_accel.log" #define WORLD_ACCEL_FILE "/sd/world_accel.log" #define GRAV_FILE "/sd/gravity.log" #define QUAT_FILE "/sd/quaternians.log" #define SPLITS_FILE "/sd/split_times.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