PDA

View Full Version : wiringpi serial communication



rapid84
1st January 2016, 18:27
Hi,
I am searching wiringpi serial example created with qt. Is there any reference project? I have to cross compile qt for my embedded system and i want to use wiringpi for serial . Or you can give me another solution, i am new on this work.

ChrisW67
3rd January 2016, 06:29
Wiringpi is a C library for GPIO acces on Raspberry Pi hardware. The examples can be found here: http://wiringpi.com/examples/
Using this has nothing to do with Qt and requires only a working C compiler, which Raspbian provides.

If you want to build a Qt program and have it use the library then you probably only need:


INCLUDEPATH += /usr/local/include
LIBS += -L/usr/local/lib -lwiringPi

In your pro file.