#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
Adafruit_SSD1306 display = Adafruit_SSD1306(128, 64, &Wire);
/**************************************/
/* Displays the frequency and stepsize*/
/**************************************/
void display_frequency()
{
// Display the splash screen (we're legally required to do so)
display.display();
display.clearDisplay();
display.setTextSize(2); // Normal 1:1 pixel scale
display.setTextColor(SSD1306_WHITE); // Draw white text
display.setCursor(0,0); // Start at top-left corner
display.println(F("Hello, world!"));
display.setCursor(8, 40);
display.setTextSize(1);
display.println(F("Step:"));
display.drawRect(0, 0, 128, 54, WHITE);
display.display();
}
void setup() {
display.begin(SSD1306_SWITCHCAPVCC, 0x3C);
// put your setup code here, to run once:
display_frequency();
}
void loop() {
// put your main code here, to run repeatedly:
}