Hi all, i need some help on reading some data from serial monitor and storing them on some variables, (just some numbers)
for example lets suppose we have variables like this
i want to be able to store data that came from serial monitor to the specific variable for example when i send S05150E (on serial monitor) then the atmega must store the number 150 to variable input
so on S05150E S will mean that we are STARTing to send data 05 will mean that we choose to store data on input variable 150 will mean that we chose number 150 to store ( on variable input) E will mean that we inform chip that we are ENDING transmiting
maybe there is a better idea on how to storing data to variables but i dont know any better (if anyone else knows can inform me).
can anyone help me on how can i do that? do i need to cycle all time with many " while" and "if" on each character that coming from data? is there any better and easier way? please give me a syntax
thanks in advance sorry for my bad english