Skip to content

Instantly share code, notes, and snippets.

View rwinscot's full-sized avatar

Rick Winscot rwinscot

View GitHub Profile
@fairchild
fairchild / arduino_multibyte_serial_example.cpp
Created April 13, 2009 07:37
Simple updated examples of arduino serial communications
/* ------------------------------------------------
* SERIAL COM - HANDELING MULTIPLE BYTES inside ARDUINO - 03_function development
* by beltran berrocal
*
* this prog establishes a connection with the pc and waits for it to send him
* a long string of characters like "hello Arduino!".
* Then Arduino informs the pc that it heard the whole sentence
*
* the same as examlpe 03 but it deploys 2 reusable functions.
* for doing the same job.
@AlexMAS
AlexMAS / ProcessAsyncHelper.cs
Last active July 24, 2024 18:39
The right way to run external process in .NET (async version)
using System;
using System.Diagnostics;
using System.Text;
using System.Threading.Tasks;
public static class ProcessAsyncHelper
{
public static async Task<ProcessResult> ExecuteShellCommand(string command, string arguments, int timeout)
{
var result = new ProcessResult();