Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Given:
const char* PROGMEM names[] = {"Foo","Bar"}; Serial.print(names[0]);
I get garbage output. Is there some function that will print the string from PROGMEM? E.G.:
Serial.print(<function name>(names[0]);
pgm_read_***_near
Among many others, check out pgmspace.h utilities at AVR-libc
const char PROGMEM b0 = pgm_read_dword(&(names[0])); Serial.print(b0);
PROGMEM
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.
pgm_read_***_near