Arduino Oled Proble...
 
Notifications
Clear all

Arduino Oled Problem U8G2Lib

6 Posts
4 Users
0 Likes
2,071 Views
(@merlin2k)
New Member
Joined: 3 years ago
Posts: 4
Topic starter  
Hello, I would like to use simhub with an oled and ws2812b leds.
Since my oled is probably a noname I only get a pixel salad.
Now I have read that you should use the U8g2lib.
With the example file of the lib, I can use my display without any problems. Unfortunately I don't know how to change the code in Arduino for this. It would be great, if somebody could help me greetings Micha

   
Quote
(@admin5435)
Prominent Member Admin
Joined: 7 years ago
Posts: 728
 

What arduino board are you using ? If you are usiong a nano or similar you may be running out of memory as indicated on the wiki :
https://github.com/SHWotever/SimHub/wiki/Arduino-SSD1306-0.9 6''-Oled-I2C#restrictions

Can you also check that you are running a SSD1306 module ? I fear that changing the library is not an easy task.


   
ReplyQuote
(@merlin2k)
New Member
Joined: 3 years ago
Posts: 4
Topic starter  

Hi, use an mega 2560 pro mini.

the oled is a SH1106. that's why I need the other lib


   
ReplyQuote
(@merlin2k)
New Member
Joined: 3 years ago
Posts: 4
Topic starter  

OK. got me an SSD1306 display. That works now. Too bad, would have liked to have installed the larger one. one more question, can you adjust what is displayed on the oled? and can i rotate the screen?
Currently, F1 is displayed on the oled gear and speed. I would like only the speed over the full display

 

thx


   
ReplyQuote
(@ryanaukes)
New Member
Joined: 2 years ago
Posts: 3
 

@merlin2k 

 

Hi, did you find out how to rotate the OLED display? I want to do that too. 


   
ReplyQuote
(@ecrowne)
Active Member
Joined: 1 year ago
Posts: 5
 

It is possible to swap the oled library to support the SH1106, I did it here for my esp8266 + sh1106 firmware:
https://github.com/eCrowneEng/FRG-SH/tree/main/lib/OLED


   
ReplyQuote
Share: