-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
[BUG]: Waveshare 13,3" driver issue #368
Comments
Hi there and welcome to Inkycal. Thanks for opening this issue. As this is your first issue in this repository, please read through the contributing guidelines |
Thanks for reporting this issue @kalalaa . It seems there is an issue with the driver file of the 13.3" display. This driver was copied from waveshare directly, but I'll a look into this at the end of today |
@kalalaa Hi there, apologies for getting back at this rather late. Have you tested this with the latest version of Inkycal? From the looks of it i.e. display updating once, but not after that, this was an issue with the earlier version of InkycalOS-Lite v2.0.4, which was corrected a few days ago. Please let me know if it works for you. If not, please paste the full traceback as you have before. Thank you in advance |
Hi! The issue is still the same with the latest OS:
|
Hi, I have the same display as mentioned above and I am running into the same error. Is there any fix for this? Thanks in advance! |
My only fix was this |
I've got a fix ready for this, but unfortunately no way to test it myself as I do not have the exact same display. cd Inkycal
source venv/bin/activate
git pull
git checkout bug/#368
python inky_run.py
# Check if two updates can run one after another Please let me know if this works for you or if it doesn't work as expected. |
Hi thanks for taking a look, but now it will not start at all: inkycal@calender:~ $ cd $HOME/Inkycal
inkycal@calender:~/Inkycal $ source venv/bin/activate
(venv) inkycal@calender:~/Inkycal $ git pull
(venv) inkycal@calender:~/Inkycal $ git checkout bug/#368
branch 'bug/#368' set up to track 'origin/bug/#368'.
Switched to a new branch 'bug/#368'
(venv) inkycal@calender:~/Inkycal $ python3 inky_run.py
27-01-2025 08:05:46 | inkycal.main | INFO: Inkycal v2.0.4 booting up...
27-01-2025 08:05:46 | inkycal.main | INFO: Checking if a settings file is present...
27-01-2025 08:05:46 | inkycal.main | INFO: Found settings.json file in /boot/firmware/settings.json
27-01-2025 08:05:46 | inkycal.custom.openweathermap_wrapper | INFO: OWM wrapper initialized for API version 2.5, language de and timezone Europe/Berlin.
27-01-2025 08:05:46 | inkycal.main | INFO: name : Weather size : 680x155 px
27-01-2025 08:05:46 | inkycal.main | INFO: name : Calendar size : 680x360 px
27-01-2025 08:05:46 | inkycal.main | INFO: name : Agenda size : 680x425 px
27-01-2025 08:05:46 | inkycal.main | INFO: Inkycal initialised successfully!
27-01-2025 08:05:46 | inkycal.main | INFO: Inkycal version: v2.0.4
27-01-2025 08:05:46 | inkycal.main | INFO: Selected E-paper display: epd_13_in_3_colour
27-01-2025 08:05:46 | inkycal.main | INFO: Starting new cycle...
27-01-2025 08:05:46 | inkycal.main | INFO: Timestamp: 08:05:46 27.01.2025
27-01-2025 08:05:53 | inkycal.modules.ical_parser | INFO: loaded iCalendars from URLs
27-01-2025 08:05:55 | inkycal.modules.inkycal_agenda | INFO: Managed to parse events from urls
27-01-2025 08:05:56 | inkycal.main | INFO: All images generated successfully!
27-01-2025 08:05:57 | inkycal.main | INFO: Attempting to render image on display...
Initialising..Traceback (most recent call last):
File "/home/inkycal/Inkycal/inky_run.py", line 43, in <module>
asyncio.run(run())
File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/inkycal/Inkycal/inky_run.py", line 20, in run
await inky.run() # If there were no issues, you can run Inkycal nonstop
^^^^^^^^^^^^^^^^
File "/home/inkycal/Inkycal/inkycal/main.py", line 381, in run
display.render(im_black, im_colour)
File "/home/inkycal/Inkycal/inkycal/display/display.py", line 94, in render
epaper.init()
File "/home/inkycal/Inkycal/inkycal/display/drivers/epd_13_in_3_colour.py", line 113, in init
self.send_command(0x12) # SWRESET
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/inkycal/Inkycal/inkycal/display/drivers/epd_13_in_3_colour.py", line 69, in send_command
epdconfig.spi_writebyte([command])
File "/home/inkycal/Inkycal/inkycal/display/drivers/epdconfig.py", line 94, in spi_writebyte
self.SPI.writebytes(data)
OSError: [Errno 9] Bad file descriptor
(venv) inkycal@calender:~/Inkycal $ |
Thanks for testing this out @Git-Noob-74452 . Will take a deeper look at this on the weekend 👍 |
Waveshare 13,3" error at new cycle
The epd displays the modules at the first start, but it doesn't refresh, and when starts a new cycle it stops with error.
The text was updated successfully, but these errors were encountered: