Skip to content

Instantly share code, notes, and snippets.

@nebman
Created November 17, 2017 09:36
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nebman/e418be3d0a7b89c15381f8f402a672c1 to your computer and use it in GitHub Desktop.
Save nebman/e418be3d0a7b89c15381f8f402a672c1 to your computer and use it in GitHub Desktop.
Example code for Wifi Kit 8, ESP8266 Oled, HTIT-W8266
#include <Arduino.h>
#include <U8x8lib.h>
// Pin 16 OLED Reset
// Pin 4,5 I2C
// use Board "Wemos D1 Mini R2", 80Mhz, 4(3)MB Flash, 921600baud to flash
U8X8_SSD1306_128X32_UNIVISION_HW_I2C u8x8(16);
void setup(void) {
u8x8.begin();
}
void loop(void) {
u8x8.setFont(u8x8_font_chroma48medium8_r);
u8x8.draw2x2String(0,0,"Hello");
u8x8.draw2x2String(0,2,"World");
delay(1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment