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:
1:82ccc138bbe6
Parent:
0:2d3fcb6dabd4
Child:
2:ef14c6dd6b93
--- a/hexidraw.h	Fri Aug 19 01:17:28 2016 +0000
+++ b/hexidraw.h	Fri Aug 19 16:28:09 2016 +0000
@@ -26,6 +26,8 @@
             void pixel(int16_t x, int16_t y, uint16_t color);
             void cursor(int x, int y);
             void rect(uint16_t x, uint16_t y, uint16_t w, uint16_t h, uint16_t fillcolor);
+            void dim();
+            void clear(uint16_t color);
         private:
             SPI _spi;
             DigitalOut _cs, _dc, _reset;