MBED NRF51 Arduboy port

Revision:
3:df305b314063
Parent:
2:e3ef9f476913
Child:
4:63cfe7ff1c02
--- a/abstractarduboy.cpp	Fri Jan 06 22:29:05 2017 +0000
+++ b/abstractarduboy.cpp	Sat Jan 07 12:43:36 2017 +0000
@@ -1,11 +1,5 @@
 #include "abstractarduboy.h"
 
-#define _BV(b) (1UL << (b))
-#define min(a,b) (((a)<(b))?(a):(b))
-#define max(a,b) (((a)>(b))?(a):(b))
-#define abs(a) (((a) < 0) ? -(a) : (a))
-#define pgm_read_byte(a) 1
-
 AbstractArduboy::AbstractArduboy()
 {
     frameRate = 60;
@@ -141,11 +135,21 @@
   fillScreen(0);
 }
 
+void AbstractArduboy::clear()
+{
+    fillScreen(0);    
+}
+
 void AbstractArduboy::clearDisplay()
 {
     fillScreen(0);
 }
 
+void AbstractArduboy::display()
+{
+  this->drawScreen(sBuffer);
+}
+
 void AbstractArduboy::drawPixel(int x, int y, uint8_t color)
 {
 #ifdef PIXEL_SAFE_MODE
@@ -669,7 +673,5 @@
     b = t;
 }
 
-void AbstractArduboy::display()
-{
-  this->drawScreen(sBuffer);
-}
+bool AbstractArduboy::ArduboyAudio::enabled()
+{}