Swimate V2 without RTOS code

Dependencies:   Adafruit_GFX_128x64 DS3231 PinDetect SDFileSystem USBDevice mbed RealtimeMath MODSERIAL

Revision:
24:f2503d1256ad
Parent:
23:80083138d609
--- a/main.h	Sun Jun 08 04:08:41 2014 +0000
+++ b/main.h	Mon Jun 09 04:55:16 2014 +0000
@@ -5,6 +5,7 @@
 #define DEBOUNCE_TIME_MS 200
 
 #include "Adafruit_SSD1306.h"
+#include "DS3231.h"
 
 #define USE_OLED
 #ifdef USE_OLED
@@ -15,7 +16,7 @@
     #define OLED_SETCURS(xpos,ypos) oled.setCursor(xpos,ypos);
     #define OLED_CLEAR() oled.clearDisplay(); oled.display();
     
-    #define OLED_DRAWPIXEL(x,y,color) oled.drawPixel(x, y, color);
+    #define OLED_DRAWPIXEL(x,y,color) oled.drawPixel(x, y, color); oled.display();
     
     #define OLED_PRINT(x) oled.printf("%s", x); oled.display();
     #define OLED_PRINTF(x,y) oled.printf(x, y); oled.display();
@@ -53,4 +54,7 @@
     #define OLED_PRINTPFR(x,y,xpos,ypos)
 #endif
 
+extern DS3231 rtc;
+
+
 #endif // _MAIN_H
\ No newline at end of file