Ok, now I`m confused.
I flashed withone of the example from library that @davidperrenoud edited but screen now is completely black. Should I change wiring now? If yes, how? I dont want to damage anything.
The SH1106 OLED display does not support auto column and page address range increment. It requires page and column addressing. The standard libraries depend on the column and page address range feature. That’s why you only see display changes on the 1st 8 pixel rows (== 1st page)
You can also use the board package with an installed version of Arduino. But in that case make sure the Arduboy and Arduboy2 libraries are removed before installing the board package (they are included with board package with the additional support for different displays)
In either case after the package is installed go to Tools > board > Arduboy and then Tools > variant >> Pro Micro with SH1106 and upload your sketch.
Only last question. Is it possible with this screen to upload other sketches and games than my or examples? If I will use official Arduboy games loader screen will not work correctly. Any way to allow Arduino IDE compile zip files with other games?
Yes you can as long as the sketch or game use the Arduboy or Arduboy2 libraries then youcan download the source and upload it or recompile and export the hex file (Sketch > Export compiled binary then Sketch > show sketch folder) so it can be uploaded using an upload tool.
Arduino IDE does not build to zip files. So you’ll have to do that manually.
I get back to my project after some time. I want to mount console in small case, so I had to cut some of the display PCB but I did not damage any components. I flashed again with settings you recommended, but it is working as you may see:
I checked wiring, I tried to flash with different settings but now I have no idea what happened. Do you know if I may fix it or if anything is damaged? How I may check what is wrong?
Yes, I thought the same. I tried to flash different code, not for arduboy and arduboy again and did not helped. I tried different displays options, but result is the same. Any idea what else I may try?
If there is a hardware issue. I’d suspect the DC signal. Check if it is (properly) connected and there are no shorts.
On your display It looks like the display doesn’t receive the page commands and everything is displayed on the first row (page) only.
in your display picture, it is the pin with SDC discription
I had the same problem. I’m not sure I’ll get an answer, but I’ll try to ask.
When I was making an arduboy clone I knew I needed “7 pin SPI OLED” and nothing else. Of course I have nothing worked immediately. I found how to solve the problem, the display began to work correctly.
Unfortunately not all games are displayed correctly, this problem I have not fixed. For example: Mystic Balloon, Circuit Dude, and MicroCity work fine, but Castle Boy, EVADE 2, and Dark and Under run with a display error.
If my DIY Arduboy didn’t work at all, I would understand, but display problems sometimes happen and sometimes don’t. The irony is that the best games don’t work.
I will definitely buy a SH1306 OLED display, but if there is a way to solve my problem I will be very happy.