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) {…
Code
-
-
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>…
-
The DHT11 digital temperature and humidity sensor is a composite Sensor contains a calibrated digital signal output of the temperature and humidity. DHT11 uses a simplified single bus communication. Single bus that only one data line, the system of data exchange, control by a single…
-
The HC-SR04 Ultrasonic Range Sensor is used to measure distances by using ultrasonic sounds. It works by sending out a burst of ultrasound and listening for the echo when it bounces off of an object. A short pulse to trigger the detection, then listens for…
-
In this example we will write some text on a PCD8554 LCD display, this is also commonly known as the Nokia 5100 LCD and is quite a common LCD which can be found in many Arduino projects. It frequently comes as an LCD which you…
-
In this example we will add an LCD plate to our Raspberry PI, you could of course add an LCD and connect it up manually but this was an easier method which I wanted to investigate. Here i s a picture of the plate I purchased…