mirror of
https://github.com/modelec/connectors.git
synced 2026-03-29 11:49:48 +02:00
17 lines
313 B
C++
17 lines
313 B
C++
#ifndef CONNECTOR
|
|
#define CONNECTOR
|
|
|
|
#include <iostream>
|
|
#include "serialib.h"
|
|
|
|
#define SERIAL_PORT "/dev/ttyACM0"
|
|
#define MAX_MESSAGE_LEN 64
|
|
#define BAUDS 115200 //vitesse des données (bit/sec)
|
|
#define TIME_OUT 2000
|
|
|
|
void write_2_arduino(serialib* serial, const char* message);
|
|
|
|
serialib init_serial();
|
|
|
|
#endif
|