Skip to content

Conversation

@mattdf
Copy link

@mattdf mattdf commented Feb 9, 2016

Just a simple macro to allow for an alternative font data storage location that doesn't kill SRAM/RAM space. In AVR if you don't use the PROGMEM attribute in __UG_FONT_DATA, the font data takes up more than the available SRAM on the chip, but using the PROGMEM attribute requires accessing the font bytes with pgm_read_byte(&(font->p[index++])). The macro allows configuring this accessor from ugui_config.h

function is needed, as is the case on AVR if you use the PROGMEM
attribute in the __UG_FONT_DATA declaration
@stevenjeffries
Copy link

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants