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-17
- Revision:
- 7:33a74adff0ff
- Parent:
- 0:cd1fe4f0ed39
- Child:
- 8:8430a5c0914c
File content as of revision 7:33a74adff0ff:
#define LOG_FILE "/sd/data.log"
// #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