Загрузка страницы

ATTINY85 driving I2C Oled 128 x 32 Display

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:

https://www.youtube.com/watch?v=9CX4i6rMXS8
ATTINY Boards for Arduino IDE:

https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json

TinyWireM library:

https://github.com/adafruit/TinyWireM

Andrreas' OzOled with TinyWireM library:

https://github.com/SensorsIot/TinyOzOled

Andreas' Channel:

https://www.youtube.com/channel/UCu7_D0o48KbfhpEohoP7YSQ

Видео ATTINY85 driving I2C Oled 128 x 32 Display канала Tom Donnelly
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
4 июля 2018 г. 12:11:41
00:20:29
Яндекс.Метрика