Hey there,
i'd like to know if its possible to read only one digit(int) out of the Serial buffer of an arduino?
I know that the function Serial.parseInt(); reads all Integers out of the Serial buffer, but is it also possible to read just one digit out of buffer.
I could also just throw it all in to an int with paresInt and sort the digits out one by one with for example (1234 * 10U ) % 10 (might be wrong), or I delay the Input from the Serial Monitor to the Arduino, I dunno how, but I hope there is another way to do it.
What do you mean 'one digit'? Assuming the data is being sent to your Arduino as ASCII there will be any number of digits depending on how big the number is. Follow the advice in the tutorial.
By digit I mean an Integere type like 0123456789.
If we write "Hello I'm 25 Years old and my hight is 190cm" over the Serial Monitor, I just wanna take out number 2 out of the buffer and store it.