Skip to content

New bitmap copy function and bug fixes

Compare
Choose a tag to compare
@bitbank2 bitbank2 released this 07 Apr 18:41
· 115 commits to master since this release
b5d5857

This release is focused on new functionality to allow OneBitDisplay to be used as a general purpose 1-bpp graphics library. The 'virtual' display option allows the creation of any sized 1-bpp bitmap. The only limitation was that the internal memory format mimicked OLED/LCD memory layout and was not compatible with other types of displays. I added the obdCopy() function which allows the internal bitmap data to be converted to any output format desired. It also includes options to rotate+flip the bitmap for maximum flexibility.

Another change in this release is the separation of the generic C code from the Arduino-specific parts. This will allow easy integration of the code into other embedded environments, and PCs/mobile.

This release also includes bug fixes for drawing functions which didn't properly support larger (virtual) bitmaps correctly.