Hexiwear team to share code, project ideas, trick and tips

Hexidraw - Hexiwear OLED Graphics library

19 Aug 2016

Hi all,

Since Hexiwear hasn't released their own official library for drawing on the OLED yet, and the other libraries need adjustments to make them work, I decided to make my own!

https://developer.mbed.org/users/keithm01/code/Hexidraw/

Right now it's capable of drawing pixels, basic rectangles, and circles with a custom width.

I'm working right now on expending it to include support for drawing images generated from the Resource Collection tool , text/fonts, arcs, hollow rectangles, and more!

The wiki page for the library contains an API reference and some sample code. I also have a sample project available that shows how you can draw the Olympic rings using the circle function: https://developer.mbed.org/users/keithm01/code/Hexidraw_Demo/

Please leave any suggestions and improvements here, or submit a pull request! I'd like to expand this to be a fully-functional graphics library for the Hexiwear that helps make drawing on the OLED a lot easier :)

20 Aug 2016

Update

Added image-drawing functionality for drawing the image data arrays exported for the Hexiwear. More information on generating the arrays via the official tools is avaliable at the Hexidraw api documentation: https://developer.mbed.org/users/keithm01/code/Hexidraw/wiki/API#drawing-images

Next up: Drawing text using fonts exported from the resource collector

20 Aug 2016

Update

I added an optional display buffer so you can queue up draw commands in a buffer, and they push them to the GRAM only when ready.

See how to enable and use it at: https://developer.mbed.org/users/keithm01/code/Hexidraw/wiki/API#display-buffer

Drawing Text: I've been trying for the last day to draw text on the screen, and I just can't figure out how to use Hexiwear's font arrays, even after looking at their code for reading them. If someone would like to help by adding the code needed to draw text I would really appreciate it!

So at this point if you want to draw text you should look at using the modified version of the Adafruit GFX library for Hexiwear which you can find here: https://developer.mbed.org/users/whatnick/code/Adafruit_GFX_1351/

02 Sep 2016

This example uses the OLED driver library ported from the KDS project. It has text working. https://developer.mbed.org/teams/Hexiwear/code/Hexi_OLED_Text_Example/