Skip to main content

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

Hey there is a greate function. https://www.arduino.cc/en/Serial/ParseInt

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

there is a great function: https://www.arduino.cc/en/Serial/ParseInt

I 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; } } 
added 151 characters in body
Source Link
LFS96
  • 116
  • 1

Hey there is a greate function. https://www.arduino.cc/en/Serial/ParseInt

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

Hey there is a greate function. https://www.arduino.cc/en/Serial/ParseInt

Do something like this

int number = 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); get_data = false; } } void SerialEvent() if(!get_data){ number = 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

Hey there is a greate function. https://www.arduino.cc/en/Serial/ParseInt

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

Source Link
LFS96
  • 116
  • 1

Hey there is a greate function. https://www.arduino.cc/en/Serial/ParseInt

Do something like this

int number = 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); get_data = false; } } void SerialEvent() if(!get_data){ number = 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