Hi Angus,
The library is very good but I am just not using it for the sake of the functionality that U8glib is providing.
I need the API like this :
void drawBitmapP(u8g_uint_t x, u8g_uint_t y, u8g_uint_t cnt, u8g_uint_t h, const u8g_pgm_uint8_t *bitmap)
u8g : Pointer to the u8g structure (C interface only).
x: X-position (left position of the bitmap).
y: Y-position (upper position of the bitmap).
cnt: Number of bytes of the bitmap in horizontal direction. The width of the bitmap is cnt*8.
h: Height of the bitmap.
bitmap is an array which light up the pixels where 1 is there as an bit and if 0 then that bit is black.
It would be just wonderful, if you could provide us this API.
Thanks in advance !!
Missing API to draw Bitmap using const uint8_t array[] PROGMEM
-
- Freetronics Staff
- Posts:853
- Joined:Tue Apr 09, 2013 11:19 pm
- Location:Melbourne, Australia
- Contact:
Re: Missing API to draw Bitmap using const uint8_t array[] PROGMEM
Hi Amit,
We don't have that exact bitmap support, but we do have support for .BMP files - you can create a 1 bit-per-pixel .BMP file for the layout that you're after, and use the OLED128 library to draw that: https://github.com/freetronics/FTOLED/w ... aying-BMPs
Otherwise, people have successfully used the u8glib library with the OLED128 module. If you experience problems then let us know, we might be able to help.
Angus
We don't have that exact bitmap support, but we do have support for .BMP files - you can create a 1 bit-per-pixel .BMP file for the layout that you're after, and use the OLED128 library to draw that: https://github.com/freetronics/FTOLED/w ... aying-BMPs
Otherwise, people have successfully used the u8glib library with the OLED128 module. If you experience problems then let us know, we might be able to help.
Angus