Oled Display Doesn't work


i have tried start programming ssd1306 oled display can't work.

code:
code: [select]


#include "u8glib.h"

u8glib_ssd1306_128x64 u8g(u8g_i2c_opt_none);

void setup() { 
  u8g.setfont(u8g_font_unifont);
  u8g.setcolorindex(1);
}

void loop() { 
  u8g.firstpage();
  { 
    draw();
  } while( u8g.nextpage() );
  delay(1000);   
}
 
void draw(){
  u8g.drawstr( 0, 20, "hello world");
   
}


the code worked display not display anything

you should first check display seen on i2c interface, load run i2c scanner.

it tell address display responds on.


Arduino Forum > Using Arduino > Programming Questions > Oled Display Doesn't work


arduino

Comments

Popular posts from this blog

Flip address is out of range arduino uno r3

Arduino Uno not uploading

Indesign and MathType fonts