Blog

Serial Comunication on Fpc (Target HW : Arduino)

arduino

We have tried the Synapse Library, to build an application with Lazarus for serial comunication on Linux.

The library seems very good, no need installation, only using unit, in this case synaser.pas. The project is open source and well organized.

With the sample project we connected an Arduino that is a very cheap microcontroller.

Some example of using Synapse Library can be found on http://wiki.freepascal.org/Hardware_Access .

the program that read and write to usb as a serial port:

appDemo

the piece of code that use synaser.pas :

connect procedure

hoping that is interesting
happy Christmas

Lascia un commento

Scoprite cosa possiamo fare per il vostro business
Tecnologie e Partner