From the course: Raspberry Pi: GPIO

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

C control of GPIO

C control of GPIO

From the course: Raspberry Pi: GPIO

Start my 1-month free trial

C control of GPIO

- [Instructor] The C programming language has been around forever and is a must learn language for anyone hoping for a career in computer programming. Fortunately it's not all that hard to learn and it's well supported on the Raspberry Pi. So let's take a look at using C to drive the Raspberry Pi GPIO. Your first task with C is to choose a library to provide GPIO access. You can access the GPIO without a library, but unless you have a specific purpose, why not lean on the hard work of one of your peers? I've done some research to help you choose a library and included a comparison table handout in the exercise files. When you look for C code examples, you'll find the Wiring Pi library is very popular. However, the author of Wiring Pi has decided to terminate support for the library and requested the people use something else. So instead, I chose the bcm2835 library. You'll need to download and install the library.…

Contents