Library for drawing on the Hexiwear's OLED - more features being actively worked on
Dependents: Hexidraw_Demo Hexiwear-FinalProject_v2
Discussion: https://developer.mbed.org/forum/team-4615-Hexiwear-community/topic/26595/
Hexidraw is a library for drawing on the Hexiwear's OLED. Be aware that it is not very optimized, so drawing may be slow, especially when drawing on large areas of the screen.
Please see the wiki for API documentation.
Features:
- Screen fill with a color
- Drawing filled rectangles
- Drawing circles with a set radius and line width
- Setting individual pixels
- Turning on and off the OLED's sleep mode
- Drawing images
Example project: https://developer.mbed.org/users/keithm01/code/Hexidraw_Demo/
Revision 5:00876457cad4, committed 2016-08-20
- Comitter:
- keithm01
- Date:
- Sat Aug 20 16:35:58 2016 +0000
- Parent:
- 4:9c0b59439725
- Commit message:
- Changed default value to not using the buffer
Changed in this revision
hexidraw.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/hexidraw.h Sat Aug 20 16:34:55 2016 +0000 +++ b/hexidraw.h Sat Aug 20 16:35:58 2016 +0000 @@ -24,7 +24,7 @@ #define OLED_SKIP_IMAGE_HEADER( imgPtr ) ( (const uint8_t*)(imgPtr) + OLED_BMP_HEADER_BYTE_SIZE ) - #define USE_BUFFER 1 + #define USE_BUFFER 0 /* borrowed from the Adafruit library at: https://developer.mbed.org/teams/ELLA-Robotics-Inc/code/Adafruit_GFX_1351/