Hi guys, I'm pretty much a C newbie, but I've dabbled in other languages over the years. For my current project I'm using mikroElektronica Pro C on a PIC microcontroller.
I've got a 2-dimensional array defined like this:
const char FONTTABLE[96][5]=
{
{0x00,0x00,0x00,0x00,0x00},
{0x00,0x00,0x5f,0x00,0x00},
{0x00,0x07,0x00,0x07,0x00},
/** [90 rows snipped] **/
{0x00,0x41,0x36,0x08,0x00},
{0x10,0x08,0x08,0x10,0x08},
{0x78,0x46,0x41,0x46,0x78}
};
I want to select a given row from this using the index (0-95), then pass that element (a 5 element array) to a routine that will process each byte for the size of the row (5 in this case). I'm pretty sure I need to use a pointer, but no matter what I do I get compile errors.
Any tips?