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:
2:ef14c6dd6b93
Parent:
1:82ccc138bbe6
--- a/oled_info.h	Fri Aug 19 16:28:09 2016 +0000
+++ b/oled_info.h	Fri Aug 19 22:12:11 2016 +0000
@@ -1,18 +1,14 @@
 
 
-#define OLED_WIDTH 96
-#define OLED_HEIGHT 96
-
-#define OLED_COL_OFFSET 16
-
 /* REMAP settings */
-
+//Can be used for transition settings
 #define REMAP_HORIZONTAL_INCREMENT ( 0 )
 #define REMAP_VERTICAL_INCREMENT   ( 1 << 0 )
 
 #define REMAP_COLUMNS_LEFT_TO_RIGHT ( 0 )
 #define REMAP_COLUMNS_RIGHT_TO_LEFT ( 1 << 1 )
 
+//rgb or bgr
 #define REMAP_ORDER_ABC ( 0 )
 #define REMAP_ORDER_CBA ( 1 << 2 )