-
Notifications
You must be signed in to change notification settings - Fork 157
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
Horizontally flipped image #216
Comments
Try Different breakout boards will be wired up (internally) differently, hence the need to have the block_orientation parameter in the first place!! |
Thanks! I don't know why I only tried +-90, I looked at the preprocess function without ever taking in that it takes a variable as input. Shake my head. Thank you for making luma and answering the most tedious questions |
and thank you for taking the time to create such a detailed ticket 👍 |
Are they 5 separate modules that you have daisychained or 5 LED blocks on a single PCB? |
They are in sets of 3 or 2 from here max7219 i joined a set of 3 to a set of 2 to make 5. I have some more, so i will find them and test them, or check i joined them up correctly, i did use another set of 5 i made up with a esp8266 running some Arduino code and they displayed ok (i think i did have to correct the orientation of the blocks, but can't remember if i needed to do anything else.) |
any news @HappyWheels? |
Hello, I have an issue with the image being horizontally flipped on my 5 module max7219 display.
I imagine the root cause is an incorrectly wired set of display modules, but for now my problem looks like it could be fixed in software, I have made some attempts but not been able to make it work (very new to python).
The 5 max7219 modules are connected to a raspberry pi zero w, with kernel 4.19.93+, Python 3.7.3
A basic bounding box showed the modules needed a +90 degree block_orientation which fixed the orientation.
However a draw point at (0, 0) lights up the bottom left led
draw.point((0,0), fill="white")
And text displays horizontally flipped
draw.point((0,0), fill="white") draw.text((0, 0), "Hello", fill="white")
Again but with a legacy font
To try and fix the problem i have attempted to use a PIL.Image.transpose(Image.FLIP_TOP_BOTTOM) in a few ways in the preprocess function of device.py, eg
image = image.transpose(Image.FLIP_TOP_BOTTOM) return image
without success.
Could I please get some assistance in fixing the flipped image problem in software? or pointed in the right direction?
I am new to python, and i think the correct way to make changes in the device.py preprocess function would be through dependency injection using super from my code? trying changes directly in device.py was more of an attempt at a proof of concept. If you think using the PIL transpose method in the preprocess function is the right way of flipping the image, i would also appreciate knowing what you think is the most pythonic way of doing this without having to modify the luma module directly?
The text was updated successfully, but these errors were encountered: