Is it possible to map data to values in C (for AVR)?
To display a character I need to take the 'source' char (such as 0x41) and look it up in the flash memory of the AVR, returning an array of chars (which will be used to render the character). It would be desirable for that information to reside in its own file (a Header perhaps?) - because this would enable multiple interchangeable fonts.
This is certainly possible in PIC micro-controller (I made a program utilising data blocks in Assembler a while ago for PIC) and I can't imagine that it's difficult on an Assembler level for AVR either, but I am unsure what I am looking for in the C language.
Any help would be appreciated,
Thanks,
Drew
P.S. I'm a Java programmer but new to C and AVR.
2
answers
|
Answer it!
|
Thanks very much for the concise and fast response,
Drew
![]() |































