Important: Please read the Qt Code of Conduct -

wiringPi library in qml code

  • Hello,
    I want to use wiringPi library for turn on LED on raspberry pi, but now i don't know how i can use wiringPi library in my qml code with plugin, i cann't find a sample code of it in net.
    help me!

  • Moderators

    hi, wiring pi comes with a c/c++ api therefore it should be straight forward.

    To use it, wrap it in a basic c++/qobject class and expose it to qml

    You can read here, on how to intergrate a c++ class into qml

  • thank you very much for your answer, i followed your suggested link and wrote my code but it is not complete because i don't know how should i do for complete it. can you check my project files and help me to complete it?

Log in to reply