P1 SPIN code for SSD1306 OLED
![VonSzarvas](https://forums.parallax.com/uploads/userpics/814/n2KKWCY80HQA7.png)
in Propeller 1
128x64 pixel display
Has anyone got a SPIN code demo running different size fonts ?
I found something in OBEX with a 5x7 font, but it's too tiny.
There's another with 16x32, but it's too large, taking 4 rows out of an available 8.
Looking for something in the middle, maybe taking 2 or 3 rows, perhaps 8x12 or 8x16 (or 12x...) size fonts?
Comments
I found this (really old) SD1306 driver for the P1 that embeds an 8x8 font and will also print it to the screen as 16x16. Its only Spin, so probably very slow (which is why there are a lot of comments about converting sections to PASM). Perhaps you can "kit bash" this code to do what you need.
Thank you @JonnyMac
That worked very nicely as-is.
I'm curious if you had ever implemented the FONT_PLX option ?
The font included works just right; no need for anything else, unless perhaps even larger fonts are required by someone.
Here's a demo wrapper for anyone wanting to run a quick test:
@JonnyMac
do you mind if I post that demo to OBEX, and include your object src ?
I did in a different OLED driver (for the P2). The storage of the Parallax font is interleaved so it has to be done as in a separate object.
Not at all.