Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. wiringPi library in qml code
Forum Updated to NodeBB v4.3 + New Features

wiringPi library in qml code

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 582 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Momeneh
    wrote on last edited by
    #1

    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!

    J.HilkJ 1 Reply Last reply
    0
    • M Momeneh

      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!

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      @Momeneh
      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


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      1
      • M Offline
        M Offline
        Momeneh
        wrote on last edited by
        #3

        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?

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved