Created
November 17, 2017 09:36
-
-
Save nebman/e418be3d0a7b89c15381f8f402a672c1 to your computer and use it in GitHub Desktop.
Example code for Wifi Kit 8, ESP8266 Oled, HTIT-W8266
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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