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
Diff: main.h
- Revision:
- 20:294eaeaf2ebb
- Parent:
- 18:06b718f8e6fd
- Child:
- 22:9350752f5414
diff -r 4f4f7bc4a3fb -r 294eaeaf2ebb main.h
--- a/main.h Thu Jun 05 19:23:53 2014 +0000
+++ b/main.h Thu Jun 05 20:06:41 2014 +0000
@@ -1,11 +1,13 @@
#define SYNC_HOLD_TIME_MS 1000
#define DEBOUNCE_TIME_MS 200
-//#define USE_OLED
+#define USE_OLED
#ifdef USE_OLED
#define OLED_SETCURS(xpos,ypos) oled.setCursor(xpos,ypos);
#define OLED_CLEAR() oled.clearDisplay();
+ #define OLED_DRAWPIXEL(x,y,color) oled.drawPixel(x, y, color);
+
#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();
@@ -24,6 +26,8 @@
#define OLED_SETCURS(xpos,ypos)
#define OLED_CLEAR()
+ #define OLED_DRAWPIXEL(x, y, color)
+
#define OLED_PRINT(x)
#define OLED_PRINTF(x,y)
#define OLED_PRINTLN(x)