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

Waveshare 3in7 errors #68

Closed
ZubaZ21 opened this issue Apr 22, 2021 · 6 comments
Closed

Waveshare 3in7 errors #68

ZubaZ21 opened this issue Apr 22, 2021 · 6 comments
Labels
bug Something isn't working

Comments

@ZubaZ21
Copy link

ZubaZ21 commented Apr 22, 2021

I think the Waveshare 3in7 drivers are non-standard . . . and it's causing the movie not to play. The display isn't being cleared at all.
Describe the problem


pi@GeneralPie:~/Projects/SlowMovie $ python3 slowmovie.py -o DEBUG
Picking which video to play...
...trying the --file argument...
...trying the video in the nowPlaying file...
...picked '/home/pi/Projects/SlowMovie/Videos/test.mp4'!
Update interval: 120
Frame increment: 4
Playing 'test.mp4'
Video info: 50 frames, 24.125fps, duration: 00:00:02
This video will take 25.0 minute(s) to play.
Traceback (most recent call last):
  File "slowmovie.py", line 322, in <module>
    epd.init()
TypeError: init() missing 1 required positional argument: 'mode'

I changed the line to match the waveshare demo script : epd.init(0)

Ran it again

pi@GeneralPie:~/Projects/SlowMovie $ python3 slowmovie.py -o DEBUG
Picking which video to play...
...trying the --file argument...
...trying the video in the nowPlaying file...
...picked '/home/pi/Projects/SlowMovie/Videos/test.mp4'!
Update interval: 120
Frame increment: 4
Playing 'test.mp4'
Video info: 50 frames, 24.125fps, duration: 00:00:02
This video will take 25.0 minute(s) to play.
Displaying frame 0 of test.mp4 (0.0%)
Traceback (most recent call last):
  File "slowmovie.py", line 342, in <module>
    epd.display(epd.getbuffer(pil_im))
AttributeError: 'EPD' object has no attribute 'display'

At this point I don't know what to tweak or where to look for what to tweak.

This is the second project that didn't run out of the box as expected.

Platform Information

Display: https://www.waveshare.com/wiki/3.7inch_e-Paper_HAT
Raspberry Pi Zero W Rev 1.1
Linux version 5.10.17+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1403 Mon Feb 22 11:26:13 GMT 2021
Python 2.7.16
Python 3.7.3

@ZubaZ21 ZubaZ21 added the bug Something isn't working label Apr 22, 2021
@robweber
Copy link
Collaborator

You are correct - the 3in7 display has some different methods than the standard devices. It takes some additional parameters as part of init() and has some different display methods as well. We're currently working on a solution to handle non-standard displays - hopefully ready soon.

@ZubaZ21
Copy link
Author

ZubaZ21 commented Apr 22, 2021

Rock on!

Thanks

@qubist
Copy link
Collaborator

qubist commented Apr 22, 2021

This is the second project that didn't run out of the box as expected.

Seems like they never do

@robweber
Copy link
Collaborator

robweber commented May 3, 2021

@ZubaZ21 - you should be able to follow the instructions and use your 3.7 in display now. Lookup the display name to use in this table: https://github.com/robweber/omni-epd#displays-implemented

@ZubaZ21
Copy link
Author

ZubaZ21 commented May 3, 2021 via email

@robweber
Copy link
Collaborator

robweber commented May 3, 2021

Thanks for testing this - I'm going to move this over to the omni-epd repo since it's more of an issue with that.

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

3 participants