Adafruit-GFX porting for mbed

Dependents:   RGB_matrix_Panel RGB_matrix_Panel_modif RGB_matrix_Panel Pmod_OLEDrgb_ALS1_K64F ... more

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
diff -r 3ffdf181555c -r ca74c390a0de Adafruit_GFX.h
--- 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;