Converting old code to new IDE

I have some old libraries that look like:

const prog_char flModeStr [5][11] PROGMEM = {
  "   Run    ",  //0
  "   Pause  ",  //1
  "   Stop   ",  //2
  "   Wait   ",  //3
  "   Heat   ",  //4
  "          "}; //5

const char *flight_mode[] = {
  flModeStr[0],  flModeStr[1], flModeStr[2], flModeStr[3], flModeStr[4], flModeStr[5]
};

I figured out that

const char flModeStr [5][11] PROGMEM = {

just works, I am not completely sure if that's how it's supposed to be, if that's fully equvalent.

  • but then I have another array :
const prog_uchar sig_pattern[22][40] PROGMEM = {

  { 1,1,1,1,1,1,1,1,1,1  ,1,1,1,1,1,1,1,1,1,1  ,1,1,1,1,1,1,0,0,0,0  ,1,1,1,1,1,1,0,0,0,0},
  • but this time the trick of removing "prog_" does not work, "uchar" is not recognized, so "byte" should be correct ?

The sources, with all it's old libraries are still ar from a successfull compilation, so I just needed to verify these two before taking an all the other work..

uchar is an unsigned char, which I believe is 1 byte on the arduino.

so the type "unsigned char" should work.

its not uncommon to see a lot of these types typedef'd in code to save on typing.

*Edit:

byte type would also work :wink: