Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Sub cmdtx_Click()
Dim Buffer as String
Buffer = ""
Buffer = Buffer & Chr$(255)
Buffer = Buffer & Chr$(123)
Buffer = Buffer & Chr$(233)
Buffer = Buffer & Chr$(234)
Buffer = Buffer & Chr$(134)
MSComm1.Output = Buffer
End Sub
Dim OutString As String
Private Sub Form_Load()
MSComm1.PortOpen = True
Timer1.Interval = 10
OutString = "Hello World"
End Sub
Private Sub Timer1_Timer()
If Len(OutString) > 0 Then
MSComm1.output = Left(OutString, 1)
OutString = Mid(OutString, 2)
End If
End Sub
do {
one=0;
while(one!=255){ //wait for start of packet
while(!Usart_Data_Ready()); //wait for byte to be received
one = USART_Read(); //read it
}
while(!Usart_Data_Ready());
one = USART_Read(); //should contain 123
while(!Usart_Data_Ready());
two = USART_Read();
while(!Usart_Data_Ready());
three = USART_Read();
while(!Usart_Data_Ready());
four = USART_Read();
}while (1);