How can i use strcpy (if available in arduboy librares), to copy a string?
I want to copy the string to a char variable. Or theres another way to do it?
This is the function im using:
I lifted this bit of code from Dark and Under. It looks suspiciously like @Pharap’s. It stores the strings in PROGMEM (not RAM) and returns them into a local variable read for printing …
const __FlashStringHelper * text = nullptr;
switch (itemType) {
case ItemType::Key:
text = F("SOME KEYS");
break;
case ItemType::Potion:
text = F("HP POTION");
break;
case ItemType::Scroll:
text = F("A SCROLL");
break;
case ItemType::Shield:
text = F("A SHIELD");
break;
case ItemType::Sword:
text = F(" A SWORD");
break;
default: break;
}