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

"e-Paper busy" from Python examples #339

Open
iandouglas opened this issue May 15, 2024 · 3 comments
Open

"e-Paper busy" from Python examples #339

iandouglas opened this issue May 15, 2024 · 3 comments

Comments

@iandouglas
Copy link

Raspberry Pi Zero 2W

I've copied @jayofelony's epdconfig.py file and still get "e-Paper Busy" on several different screens.

Since I don't always know which script to run based on the hardware, I'm looping over all of the scripts for that screen size like

for i in *2in13*py; do python3 $i; done

but they're all telling me that the e-Paper is busy.

I've tried one 2.13" screen, which is marked as a v4 but was used in a project (pwnagotchi) as a v3, but now seems to not refresh any more. I've also tried two separate 2.7" screens with the 4 buttons, as well as a large 7.5" display.

I've seen in the open issues and closed issues that the C examples might work better to clear the busy bit, but I can't compile any of the scripts because of a missing "lgpio.h" file ... I've also tried the other three settings in the Makefile for USE_LIBRPI but I get an error of missing header files for all 4 of the options.

Is there something wrong with my RPi Zero 2 W maybe?

Note to @jayofelony if you see this, I've tried your pwnagotchi build 2.8.9 as well as aluminum-ice 1.8.5, and get the same behavior on this Pi. I'm starting to suspect the Pi.

@jayofelony
Copy link

jayofelony commented May 15, 2024

Open an issue on my GitHub if you will, with logs, config.toml and commands used.

@iandouglas
Copy link
Author

iandouglas commented May 16, 2024

On the newer OS of the pwnagotchi 2.8.9 build, I'm able to install the liblgpio-dev package and compile the epd script:

  • 7.5 inch screen: e-Paper busy
  • 2.7 screen with 4 btns: e-Paper busy
  • 2.13 screen: e-Paper busy

running like this:

for i in epd2in13V2 epd2in13V3 epd2in13V4 epd2in13bc epd2in13bV3 epd2in13bV4 epd2in13d epd2in13g; do 
  make clean; 
  make EPD=$i; 
  sudo killall pwnagotchi-launcher pwnagotchi bettercap-launcher bettercap pwngrid-launcher pwngrid; 
  echo; echo; echo $i; echo; echo; 
  ./epd; 
  echo; echo; echo; 
done

and get this kind of output:

EPD_2IN13BC_test Demo
/***********************************/
Current environment: Debian
/***********************************/
e-Paper Init and Clear...
Debug: e-Paper busy
Debug: e-Paper busy release
Debug: e-Paper busy
Debug: e-Paper busy release
NewImage:BlackImage and RYImage
show red bmp------------------------
pixel = 212 * 104
pixel = 212 * 104
Debug: e-Paper busy
Debug: e-Paper busy release
show image for array
Debug: e-Paper busy
Debug: e-Paper busy release
Draw black image
Draw red image
EPD_Display
Debug: e-Paper busy
Debug: e-Paper busy release
Clear...
Debug: e-Paper busy
Debug: e-Paper busy release
Goto Sleep...
Debug: e-Paper busy
Debug: e-Paper busy release
close 5V, Module enters 0 power consumption ...

@emilyboda
Copy link

I am also having this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants