geekammo/MicroView-Arduino-Library

A thought for a nice edition to the library...by Peter Scargill, via MicroView disqus

jpliew opened this issue · 0 comments

Peter Scargill • an hour ago

A thought for a nice edition to the library...

Microview supports print() and println() which is great - but bearing in mind this is a 328 chip which doesn't have a lot of RAM it does not support direct use of PROGMEM for strings. Newbies to Arduino might not be aware that strings are stored no only in FLASH but also in RAM, wasting valuable space.

So this will fail...

char PROGMEM fred[]="Hello";

uView.print(fred);

Arduino serial printing AND Ethernet printing both support this and it would be nice for consistency and ease of use if the Microview library also did... there is an alternative that's not quite so useful which DOES work of course..

uView.print(F("Hello"));