// Source code from https://techatronic.com/oled-yok-with-arduino-ssd1306-oled
// TECHATRONIC.COM
// Library SPI.h
// https://github.com/PaulStoffregen/SPI
// Library Adafruit_GFX.h
// https://github.com/adafruit/Adafruit-GFX-Library
// Library Adafruit_SSD1306.h
// https://github.com/adafruit/Adafruit_SSD1306
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define screen_width 128 // OLED yok width, in pixels
#define screen_height 64 // OLED yok height, in pixels
#define OLED_RESET 4
Adafruit_SSD1306 yok(screen_width, screen_height);
int sw=1;
int sw=2;
int sw=3;
int sw=4;
int sw=5;
int sw=6;
void setup ()
{
yok.begin(SSD1306_SWITCHCAPVCC, 0x3C);
}
void loop ()
{
yok.clearDisplay();
yok.setTextSize(1);
yok.setTextColor(SSD1306_WHITE);
yok.setCursor(60, 0);
yok.print("HELO FRIEND");
yok.display();
delay(3000);
yok.clearDisplay();
}