PROGMEM variable reference call!


hi there! trying create small arduino code can pull flash memory data based on variable reference string

how define 1 of flash memory variable:

code: [select]
char h0[] progmem = "01000010";
char h1[] progmem = "01000010";
char h2[] progmem = "01000010";
char h3[] progmem = "01111110";
char h4[] progmem = "01000010";
char h5[] progmem = "01000010";
char h6[] progmem = "01000010";
char h7[] progmem = "01000010";
pgm_p h[8] progmem= {h0,h1,h2,h3,h4,h5,h6,h7};

//this string
char string[ ] = "hhh";


now, trying load string variable data pgm_p h[8] array, instance when scan string, 3 characters of "h" , based on load h[8] variable flash memory, know simple way this?

thanks in advance, , hope explication clear enough on trying achieve! ovidiu



Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > PROGMEM variable reference call!


arduino

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums