int _BLANK, _MODE, _MOTORS, _HC12W, _BUZON, _LEDON;
int * Settings[] = {&_BLANK, &_MODE, &_MOTORS, &_HC12W, &_BUZON, &_LEDON};
const int arraySize = sizeof(Settings) / sizeof(Settings[0]);
char msg[30];
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
_MODE = 15;
_MOTORS = 14;
_HC12W = 87;
_BUZON = 1;
_LEDON = 2;
for(int x = 0; x < arraySize; x++){
*Settings[x] = 10*x/2;
}//*/
for(int x = 0; x < arraySize; x++){
Serial.println(*Settings[x]);
}
sprintf(msg, "_MODE %i", *Settings[1]);
Serial.println(msg);
}
void loop() {
// put your main code here, to run repeatedly:
}