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

sh1106_i2c display not supported error #1256

Open
arnav-boop opened this issue Sep 28, 2024 · 5 comments
Open

sh1106_i2c display not supported error #1256

arnav-boop opened this issue Sep 28, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@arnav-boop
Copy link

im trying to use an 0.96inch oled 128x64 i2c display but i get the error

unsupported display type sh1106_i2c
`
i used the instructions from this reddit post and i followed ToothNo6591's instructions

To Reproduce
Steps to reproduce the behavior:

  1. Use aluminium ice's image for pwnagotchi on an raspberry pi 2 zero
  2. connect i2c displays vcc to 5v, gnd to gnd. scl to scl and sda to sda.
  3. follow instructions from ToothNo6591 on this reddit post
  4. get the error

Expected behavior
I want the ui to be displayed on the oled display and the error unsupported display type sh1106_i2c to be not shown/

Screenshots
image

Environment (please complete the following information):

  • Pwnagotchi version - 1.8.5
  • Windows 11
  • Raspberry Pi 2 Zero
  • ssd1306 oled display 0.96 inch
@arnav-boop arnav-boop added the bug Something isn't working label Sep 28, 2024
@erajtob
Copy link

erajtob commented Oct 3, 2024

The SH1106 and the SSD1306 displays are not exactly identical, for some projects the same code and drivers can be utilized for both displays, but unfortunately the driver for SH1106 that pwnagotchi has doesn't work with the SSD1306 over i2c.

I have ported the SSD1306 display for pwnagotchi and have been using it myself for a while now, if you allow me some time, I can clean the files up and do a pull request sometime within the coming weeks.

image

image

@arnav-boop
Copy link
Author

Thanks for the reply, after the pull request could you also give a few instructions on how to use the display, I’m pretty new to using the raspberry pi.

Thanks

@arnav-boop
Copy link
Author

Even if the pull request hasn’t been done can you help in making it work without the pull request? @erajtob

@erajtob
Copy link

erajtob commented Oct 13, 2024

@arnav-boop I've created the pull request, if you don't wanna wait till the merge, you can always just clone my master branch erajtob/pwnagotchi

If your pwnagotchi is on the latest version as the current one, you can clone my repo to your local machine, I've written a simple bash script that can help you copy over the content to your pwnagotchi over ssh.

  • You need to clone my forked repo (master)/ If merged you can just clone the original one here
  • You need to have SSH setup for the pwnagotchi pwnagotchi Docs
  • Copy this script into the cloned pwnagotchi repo directory
  • Set permission to execute script
    • chmod +x ./install-adafruitssd1306i2c.sh
  • Execute script
    • ./install-adafruitssd1306i2c.sh

The other easy way is of course just clone the repo and manually copy over the pwnagotchi directory to your SD card at /usr/local/lib/python3.7/dist-packages/ that will add the missing files and overwrite the updated files.

@arnav-boop
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants