I'm looking for a "small" 1.3" OLED driver (SH1106) to display 4 rows of text.
Being a full graphics display I'm not sure it makes a difference but I'm hoping there is a way to reduce the ProMini required resources. I've have the U8gLib running and it requires more µP resources than I would like.
Has anyone run into a lower capability driver for this device?
Thanks
John
JohnRob:
I'm looking for a "small" 1.3" OLED driver (SH1106) to display 4 rows of text.
Being a full graphics display I'm not sure it makes a difference but I'm hoping there is a way to reduce the ProMini required resources. I've have the U8gLib running and it requires more µP resources than I would like.
Has anyone run into a lower capability driver for this device?
Thanks
John
You can try my oled_96 library; on AVR it defaults to not use a back buffer and therefore only needs a few bytes of local vars to draw text. It supports SSD1306 and SH1106. To use a SH1106 display, choose OLED_132x64 as the display type:
Larry's OLED library
If it's just text you're after then this library Basic/OLED_Functs.ino at master · esp8266/Basic · GitHub and also download the fonts.h from there and that is a really small library.
The only difference though is you will need to change this
static void setXY(unsigned char row, unsigned char col)
{
sendcommand(0xb0 + row); //set page address
sendcommand(0x00 + (8 * col & 0x0f)); //set low col address
sendcommand(0x10 + ((8 * col >> 4) & 0x0f)); //set high col address
}
to this
static void setXY(unsigned char row, unsigned char col)
{
sendcommand(0xb0 + row); //set page address
sendcommand(0x02 + (8 * col & 0x0f)); //set low col address
sendcommand(0x10 + ((8 * col >> 4) & 0x0f)); //set high col address
}
JohnRob:
Being a full graphics display I'm not sure it makes a difference but I'm hoping there is a way to reduce the ProMini required resources. I've have the U8gLib running and it requires more µP resources than I would like.
Has anyone run into a lower capability driver for this device?
The U8glib successor U8g2 includes a low memory text only interface, called U8x8.
Oliver