mirror of
https://github.com/modelec/connectors.git
synced 2026-01-18 16:57:21 +01:00
19 lines
333 B
C++
19 lines
333 B
C++
#ifndef CONNECTOR
|
|
#define CONNECTOR
|
|
|
|
|
|
#include <iostream>
|
|
#include "serialib.h"
|
|
#define SERIAL_PORT "/dev/ttyACM0"
|
|
#define MAX_MESSAGE_LEN 64
|
|
#define BAUDS 9600 //vitesse des données (bit/sec)
|
|
#define TIME_OUT 2000
|
|
|
|
using namespace std;
|
|
|
|
void read_from_arduino(char * message_output);
|
|
|
|
void write_2_arduino(char* message);
|
|
|
|
#endif
|