Hi guys
ooh, I didn't use the HW_I2C constructor, that was in my attempt to get u8G2 working - it could be my comms that is causing the slow re-draw? I have attached my code...
Thanks for your attention
Kolynslkij
#include "U8glib.h"
#include "images_oled.h"
//**************************************************
// Change this constructor to match your display!!!
U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE); // I2C / TWI
//**************************************************
#define x = 32;
#define y = 0;
#define width = 8; // width of the image in bytes
#define height = 64; // height of the image in lines/pixels
String bits_name = "";
String send_str = "";
void setup(void) {
}
void loop(void) {
cls();
//send_str="Nova1"; // try and write the image using a string to
//draw(send_str); // reference it. Fail!
draw();
// rebuild the picture after some delay
delay(1000);
}
void draw(String imagex)
{
u8g.firstPage();
do {
// u8g.drawBitmapP( 32, 0, 8, 64, imagex);
u8g.drawBitmapP( 32, 0, 8, 64, Nova1); // direct image draw
} while( u8g.nextPage() );
}
void cls(){
u8g.firstPage();
do {
} while( u8g.nextPage() );
}