Tiny4kOLED icon indicating copy to clipboard operation
Tiny4kOLED copied to clipboard

Digispark ATiny85

Open Silvanskii opened this issue 1 year ago • 3 comments

I tried some of your examples and they don't display correctly. photo_2024-11-19_10-30-42 photo_2024-11-19_10-30-47

Silvanskii avatar Nov 19 '24 07:11 Silvanskii

I can think of two possibilities:

  1. The screen has some non-default settings that it is remembering. My library doesn't set all configuration settings, only non-default ones. Running the ResetToDefaults example would fix that.
  2. The communication to the device is not working properly. I think this is more likely, because your 2 screen shots both show missing pixels, and the other strange effects could also be caused by data being corrupted as it is sent to the screen. I'm not sure how you should solve this though. Pull ups? Choice of wire library and i2c speed? Changing to a different cable?

datacute avatar Nov 19 '24 09:11 datacute

when i use TinyOzOled photo_2024-11-19_13-26-22

when i use SSD1306Ascii photo_2024-11-19_13-26-23 It's the cable, specifically the library. When I use the DigisparkOLED library I see in the demo a white stripe of 1-2 pixels, which is not removed. I tried another display of the same type, the situation is the same. I soldered resistors, the situation is the same. So far the SSD1306Ascii library works best, but I need to show 1 picture, not text

Silvanskii avatar Nov 19 '24 10:11 Silvanskii

I added it to the code, it didn't change. void ResetToDefaults() { oled.begin(width, height, sizeof(tiny4koled_init_128x64br), tiny4koled_init_128x64br); oled.setFont(FONT8X16); oled.clear(); }

Silvanskii avatar Nov 19 '24 10:11 Silvanskii