wiringPi

Raspberry PI RGB example in C

In this example we will flash an RGB LED using C Schematics Here is a schematic and layout Code This example requires wiringPi to be installed – http://wiringpi.com/download-and-install/ [codesyntax lang=”c”] #include <wiringPi.h> #include <stdio.h> #define REDLED 0 #define GREENLED 1 #define BLUELED 2 void init(void) {…

Read more

Raspberry Pi and 74hc595 wiringPi example

This is a follow on from the Raspberry PI and python example – http://www.pibits.net/code/raspberry-pi-and-74hc595-python-example.php This example uses wiringPi Schematic Code This example is C++, it will flash an LED one at a time connected to the 74HC595 Call this shift.c [codesyntax lang=”cpp”] #include <wiringPi.h> #include <stdio.h>…

Read more

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Read More