Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DisplaySH1106_128x64_I2C constructor with custom arguments #82

Open
LoneRetrievr opened this issue Mar 11, 2022 · 2 comments
Open

DisplaySH1106_128x64_I2C constructor with custom arguments #82

LoneRetrievr opened this issue Mar 11, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@LoneRetrievr
Copy link

LoneRetrievr commented Mar 11, 2022

Hello,
I'm trying to use a SH1106 OLED Display on an Arduino, but I can't make it work. My code looks like this : DisplaySH1106_128x64_I2C display(-1, {-1, 0x3C, 12, 13, 0});
The rest of the code is identical to the SH1106 example, but the screen remains black. I have no clue why

@LoneRetrievr LoneRetrievr changed the title busId argument in DisplaySH1106_128x64_I2C constructor DisplaySH1106_128x64_I2C constructor with custom arguments Mar 12, 2022
@lexus2k
Copy link
Owner

lexus2k commented Mar 13, 2022

Hi.

Interesting. If you're using Atmega328p as far as I know, it doesn't allow to use random pins for the hardware I2C.

@LoneRetrievr
Copy link
Author

LoneRetrievr commented Mar 13, 2022

I'm actually using an Arduino Mega with Atmega2560.
Maybe adding a Software I2C library could be the solution? I came across this adaptation proposed by the creator of the Software Wire library, but I'm not really sure it would work, because I didn't see any use of Twowire (but I could be totally wrong)

@lexus2k lexus2k added the enhancement New feature or request label Apr 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants