String *hexList[256];
String s0 // address
void setup() {
Serial1.begin(115200);
// pinMode(16, INPUT);
// pinMode(25, OUTPUT);
}
void hexConv(char a, char b) {
char buffer[4];
static i = 0;
sprintf(buffer, "0x%c%c", a, b);
s0 = buffer;
hexList[i] = &s0;
i++;
}
bool sw_status;
void loop() {
hexConv('5', 'C');
hexConv('0', 'F');
Serial1.println(*hexList[0]);
Serial1.println(*hexList[1]);
// sw_status = digitalRead(16);
// if(sw_status == 1) {
// digitalWrite(25, HIGH);
// } else {
// digitalWrite(25, LOW);
// }
delay(10); // this speeds up the simulation
}