Hey there is a greategreat function.: https://www.arduino.cc/en/Serial/ParseInt
DoI have tested the following script up 2kHz incoming, but it should go even faster. Do something like this
int number = 0; int number2 = 0; bool get_data = false; void setup() { Serial.begin(115200); inputString.reserve(200); pinMode(9,OUTPUT); // fixed pin 9 for PPM output } void loop() { if(get_data == true){ Serial.print(number); Serial.print(number2); get_data = false; } } void SerialEvent() if(!get_data){ number = Serial.parseInt(); number2 = Serial.parseInt(); get_data = true; } } P.S.: I have testet this script up 2kHz incoming, but it should go faster. But I never need it faster
Sorry for the bad grammer, but it is late in germany