OLED Screen Test

I bought a cheapy 128×64 OLED screen (which is TINY!) and a cheapy clone of the Arduino Nano for a bit of playing around.  You can see the setup and the results of the little Sketch I wrote below.

Based on the tutorial and example at https://www.squirrel-labs.net/blog/oled-screen-arduino-uno/

Code:

#include <IIC_without_ACK.h>
#include “oledfont.c” //codetab

#define OLED_SDA 8 //Arduino Digital Pin
#define OLED_SCL 9 //Arduino Digital Pin

IIC_without_ACK outputToScreen(OLED_SDA, OLED_SCL);
//9 — sda,10 — scl

int number = 0;
String stringNo;
char displayNo[21];

void setup()
{
outputToScreen.Initial();
outputToScreen.Fill_Screen(0x00);
}

void loop()
{
stringNo=String(number) + ” seconds.”; //converting integer into a string + adds the word “seconds”
stringNo.toCharArray(displayNo,21); //converts string to char-array

//output to display
outputToScreen.Char_F6x8(0,1,”http://cyberia.at”);
outputToScreen.Char_F6x8(0,2,”———————“);
outputToScreen.Char_F6x8(0,3,””);
outputToScreen.Char_F6x8(0,4,”This unit has been”);
outputToScreen.Char_F6x8(0,5,”running for”);
outputToScreen.Char_F6x8(0,6,displayNo);
outputToScreen.Char_F6x8(0,7,””);

number++;
delay(1000); //1 second delay
}