Skip to content

Instantly share code, notes, and snippets.

@HectorTorres
Created June 12, 2017 05:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HectorTorres/36d846b2348db30ea3fbff7e38f313fc to your computer and use it in GitHub Desktop.
Save HectorTorres/36d846b2348db30ea3fbff7e38f313fc to your computer and use it in GitHub Desktop.
visual-arduino.c
Public Class Form1
Dim temp As String
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
temp = sp1.ReadLine
txt1.Text = temp
End Sub
Private Sub btn1_Click(sender As Object, e As EventArgs) Handles btn1.Click
sp1.Open()
Timer1.Start()
End Sub
Private Sub btn2_Click(sender As Object, e As EventArgs) Handles btn2.Click
sp1.Close()
End Sub
End Class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment