Open ruediheimlicher opened 1 week ago
Maybe the pull up resistors for the I2C bus are missing?
pull-ups are present.
I also tried with a adafruit 1306 128x64-display that works fine with an uno and arduino. Same result: loop blocked.
Gruss Ruedi
Am 19.06.2024 um 17:35 schrieb olikraus @.***>:
Maybe the pull up resistors for the I2C bus are missing?
— Reply to this email directly, view it on GitHub https://github.com/olikraus/u8g2/issues/2461#issuecomment-2178994863, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJMUGG3LIX4KABVZCHRPRTZIGQLXAVCNFSM6AAAAABJORAOKGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZYHE4TIOBWGM. You are receiving this because you authored the thread.
I think the constructor is wrong: U8X8_SSD1327_WS_128X128_HW_I2C u8x8(A4,A5);
Actually A4 and A5 are fixed for most of the controllers, so it is not needed for u8g2, instead the one and only argument should be the reset line (which might not be there in your case). So try this instead:
U8X8_SSD1327_WS_128X128_HW_I2C u8x8(U8X8_PIN_NONE);
See also here: https://github.com/olikraus/u8g2/wiki/u8g2setupcpp#communication
Tried this constructor. result:
https://github.com/olikraus/u8g2/assets/1231384/c6dc86f8-5d4d-4c78-881d-4b323a9c8270
I don't understand your initial code. Maybe it is better to just use one of the U8g2 examples, which are available in the Arduino IDE (like u8g2 HelloWorld.ino) Just add the constructor into the example and check the result. How will it look?
Success! After setting the address to 2*0x3D (was 0x3C) and reducing bus clock to 400000 the display writes as expected. Thanks for your advices.
I have a program on Atmega328p with platformio and am trying to connect an OLED display with SSD1327 driver.
I include the libs from olikraus:
and set
U8X8_SSD1327_WS_128X128_HW_I2C u8x8(A4,A5);
That compiles well, butu8x8.begin();
blocks the loop.
My code: