Hi!
I am creating a program to control a motor to arduino. Every time I run the code remains locked (without error) as if he could not read the buffer ... Ideas
I am creating a program to control a motor to arduino. Every time I run the code remains locked (without error) as if he could not read the buffer ... Ideas
B4X:
Sub Timer_buffer_Tick
If connected Then
text_serial_out.WriteLine("0 0" )'
text_serial_out.Flush
If text_serial_in.Ready Then 'check if there is any data waiting to be read
lbl_MotorPos.text=text_serial_in.ReadLine
lbl_MotorPosition.Text=lbl_MotorPos.text
End If
End If