Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Wire.h> // Only needed for Arduino 1.6.5 and earlier
- #include "SSD1306Wire.h" // legacy include: `#include "SSD1306.h"`
- SSD1306Wire display(0x3c, D1, D2);
- void setup() {
- display.init();
- display.flipScreenVertically();
- }
- void loop() {
- display.setTextAlignment(TEXT_ALIGN_LEFT);
- display.setFont(ArialMT_Plain_10);
- display.drawString(0, 0, "hwThinker");
- display.display();
- delay(1000);
- display.clear();
- display.setFont(ArialMT_Plain_16);
- display.drawString(0, 10, "HwThinker");
- display.setFont(ArialMT_Plain_24);
- display.drawString(0, 26, "inAction");
- display.display();
- delay(1000);
- display.clear();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement