pwnagotchi icon indicating copy to clipboard operation
pwnagotchi copied to clipboard

Support for waveshare 2.13 inch b and c variants

Open moheshmohan opened this issue 4 years ago • 12 comments

Is your feature request related to a problem? Please describe. Purchased this https://www.waveshare.com/2.13inch-e-paper-hat-b.htm - SKU 13448 and it didnt seems to be working well with pwnagotchi. As per the pwnagotchi site documentation this tricolor display is not recommended

Describe the solution you'd like Based on the code shared by waveshare over variants 2.13 b&c and d. These code could be merged to run 2.13bc display in 2 color mode with fast refresh rates like 2.13d display.

This support can be then added into pwnagotchi as a new display type waveshare213bc

Additional context I have created a pull request based on the solution that i tried to integrate. Details of this is available at https://github.com/evilsocket/pwnagotchi/pull/720

Please find the photo of two test pwnagotchis running the new code (one is not powered on in the pic) as per the above pull request. The display does not seem to be getting frozen over reboots

IMG_20191213_103815

moheshmohan avatar Dec 13 '19 07:12 moheshmohan

@evilsocket @dadav Can any of you guys see if its a feasible solution? Please let me know

moheshmohan avatar Dec 20 '19 14:12 moheshmohan

Hey, just use "waveshare213d" and it'll work. Found it on Reddit for my Tri-Color display. I got the same package you did, but to my delight found that all I needed to do was set THAT as the display name in config.yml.

slayergithub avatar Mar 04 '20 01:03 slayergithub

Hey, just use "waveshare213d" and it'll work. Found it on Reddit for my Tri-Color display. I got the same package you did, but to my delight found that all I needed to do was set THAT as the display name in config.yml.

But after sometime the display starts to freeze so i merged new code to fix this issue.

Now you can use "waveshare213bc" and it will work without getting frozen

moheshmohan avatar Mar 10 '20 13:03 moheshmohan

Oh okay, I haven’t experienced that but I’ll take your word for it. Have you figured out how to incorporate a theme so we can use all three colors?

slayergithub avatar Mar 10 '20 16:03 slayergithub

@moheshmohan I am just got my pwnagotchi and I had ordered the wrong waveshare213b by accident. Thanks for submitting this code. My device is running with v1.5.3 and everything look good. This ticket can be closed.

BlackFrog1 avatar Jun 07 '20 12:06 BlackFrog1

Hey I've got a waveshare213b and I'm using ui.display.type = "waveshare213bc" and ui.display.color = "black" with the latest 1.5.3 release. I'm having an issue where the display flashes between, solid black, a black border, and blank (I've also tried the 1.5.1 and it has the same issue). It seems to be looping between these three states every couple of seconds and never displaying the correct pwnagotchi display. Is this a known issue with the waveshare213b?

ntnz avatar Dec 18 '20 08:12 ntnz

@ntnz hey i'm having the same exact issue did you ever find a solution?

KennyNova avatar Apr 02 '22 04:04 KennyNova

ui.display.enabled = true ui.display.type = "waveshare213bc" ui.display.color = "black"

this worked for be but yeah It gets refreshed a lot which leads a heavy time consumption.

5h4rk-lab avatar Apr 19 '22 16:04 5h4rk-lab

hello i have tried building a pwnagotchi i have bhought the raspberry pi zero and display three colour red black and white i have tried putting the display name as waveshare213b its still not working everytime the raspberry pi zero flashes 6 times and stops and flashes in a pattern way please help me thank you for your time and consideration

mrmand77 avatar Apr 02 '23 12:04 mrmand77

I had the same issue but it took me around 30mins to boot properly. so just leave it on side until it boots up completely.

5h4rk-lab avatar Jun 02 '23 09:06 5h4rk-lab

ui.display.enabled = true ui.display.type = "waveshare213bc" ui.display.color = "black"

this worked for be but yeah It gets refreshed a lot which leads a heavy time consumption.

Did you manage to fix the refresh problem?

peretz27 avatar Sep 04 '23 10:09 peretz27

No not yet still the same problem

5h4rk-lab avatar Sep 04 '23 10:09 5h4rk-lab