Skip to main content
added 6 characters in body
Source Link
Delta_G
  • 3.4k
  • 2
  • 13
  • 24

Create them as char arrays like this:

const char* menu[2] = {"Menu 1", "Menu 2"};

and use them like this:

Serial.println(menu[0]);

Create them as char arrays like this:

char* menu[2] = {"Menu 1", "Menu 2"};

and use them like this:

Serial.println(menu[0]);

Create them as char arrays like this:

const char* menu[2] = {"Menu 1", "Menu 2"};

and use them like this:

Serial.println(menu[0]);
Source Link
Delta_G
  • 3.4k
  • 2
  • 13
  • 24

Create them as char arrays like this:

char* menu[2] = {"Menu 1", "Menu 2"};

and use them like this:

Serial.println(menu[0]);