Really simple VB control of Boe-Bot or anything else.
GeorgeL
Posts: 131
Hey guys, so I finished my small app in visual basic·2008. It is a simple four button app where through a serial port (COM 1) it will move the Boe-Bot.
Attached is the code for the boe-bot, and an executable. The source is just the code, and needs the Form to be built by hand.
Try it out and enjoy.
NOTE: The exe has to be in the same folder as the 2 DLL's. Otherwise it wont work.
Just open the .bs2 file and upload.
Attached is the code for the boe-bot, and an executable. The source is just the code, and needs the Form to be built by hand.
Try it out and enjoy.
NOTE: The exe has to be in the same folder as the 2 DLL's. Otherwise it wont work.
Just open the .bs2 file and upload.
Comments
Private Sub Main_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
··· SerialPort1.Open()
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
··· Dim MSG As String = TextBox1.Text
··· SerialPort1.WriteLine(MSG)
End Sub
Configure the SerialPort1 Control via the Properties Pane with the Port #, BaudeRate.......ect. This is just a little example of how the SerialPort control·is used
to "SERIN 16,16780,[noparse][[/noparse]Dir] "
and in the code for the button is just SerialPort1.WriteLine(1) instead of declaring MSG, to remove confusion.