New driver & demo for Sharp memory LCD, LS013B7DH03.
Tracy Allen
Posts: 6,664
Attached is a simple spin driver for the 128x128 monochrome micro-power Sharp memory LCD, LS013B7DH03. The driver footprint is relatively small, because it generates fonts and graphs on the fly rather than by updating a full screen buffer. I need it for instrumentation, to show values and graphs, not animations, so it does not have to be terrifically fast or fancy.
Also see looking-for-a-recommendation-on-a-low-power-display-updated-with-results Enjoy. Comments/debuggings welcome.
Updated the files on 10/29. Took out the debugging code and their supporting objects.
Also see looking-for-a-recommendation-on-a-low-power-display-updated-with-results Enjoy. Comments/debuggings welcome.
Updated the files on 10/29. Took out the debugging code and their supporting objects.
spin
11K
Comments
It is not as impressive as the much cheaper color TFT or OLED displays, but it does offer the micro power drain even when displaying a reading.
The small font is kind of ugly. It simply takes every other pixel from the ROM font. I remember there was a thread about how to improve the font, but I can't find it now.
The code attached to post 1 is revised, debugging code and object removed.
ANY suggestions or help would be appreciated, thanks John
For an 8-character string in the large font, the usual starting points on the 128x128 panel are 0, 32,64 or 96.
Here is the concept. Declare an 8-byte array in VAR or DAT, and initialize it either with 8 spaces or with some fixed text. Each time around the loop, convert the numerical value(s) into text to fill in the rest of the string, then call the Drawstring method to write it out. Example follows, to print out two MCP3202 channels on the top two lines, as "mVn=xxxx"
THANKS John
Hi John, Sorry, I don't know how to connect a Spin driver to Blockly. I believe C is the main underlying language, so maybe you'd have to convert the driver to C and then connect it. Maybe someone else can pipe up with how to go about that.
ok thanks