c# communicate with arduino
using System;
using System.IO.Ports;
using System.Threading;
namespace ConsoleApp1
{
class Program
{
static SerialPort _serialPort;
public static void Main()
{
_serialPort = new SerialPort();
_serialPort.PortName = "COM4";//Set your board COM
_serialPort.BaudRate = 9600;
_serialPort.Open();
while (true)
{
string a = _serialPort.ReadExisting();
Console.WriteLine(a);
Thread.Sleep(200);
}
}
}
}
Also in C#:
- unity html get request
- using mediamanager how to play mp3 files
- unity left mouse button
- convert from xls to xlsx C#
- button color uwp c#
- unity how to change rotation
- take screenshot in c#
- c# join string array
- how to update modal class using dbfirst in asp.net core
- rotatearound unity
- C# previous method
- asp textarea
- strtorime online
- how to make an object move in unity
- instantiate offset unity
- C# resize window without title bar
- unity c# foreach
- c# get desktop path
- c# while loop
- internal c#
- how to close a form c#
- reference to gameobject in different scene unity
- c# multi threading example
- how to raycast unit