c++ programming for raspberry Pi

Discussion in 'Microcontrollers, Programming and IoT' started by Daljeet12, Jul 4, 2018.

  1. Daljeet12

    Daljeet12

    Joined:
    Jun 16, 2018
    Messages:
    5
    Likes Received:
    0
    Hello, all!

    I bought raspberry pi chip and installed raspbian stretch lite on it. The most commonly languages used for raspberry Pi are Python or C ++ language. I can write and run c++ program on raspberry pi and desktop PC. I want to understand how do we access GPIO of Raspberry in C++ language. I have searched a lot on internet before posting to question on forum but I don't understand how to access the Raspberry Pi's GPIO in C++ programming language.

    I am very interested to know how do you access the Raspberry Pi's GPIO in C++ programming language.

    Please share your experience. Your advice can help me a lot..
     
    Daljeet12, Jul 4, 2018
    #1
  2. Daljeet12

    Harald Kapp Moderator Moderator

    Joined:
    Nov 17, 2011
    Messages:
    8,594
    Likes Received:
    1,663
    Location:
    Germany-Europe-Earth-Sol System-Milky Way-Laniakea
  3. Daljeet12

    Daljeet12

    Joined:
    Jun 16, 2018
    Messages:
    5
    Likes Received:
    0
    Daljeet12, Jul 5, 2018
    #3
  4. Daljeet12

    Harald Kapp Moderator Moderator

    Joined:
    Nov 17, 2011
    Messages:
    8,594
    Likes Received:
    1,663
    Location:
    Germany-Europe-Earth-Sol System-Milky Way-Laniakea
    Not only, read on under "Writing a GPIO C++ Class"
     
    Harald Kapp, Jul 5, 2018
    #4
  5. Daljeet12

    Harald Kapp Moderator Moderator

    Joined:
    Nov 17, 2011
    Messages:
    8,594
    Likes Received:
    1,663
    Location:
    Germany-Europe-Earth-Sol System-Milky Way-Laniakea
    I can, Google can, you can, too.
     
    Harald Kapp, Jul 5, 2018
    #5
  6. Daljeet12

    Daljeet12

    Joined:
    Jun 16, 2018
    Messages:
    5
    Likes Received:
    0
    Thank's a lot Harald Kapp, I have installed wiringpi on raspberry pi and Now I can access gpio of Pi.
     
    Daljeet12, Jul 11, 2018
    #6
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.