Here is a good example of
case
can you make use of this somehow?
(when a button is pressed, use the value of the seg-switch to do something)
BLYNK_WRITE(V5){
if(param.asInt()==1){
switch(adj){
case 0: set--;count=1;updateData();break;
case 1: db--;count=2;updateData();break;
case 2: low_set--;count=8;updateData();break;
case 3: if(low_hr==0){low_hr=23;}else{low_hr--;}count=9;updateData();break;
case 4: high_set--;count=10;updateData();break;
case 5: if(high_hr==0){high_hr=23;}else{high_hr--;}count=11;updateData();break;
case 6: if(oper==0){oper=2;}else{oper--;}count=7;updateData();break;
}}}