#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <Wire.h>
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 64
#define OLED_RESET -1
#define PAUSE 1000
Adafruit_SSD1306 display(SCREEN_WIDTH,SCREEN_HEIGHT,&Wire,OLED_RESET);
void setup() {
// put your setup code here, to run once:
display.begin(SSD1306_SWITCHCAPVCC,0x3C);
display.fillScreen(0);
display.display();
}
void loop() {
// put your main code here, to run repeatedly:
display.drawPixel(64,32,1);
display.drawLine(0,0,128,0,1);
display.drawRect(0,10,100,20,1);
display.fillRect(0,50,14,14,1);
display.drawCircle(114,18,10,1);
display.drawTriangle(99,63,127,63,127,35,1);
display.setCursor(3,13);
display.setTextColor(1);
display.setTextSize(2);
display.print("Kruno");
display.display();
}