Static const uint8_t

I’m new here :blush:
How can i convert this code for spark core?

static const uint8_t PROGMEM
  smile_bmp[] =
  { B00111100,
    B01000010,
    B10100101,
    B10000001,
    B10100101,
    B10011001,
    B01000010,
    B00111100 },
  neutral_bmp[] =
  { B00111100,
    B01000010,
    B10100101,
    B10000001,
    B10111101,
    B10000001,
    B01000010,
    B00111100 },
  frown_bmp[] =
  { B00111100,
    B01000010,
    B10100101,
    B10000001,
    B10011001,
    B10100101,
    B01000010,
    B00111100 };

Hi @blondie63

You just need to remove (or define as null) PROGMEM and change B00111100 to standard C syntax 0b00111100.

static const uint8_t 
smile_bmp[] =
{ 0b00111100,
  0b01000010,
...
}
1 Like

Thanks !! i’ve to learn many things… :smiley:

1 Like