Instructions to use MicroPython and font-to-py on a Pico powered Waveshare e-paper #9157
Replies: 4 comments 1 reply
-
That's really cool! A 2.7" one of these literally arrived in the mail today, so keen to give this a go. |
Beta Was this translation helpful? Give feedback.
-
That is great! You've actually done almost all of the work necessary to run nano-gui if you want to do more than display text. This will let you draw various controls, plot graphs and suchlike as per this demo: |
Beta Was this translation helpful? Give feedback.
-
Looking at your display driver I'm puzzled at the way you do rotation. Your approach allocates a 16,800 byte buffer every time you execute You've done a great job trimming Waveshare's wordy code, but there is scope for a further haircut. To give one example the self.digital_write(self.reset_pin, 1) could be reduced to self.reset_pin(1) |
Beta Was this translation helpful? Give feedback.
-
Thanks for the feedback! I'm going to start tinkering with nano-gui once I'm done with printing text in pretty fonts. I like the idea of applying the rotation "on the fly" without the need for a separate buffer. I'm going to look into that, but that will definitely require some puzzling. If I fail to rotate the buffer "on the fly" then I'll change the code to allocate the extra buffer in I was not aware that Pins are callable in the way you describe. I'm going to remove the |
Beta Was this translation helpful? Give feedback.
-
I have written a small instructable how to use the Writer class from micropython-font-to-py on a Pico powered 3.7 inch Waveshare e-paper, rotate the display 90 degrees and center the text horizontally and vertically.
https://www.instructables.com/Waveshare-E-paper-Display-With-Raspberry-Pi-Pico-M
Beta Was this translation helpful? Give feedback.
All reactions