Skip to content

Instantly share code, notes, and snippets.

@ntd
ntd / libserialport example.c
Last active October 16, 2019 15:13 — forked from Nixes/libserialport example.c
libserialport example
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <unistd.h> // for sleep function
#include <libserialport.h> // cross platform serial port lib
//#include "protocol.h"
const char* desired_port = "COM8";