Connect with us

c++ programming for raspberry Pi

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

  1. Daljeet12

    Daljeet12

    19
    0
    Jun 16, 2018
    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..
     
  2. Daljeet12

    Daljeet12

    19
    0
    Jun 16, 2018
  3. Harald Kapp

    Harald Kapp Moderator Moderator

    9,364
    1,901
    Nov 17, 2011
    Not only, read on under "Writing a GPIO C++ Class"
     
  4. Harald Kapp

    Harald Kapp Moderator Moderator

    9,364
    1,901
    Nov 17, 2011
    I can, Google can, you can, too.
     
  5. Daljeet12

    Daljeet12

    19
    0
    Jun 16, 2018
    Thank's a lot Harald Kapp, I have installed wiringpi on raspberry pi and Now I can access gpio of Pi.
     
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.
Electronics Point Logo
Continue to site
Quote of the day

-