sunfounder / Sunfounder_SuperKit_Python_code_for_RaspberryPi

Sunfounder Super Kit Python code for Raspberry Pi
60 stars 44 forks source link

Lesson 12 could be WAY more simple and useful #8

Open surak opened 8 years ago

surak commented 8 years ago

The python code uses two vectors of 20 values to draw its diagram (the C code has both 8 values commented out or 20 values). It is hard for me, though, how to devise a drawing based on those HEX values and how to avoid ghosting. https://github.com/sunfounder/Sunfounder_SuperKit_Python_code_for_RaspberryPi/blob/master/12_dotMatrix.py

I would advise strongly to update the code on github in order to make it easier for one to draw in binary, like a sprite, and a proper cleanup function. If I try to do any change on the values, the display stops responding and I have to do a full power off.

Something like this: http://blog.riyas.org/2013/12/online-led-matrix-font-generator-with.html

surak commented 8 years ago

I fixed your code. I made it much easier to understand how to show something on the screen on this one. Here is my blog post about it, https://surak.wordpress.com/2016/08/07/showing-letters-on-a-8x8-dot-matrix-display-with-only-3-gpio-pins-on-raspberry-pi/ and here is the code: https://github.com/surak/Raspberry/tree/master/dotmatrix

sunfounder commented 8 years ago

Thank you! We suggest you to fork our repository, and get pull request to be a contributor!