- Thu Jun 30, 2022 8:19 pm
#94881
I have found examples that are close to what I need but I have not found a method to output text strings created in the scope of the Arduino C code to the JavaScript.
I have tried to create the strings in the JavaScript without success. It will only allow a few strings in the JavaScript with out causing other compiler errors.
This seems to be the direction to go but...
document.getElementById("outputState").innerHTML = outputStateM;
I need to set (outputStateM) to the text string to display.
Strings are created like this:
const char string_0[] PROGMEM = "Make A Selection" ;
const char string_1[] PROGMEM = "Young Girl" ;
const char string_2[] PROGMEM = "Lady Willpower" ;
const char string_3[] PROGMEM = "Bad, Bad Leroy Brown" ;
const char string_4[] PROGMEM = "You Don't Mess Around With Jim" ;
const char string_5[] PROGMEM = "I Got A Name" ;
const char string_6[] PROGMEM = "I'll Have To Say I Love You In A Song" ;
const char string_7[] PROGMEM = "Operator" ;
const char string_8[] PROGMEM = "Time In A Bottle" ;
const char string_9[] PROGMEM = "It's a Long Way There" ;