hi
iam using slider and this code work with me
void bob() {
if (Serial.available() >= 2)
{
int value2;
char command = Serial.read();
switch (command)
{
case 'a': value2 = Serial.parseInt();
CYCLE_TIME = value2;
{
break;
case 'b': value2 = Serial.parseInt();
TX_PULSE = value2;
break;
}
try this code or modify it as your demand
if (Serial.available())
{
int value2;
char option = Serial.read();
}
switch (option)
{
case 'a':value2 = Serial.parseInt();
a =value2
break;
case 'z':value2 = Serial.parseInt();
z=value2
break;
}