Problema con un picture box en visual basic y arduino............
Aprendiendo a unir VB con arduino me tope con este video https://www.youtube.com/watch?v=0PYCXe94u3k , lo práctique pero hay algo que no me funciona.... estoy abierta a sugerencias.
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
SerialPort1.PortName = "COM3"
If SerialPort1.IsOpen Then
Else
Try
Catch ex As Exception
SerialPort1.Open()
End Try
Timer1.Start()
Button1.Enabled = False
Button2.Enabled = True
End If
End Sub
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
Dim data As Object
data = SerialPort1.ReadExisting().ToString()
PictureBox1.String(data) '''''''''aquiii es donde no se furula
End Sub
End Class
No hay comentarios:
Publicar un comentario
Si gustas puedes dejar un comentario.