void getSaying(int x)
{ M5.Lcd.setCursor(0, 80);
switch (x) {
case 1:
M5.Lcd.println(1);
break;
case 2:
M5.Lcd.println(2);
break;
case 3:
M5.Lcd.println(3);
break;
case 4:
M5.Lcd.println(4);
break;
case 5:
M5.Lcd.println(5);
break;
case 6:
M5.Lcd.println(6);
break;
case 7:
M5.Lcd.println(7);
break;
case 8:
M5.Lcd.println(8);
break;
case 9:
M5.Lcd.println(9);
break;
case 10:
M5.Lcd.println(10);
break;
case 11:
M5.Lcd.println(11);
break;
case 12:
M5.Lcd.println(12);
break;
case 13:
M5.Lcd.println(13);
break;
case 14:
M5.Lcd.println(14);
break;
case 15:
M5.Lcd.println(15);
break;
case 16:
M5.Lcd.println(16);
break;
case 17:
M5.Lcd.println(17);
break;
default:
M5.Lcd.println("No String Found X="+x);
break;
}
return;
}
<---------Program will not compile, line is highlighted after the last bracket
error is 'expected declaration before '}' token'
Posts made by teddygag
-
Compiler error in subroutine
-
M5stack Fire bricked !!!
Someone said it is almost impossible to brick a fire unit. Well I did it. I have three core modules, faces, core2, and fire. I was updating them to 1.75 and I messed up. I was confused an burned the core2 image to the fire unit. Now the fire core is dead in the water. It is dark, no signs of activity. It will not communicate on the com port. The burner just times out, waiting for a packet header. My faces, and core2 units are ok. My fire unit is gone. Any ideas on how to get it to communicate again ?
I am windows 10 pro on a Thinkpad T420. I bought the laptop to dedicate it to core development. It is set up for Arduino and UIflow. Both work well. Neither one will communicate with dead fire.
I am stuck. Perhaps one of the more experienced engineers can duplicate the problem and then fix it. I don’t really want to buy another unit.
Ted, a retired pc tech. I do the support work for the elderly at the retirement home where I live in Watertown Wi. Fixing all sorts of things, except iPhones.
I am really embarrassed I can’t fix this. If it is a lost cause, please tell me.
-
Faces error, can not connect
Re: ERROR FACE not connect
I am having the EXACT same proble. You think it would have been resolved by now.
This error occurs with the calculator face also. Whether you do it in Arduino or Uiflow. I’ve only got the rfid face and keyboard face to work.Some help here please ?