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@7:33a74adff0ff, 2014-05-17 (annotated)
- Committer:
- ellingjp
- Date:
- Sat May 17 01:20:31 2014 +0000
- Revision:
- 7:33a74adff0ff
- Parent:
- 0:cd1fe4f0ed39
- Child:
- 8:8430a5c0914c
Refactor -- introduced bug that causes garbage to be received from mpu
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| ellingjp | 0:cd1fe4f0ed39 | 1 | #define LOG_FILE "/sd/data.log" |
| ellingjp | 0:cd1fe4f0ed39 | 2 | |
| ellingjp | 7:33a74adff0ff | 3 | // #define OLED_DEBUG |
| ellingjp | 0:cd1fe4f0ed39 | 4 | #ifdef OLED_DEBUG |
| ellingjp | 0:cd1fe4f0ed39 | 5 | #define OLED_SETCURS(xpos,ypos) oled.setCursor(xpos,ypos); |
| ellingjp | 0:cd1fe4f0ed39 | 6 | #define OLED_CLEAR() oled.clearDisplay(); |
| ellingjp | 0:cd1fe4f0ed39 | 7 | |
| ellingjp | 0:cd1fe4f0ed39 | 8 | #define OLED_PRINT(x) oled.printf("%s", x); oled.display(); |
| ellingjp | 0:cd1fe4f0ed39 | 9 | #define OLED_PRINTF(x,y) oled.printf(x, y); oled.display(); |
| ellingjp | 0:cd1fe4f0ed39 | 10 | #define OLED_PRINTLN(x) oled.printf("%s\r\n", x); oled.display(); |
| ellingjp | 0:cd1fe4f0ed39 | 11 | #define OLED_PRINTLNF(x,y) oled.printf(x,y); oled.printf("\r\n"); oled.display(); |
| ellingjp | 0:cd1fe4f0ed39 | 12 | #define OLED_PRINTR(x) oled.printf("%s\r",x); oled.display(); |
| ellingjp | 0:cd1fe4f0ed39 | 13 | #define OLED_PRINTFR(x,y) oled.printf(x,y); oled.printf("\r"); oled.display(); |
| ellingjp | 0:cd1fe4f0ed39 | 14 | |
| ellingjp | 0:cd1fe4f0ed39 | 15 | // Specify position |
| ellingjp | 0:cd1fe4f0ed39 | 16 | #define OLED_PRINTP(x,xpos,ypos) oled.setCursor(xpos,ypos); oled.printf("%s", x); oled.display(); |
| ellingjp | 0:cd1fe4f0ed39 | 17 | #define OLED_PRINTPF(x,y,xpos,ypos) oled.setCursor(xpos,ypos); oled.printf(x, y); oled.display(); |
| ellingjp | 0:cd1fe4f0ed39 | 18 | #define OLED_PRINTPLN(x,xpos,ypos) oled.setCursor(xpos,ypos); oled.printf("%s\r\n", x); oled.display(); |
| ellingjp | 0:cd1fe4f0ed39 | 19 | #define OLED_PRINTPLNF(x,y,xpos,ypos) oled.setCursor(xpos,ypos); oled.printf(x,y); oled.printf("\r\n"); oled.display(); |
| ellingjp | 0:cd1fe4f0ed39 | 20 | #define OLED_PRINTPR(x,xpos,ypos) oled.setCursor(xpos,ypos); oled.printf("%s\r",x); oled.display(); |
| ellingjp | 0:cd1fe4f0ed39 | 21 | #define OLED_PRINTPFR(x,y,xpos,ypos) oled.setCursor(xpos,ypos); oled.printf(x,y); oled.printf("\r"); oled.display(); |
| ellingjp | 0:cd1fe4f0ed39 | 22 | #else |
| ellingjp | 0:cd1fe4f0ed39 | 23 | #define OLED_SETCURS(xpos,ypos) |
| ellingjp | 0:cd1fe4f0ed39 | 24 | |
| ellingjp | 0:cd1fe4f0ed39 | 25 | #define OLED_PRINT(x) |
| ellingjp | 0:cd1fe4f0ed39 | 26 | #define OLED_PRINTF(x,y) |
| ellingjp | 0:cd1fe4f0ed39 | 27 | #define OLED_PRINTLN(x) |
| ellingjp | 0:cd1fe4f0ed39 | 28 | #define OLED_PRINTLNF(x,y) |
| ellingjp | 0:cd1fe4f0ed39 | 29 | #define OLED_PRINTR(x) |
| ellingjp | 0:cd1fe4f0ed39 | 30 | #define OLED_PRINTFR(x,y) |
| ellingjp | 0:cd1fe4f0ed39 | 31 | |
| ellingjp | 0:cd1fe4f0ed39 | 32 | // Specify position |
| ellingjp | 0:cd1fe4f0ed39 | 33 | #define OLED_PRINTP(x,xpos,ypos) |
| ellingjp | 0:cd1fe4f0ed39 | 34 | #define OLED_PRINTPF(x,y,xpos,ypos) |
| ellingjp | 0:cd1fe4f0ed39 | 35 | #define OLED_PRINTPLN(x,xpos,ypos) |
| ellingjp | 0:cd1fe4f0ed39 | 36 | #define OLED_PRINTPLNF(x,y,xpos,ypos) |
| ellingjp | 0:cd1fe4f0ed39 | 37 | #define OLED_PRINTPR(x,xpos,ypos) |
| ellingjp | 0:cd1fe4f0ed39 | 38 | #define OLED_PRINTPFR(x,y,xpos,ypos) |
| ellingjp | 0:cd1fe4f0ed39 | 39 | #endif |