CSE477 / swimate_v2

Dependencies:   Adafruit_GFX_128x64 DS3231 PinDetect SDFileSystem USBDevice mbed RealtimeMath MODSERIAL

Committer:
briggsa
Date:
Thu Jun 05 19:09:07 2014 +0000
Revision:
18:06b718f8e6fd
Parent:
8:8430a5c0914c
Child:
20:294eaeaf2ebb
Bluetooth essentially working, but requires not using USBSerial for some reason (or not using OLED :( )

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ellingjp 8:8430a5c0914c 1 #define SYNC_HOLD_TIME_MS 1000
ellingjp 8:8430a5c0914c 2 #define DEBOUNCE_TIME_MS 200
ellingjp 0:cd1fe4f0ed39 3
briggsa 18:06b718f8e6fd 4 //#define USE_OLED
ellingjp 8:8430a5c0914c 5 #ifdef USE_OLED
ellingjp 0:cd1fe4f0ed39 6 #define OLED_SETCURS(xpos,ypos) oled.setCursor(xpos,ypos);
ellingjp 0:cd1fe4f0ed39 7 #define OLED_CLEAR() oled.clearDisplay();
ellingjp 0:cd1fe4f0ed39 8
ellingjp 0:cd1fe4f0ed39 9 #define OLED_PRINT(x) oled.printf("%s", x); oled.display();
ellingjp 0:cd1fe4f0ed39 10 #define OLED_PRINTF(x,y) oled.printf(x, y); oled.display();
ellingjp 0:cd1fe4f0ed39 11 #define OLED_PRINTLN(x) oled.printf("%s\r\n", x); oled.display();
ellingjp 0:cd1fe4f0ed39 12 #define OLED_PRINTLNF(x,y) oled.printf(x,y); oled.printf("\r\n"); oled.display();
ellingjp 0:cd1fe4f0ed39 13 #define OLED_PRINTR(x) oled.printf("%s\r",x); oled.display();
ellingjp 0:cd1fe4f0ed39 14 #define OLED_PRINTFR(x,y) oled.printf(x,y); oled.printf("\r"); oled.display();
ellingjp 0:cd1fe4f0ed39 15
ellingjp 0:cd1fe4f0ed39 16 // Specify position
ellingjp 0:cd1fe4f0ed39 17 #define OLED_PRINTP(x,xpos,ypos) oled.setCursor(xpos,ypos); oled.printf("%s", x); oled.display();
ellingjp 0:cd1fe4f0ed39 18 #define OLED_PRINTPF(x,y,xpos,ypos) oled.setCursor(xpos,ypos); oled.printf(x, y); oled.display();
ellingjp 0:cd1fe4f0ed39 19 #define OLED_PRINTPLN(x,xpos,ypos) oled.setCursor(xpos,ypos); oled.printf("%s\r\n", x); oled.display();
ellingjp 0:cd1fe4f0ed39 20 #define OLED_PRINTPLNF(x,y,xpos,ypos) oled.setCursor(xpos,ypos); oled.printf(x,y); oled.printf("\r\n"); oled.display();
ellingjp 0:cd1fe4f0ed39 21 #define OLED_PRINTPR(x,xpos,ypos) oled.setCursor(xpos,ypos); oled.printf("%s\r",x); oled.display();
ellingjp 0:cd1fe4f0ed39 22 #define OLED_PRINTPFR(x,y,xpos,ypos) oled.setCursor(xpos,ypos); oled.printf(x,y); oled.printf("\r"); oled.display();
ellingjp 0:cd1fe4f0ed39 23 #else
ellingjp 0:cd1fe4f0ed39 24 #define OLED_SETCURS(xpos,ypos)
briggsa 18:06b718f8e6fd 25 #define OLED_CLEAR()
briggsa 18:06b718f8e6fd 26
ellingjp 0:cd1fe4f0ed39 27 #define OLED_PRINT(x)
ellingjp 0:cd1fe4f0ed39 28 #define OLED_PRINTF(x,y)
ellingjp 0:cd1fe4f0ed39 29 #define OLED_PRINTLN(x)
ellingjp 0:cd1fe4f0ed39 30 #define OLED_PRINTLNF(x,y)
ellingjp 0:cd1fe4f0ed39 31 #define OLED_PRINTR(x)
ellingjp 0:cd1fe4f0ed39 32 #define OLED_PRINTFR(x,y)
ellingjp 0:cd1fe4f0ed39 33
ellingjp 0:cd1fe4f0ed39 34 // Specify position
ellingjp 0:cd1fe4f0ed39 35 #define OLED_PRINTP(x,xpos,ypos)
ellingjp 0:cd1fe4f0ed39 36 #define OLED_PRINTPF(x,y,xpos,ypos)
ellingjp 0:cd1fe4f0ed39 37 #define OLED_PRINTPLN(x,xpos,ypos)
ellingjp 0:cd1fe4f0ed39 38 #define OLED_PRINTPLNF(x,y,xpos,ypos)
ellingjp 0:cd1fe4f0ed39 39 #define OLED_PRINTPR(x,xpos,ypos)
ellingjp 0:cd1fe4f0ed39 40 #define OLED_PRINTPFR(x,y,xpos,ypos)
ellingjp 0:cd1fe4f0ed39 41 #endif