#include <Wire.h>
#include <Adafruit_SSD1306.h>
#include <Adafruit_GFX.h>
#define OLED_WIDTH 128
#define OLED_HEIGHT 64
#define OLED_ADDR 0x3C
Adafruit_SSD1306 display(OLED_WIDTH, OLED_HEIGHT);
void setup() {
display.begin(SSD1306_SWITCHCAPVCC, OLED_ADDR);
display.clearDisplay();
display.setTextSize(2);
display.setTextColor(WHITE);
display.setCursor(0, 0);
display.println("Welcome");
display.setTextSize(2);
display.setTextColor(WHITE);
display.setCursor(0, 17);
display.println("This is");
display.println("a Splash");
display.println("Screen");
display.display();
delay(5000);
}
void loop() {
display.clearDisplay();
display.setTextSize(2);
display.setTextColor(WHITE);
display.setCursor(0, 0);
display.println("Net Test");
display.setTextSize(1);
display.setTextColor(WHITE);
display.setCursor(0, 17);
display.println("IP: 192.168.1.1");
display.println("Subnet: 255.255.255.0");
display.println("Gateway: 192.168.1.1");
display.println("DNS1 : 192.168.1.2");
display.println("DNS2: 192.168.1.3");
display.display();
delay(5000);
}
Code Example |
---|
Cpp :: vector from angle |
Cpp :: c++ Attribute Parser |
Cpp :: print hola mundo |
Cpp :: operator precedence in cpp |
Cpp :: fill vector with zeros c++ |
Cpp :: friend function in c++ |
Cpp :: reference c++ |
Cpp :: onoverlapbegin ue4 c++ |
Cpp :: UENUM ue4 |
Cpp :: c++ multiply char |
Cpp :: matrix c++ |
Cpp :: c++ json parser euc-kr |
Cpp :: three way comparison operator c++ |
Cpp :: c++ pop string from vector |
Cpp :: arduino falling edge |
Cpp :: c++ delete printed characters |
Cpp :: c++ generic pointer |
Cpp :: Converting Strings to Numbers in C/C++ |
Cpp :: erase range vector c++ |
Cpp :: Maximum sum of non consecutive elements |
Cpp :: c++ else if |
Cpp :: tr bash |
Cpp :: memset c++ |
Cpp :: floyd algorithm |
Cpp :: C++ programming code to remove all characters from string except alphabets |
Cpp :: what is a .h file in c++ |
Cpp :: lap trinh file explorer c++ |
Cpp :: new expression |
Cpp :: c++ throe |
Cpp :: texorpdfstring math in title latex |