dj1ch / minigotchi

an even smaller pwnagotchi. maintained by @dj1ch
GNU General Public License v3.0
170 stars 13 forks source link

SH1106 support request #165

Closed DSCustoms closed 2 months ago

DSCustoms commented 3 months ago

I thought that the SH1106 screens would either be plug and play or work very easily, but I haven't been able to get it to work myself. Do you think you could add support for the SH1106 screens when you get a chance? There's a nice 1.3" screen which would be great for handhelds.

1.3 Inch I2C OLED Display Module 128x64 Pixel SH1106 Screen Module

It connects and lights up, but only shows static right now. There is an adafruit SH110X library that should cover it, I also found this repo https://github.com/fcgdam/Adafruit_SH1106

Thanks!

dj1ch commented 3 months ago

the process might take a minute, but ill see what I can do from here. i saw a couple of arduino repos out there so it shouldn't be that hard.

DSCustoms commented 3 months ago

That would be great. Wish I could help more on software but I’m a hardware and design guy 😂

dj1ch commented 3 months ago

by the way, do you have that display? if possible, can you test the building from the development branch to see if the changes I make are compatible with your display(once I make them ofc)?

DSCustoms commented 3 months ago

by the way, do you have that display? if possible, can you test the building from the development branch to see if the changes I make are compatible with your display(once I make them ofc)?

Yeah I've got a bunch of the screens and a brand new design to use them with! It's all ready to go. Just ping me when there's something to test, thanks! Minigotchis

DSCustoms commented 3 months ago

https://github.com/dj1ch/minigotchi/assets/40194310/ce2fe94b-c88b-4f16-a900-3f8d17027dd0

dj1ch commented 3 months ago

I haven't got the time to get to this issue... yet. There's another issue that needs to be dealt with regarding pwnagotchi scanning in case you need to know. I can try making the fix for the ESP8266 sometime today or tomorrow.

DSCustoms commented 3 months ago

Oh I’m not posting to harass you 😂 just showing some motivational pictures for the community. I’ve got other uses for these things too, just threw this together for the mini G. You can see some hints of the eyes in the static so I know it’s real close.

dj1ch commented 2 months ago

I just recently started working on the project again. Have you made any progress so far on your end?

dj1ch commented 2 months ago

@DSCustoms Are you able to test the latest code from the development branch (either version)?

DSCustoms commented 2 months ago

Yes I can test. I’ll go look at the changes. Thanks!

DSCustoms commented 2 months ago

Fired right up! All I tested was the screen, I didn't dig into the parasite mode or anything else that is new yet, but the SH1106 screen works. I did have to change the pin assignments, are you using a different 8266 board I'm not familiar with? These are the standard GPIOs for all the ones I have and have seen.

define SH1106_SCL 5

define SH1106_SDA 4

Let me know if anything else needs hardware testing! Thanks for putting this together

IMG_5797

dj1ch commented 2 months ago

Fired right up! All I tested was the screen, I didn't dig into the parasite mode or anything else that is new yet, but the SH1106 screen works. I did have to change the pin assignments, are you using a different 8266 board I'm not familiar with? These are the standard GPIOs for all the ones I have and have seen. #define SH1106_SCL 5 #define SH1106_SDA 4

Let me know if anything else needs hardware testing! Thanks for putting this together

IMG_5797

Yeah, I just put in the default, I wasn't fully aware of what pins to use. Thanks for the fix, I'll incorporate this. For now I don't think there will be any more screen testing (at least until the following release.)

dj1ch commented 2 months ago

Just added your fixes in:

#define SH1106_SCL 5
#define SH1106_SDA 4

Thank you for the help!