I tried to command a servo, via usb, from C # application to an Arduino.
When you pull the slider bar, the value is sent to the Arduino, which represent the positions of the servo.
C# code:
using System.Text;
using System.Windows.Forms;
using System.IO.Ports;
namespace SERIAL_ANALOG_WRITE
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void bara_ValueChanged(object sender, EventArgs e)
{
[ do you want the rest of the code???? ]
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
if (serialPort1.IsOpen) serialPort1.Close();
}
}
}
Hi, Can I get the full C# code for my project please?
RăspundețiȘtergereMy email : mateusz.szymonski@gmail.com
Hello, Can you send me the full C# code?
RăspundețiȘtergereI really need it for my project. Thanks a lot!
My email is lawgeebye@gmail.com
Hello, Can you send me the full C# code please?
RăspundețiȘtergereI really need it for my project. Thanks a lot!
my email is lawgeebye@gmail.com