ghi-electronics / TinyCLR-Drivers

Drivers for sensors/devices to be used with TinyCLR OS
Apache License 2.0
6 stars 9 forks source link

Add newline and escape sequence support for BasicGraphics.DrawTinyString #350

Closed QOTF-Alexi closed 5 months ago

QOTF-Alexi commented 5 months ago

I decided to port over this bit of code from BasicGraphics.DrawString because it significantly reduces the amount of times the DrawTinyString method would need to be called if the required string is very long and does not fit on a single line. I have tested it on an SSD1306 128x64px display and it seems to work without issue. Spacing was adjusted as required on said display; I have no others to test it on.

Palomino34 commented 5 months ago

Thanks