-
Notifications
You must be signed in to change notification settings - Fork 69
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
Comments
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. |
Rock on! Thanks |
Seems like they never do |
@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 |
I love the idea of abstracting this. Very cool.
Pulled it down and ran the test util.
It threw an error.
File
"/usr/local/lib/python3.7/dist-packages/omni_epd/displays/waveshare_display.py",
line 251, in prepare
self._device.init()
TypeError: init() missing 1 required positional argument: 'mode'
I added a 0 so it became self._device.init(0) as that is what the waveshare
driver requested.
Fired it off again and got the following.
pi@GeneralPie:~ $ omni-epd-test -e waveshare_epd.epd3in7
Loaded waveshare_epd.epd3in7 with width 280 and height 480
Drawing rectangle of width 210.0 and height 360.0
Drawing rectangle of width 105.0 and height 180.0
Drawing rectangle of width 26.25 and height 45.0
Traceback (most recent call last):
File "/usr/local/bin/omni-epd-test", line 10, in <module>
sys.exit(main())
File "/usr/local/lib/python3.7/dist-packages/omni_epd/test_utility.py",
line 127, in main
test.draw()
File "/usr/local/lib/python3.7/dist-packages/omni_epd/test_utility.py",
line 85, in draw
self.__draw_on_display(im)
File "/usr/local/lib/python3.7/dist-packages/omni_epd/test_utility.py",
line 67, in __draw_on_display
self.epd.display(image)
File "/usr/local/lib/python3.7/dist-packages/omni_epd/virtualepd.py",
line 202, in display
self._display(self.__applyConfig(image))
File
"/usr/local/lib/python3.7/dist-packages/omni_epd/displays/waveshare_display.py",
line 263, in _display
self._device.display(self._device.getbuffer(image))
AttributeError: 'EPD' object has no attribute 'display'
Let me know if you need further testing.
Aaron
…On Mon, May 3, 2021 at 3:34 PM Rob ***@***.***> wrote:
@ZubaZ21 <https://github.com/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
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#68 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATTPCDNQAMQBIEXT5N7UB4TTL33ERANCNFSM43M6NUKQ>
.
|
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. |
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
I changed the line to match the waveshare demo script : epd.init(0)
Ran it again
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
The text was updated successfully, but these errors were encountered: