Raspberry PI GPIO Control Using C

Published

Introduction: Raspberry PI GPIO Control Using C

About: Blogger, Hacker, Embedded Product Designer :)

This tutorial will guide you to control gpio of raspberry pi using c programming language.

Step 1: Video Guide

Step 1: Install Git core

sudo apt-get install git-core

Step 2: Download code from git branch, git clone git://git.drogon.net/wiringPi

Step 3: build and install wiring pi library cd wiringPi ./build

Step 4: Open your text editor, Nano in my case

Code link http://www.myelectronicslab.com/tutorial/raspberry-pi-gpio-programming-c-wiring-pi-tutorial/

Step 4: Save , Exit, Compile and Run

Compile: gcc -o blink blink.c -lwiringPi Run: sudo ./blink

Get RPI Here: http://amzn.to/2hiW12H

Check Out My other Video Tutorials: https://www.youtube.com/channel/UCjz-bda-fHRlRzehcAX3khw

Do Visit Our Blog for cool projects: https://www.myelectronicslab.com Thanks!!!!!!!!!!!!

Share

    Recommendations

    • Creative Misuse Contest

      Creative Misuse Contest
    • Water Contest

      Water Contest
    • Oil Contest

      Oil Contest

    Discussions