Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //////////// Serial Input 1:
- SS25.00
- //////////// Serial Output 1:
- 25.00
- //////////// Serial Input 2:
- SS25.00
- //////////// Serial Output 2:
- 25���
- //////////// CODE:
- String speed_setting;
- // Read incoming speed. Formatted as characters: XX.X
- for(int i=0; i<5; i++){
- char incoming_value = Serial.read(); // TODO: I think this causes the decimal problem
- speed_setting += incoming_value;
- }
- Serial.flush();
- Serial.println(speed_setting);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement