Published On Jul 4, 2018
I hack some code in a careless way to get the mini SSD1306 OLED display working with the ATTINY85.
EXAMPLES: (NOTE!! Change quotes in '#includes' to angle brackets !!!!
============================================
#include "TinyWireM.h"
#include "TinyOzOLED.h"
void setup() {
OzOled.init();
// OzOled.setInverseDisplay(); // Invert display
OzOled.printString("Hi there!");
}
void loop() {
// put your main code here, to run repeatedly:
}
============================================
#include "TinyWireM.h"
#include "TinyOzOLED.h"
byte brightness = 0;
void setup() {
OzOled.init();
OzOled.clearDisplay();
OzOled.printString("Brightness..", 0, 0);
delay(1000);
}
void loop() {
OzOled.setBrightness(brightness++);
OzOled.printNumber((long)brightness, 0, 2);
delay(50);
if(brightness = 255) {
brightness = 0;
OzOled.printString(" ", 0, 2); // reached 255 so clear
}
}
============================================
Step-by-step guide in setting up UNO as ISP for ATTINY:
• ATTINY-85 Serial Monitor. Step-by-st...
ATTINY Boards for Arduino IDE:
https://raw.githubusercontent.com/dam...
TinyWireM library:
https://github.com/adafruit/TinyWireM
Andrreas' OzOled with TinyWireM library:
https://github.com/SensorsIot/TinyOzOled
Andreas' Channel:
/ @andreasspiess