Adafruit-GFX porting for mbed
Dependents: RGB_matrix_Panel RGB_matrix_Panel_modif RGB_matrix_Panel Pmod_OLEDrgb_ALS1_K64F ... more
Revision 4:ca74c390a0de, committed 2015-06-23
- 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;