snipplets.dev/snipplets/code/C/libserialport/README.md

19 lines
383 B
Markdown
Raw Normal View History

2023-07-29 21:05:08 +03:00
Download `libserialport` library.
```sh
git clone git://sigrok.org/libserialport
```
For **build** code use `build` script or build files manually.
Example:
```sh
export C_INCLUDE_PATH=<path/to/libserialport>
export LIBRARY_PATH=<path/to/libserialport/.libs>
gcc -static -Wall -O3 -o <output_filename> <file.c> -lserialport
```
2023-07-30 11:10:19 +03:00
Arduino example project store in `Board` folder.