Add faster pixels drawing methode
Adds a new method for printing graphic and complex shapes onto the display with python. Works with a byte string containing pixels that is interpreted by epicardium.
Merge request reports
Activity
added 3-Module 6 - Needs Review labels
added 140 commits
-
a9518740...c3c5a5f8 - 139 commits from branch
card10:master
- 17763629 - Merge branch 'card10/firmware'
-
a9518740...c3c5a5f8 - 139 commits from branch
mentioned in issue #182 (closed)
I think this can be replaced with the new
Display.blit()
function: https://firmware.card10.badge.events.ccc.de/pycardium/display.html#display.Display.blitThe script to convert images might still be interesting though.
Edited by schneiderAlpha is still unsupported by the new function. The parameter in the API is there but it is unused. @Pixtxa mentioned that maybe just a binary alpha mask to draw/not draw a pixel would already be a start.
I've updated the blit function and it now supports RGB data with alpha (Either RGBA8 or RGBA5551): https://firmware.card10.badge.events.ccc.de/pycardium/display.html#display.Display.blit
We now also have support to directly read PNG images (with alpha): https://firmware.card10.badge.events.ccc.de/pycardium/png.html