#include "U8glib.h" U8GLIB_ST7920_128X64 u8g(13, 11, 12, U8G_PIN_NONE); //----------------------------DHT #include dht DHT; #define DHT11_PIN 5 void draw(void) { // graphic commands to redraw the complete screen should be placed here u8g.setFont(u8g_font_04b_03b); //u8g.setFont(u8g_font_osb21); u8g.drawStr( 0, 12, "Welcome to my Displayn"); } void setup(void) { // assign default color value if ( u8g.getMode() == U8G_MODE_R3G3B2 ) u8g.setColorIndex(255); // white else if ( u8g.getMode() == U8G_MODE_GRAY2BIT ) u8g.setColorIndex(3); // max intensity else if ( u8g.getMode() == U8G_MODE_BW ) u8g.setColorIndex(1); // pixel on } void loop(void) { // picture loop u8g.firstPage(); do { draw(); } while( u8g.nextPage() ); // rebuild the picture after some delay delay(500); }