Adafruit-GFX porting for mbed

Dependents:   Adafruit_SHARP_Memory_Display

Fork of Adafruit-GFX by EIC

Files at this revision

API Documentation at this revision

Comitter:
marcpl
Date:
Tue Jun 23 16:47:37 2015 +0000
Parent:
3:3ffdf181555c
Commit message:
Implement the setRotation() method.

Changed in this revision

Adafruit_GFX.h Show annotated file Show diff for this revision Revisions of this file
--- a/Adafruit_GFX.h	Tue May 27 10:47:49 2014 +0000
+++ b/Adafruit_GFX.h	Tue Jun 23 16:47:37 2015 +0000
@@ -153,7 +153,9 @@
     int16_t width(void) {
         return _width;
     };
-    void setRotation(uint8_t r);
+    void setRotation(uint8_t r) {
+        rotation = r;
+    }
 
     uint8_t getRotation(void) {
         rotation%=4;