Raspberry Pi GPIO with Processing – Blinking LED – Lesson 1

If you are getting started to use Raspberry Pi with Processing 3 read the getting started guide here 👇

Blinking An LED

As we are beginning to learn programming Raspberry Pi with Processing, the LED blinking program is a good start.

Below are the keywords/functions we are going to cover in the first lesson

digitalWrite()

Sets an output pin to be either high or low

You need to set the pin to output by calling pinMode() before calling this function. Unlike on Arduino, it is not possible to set an input pin’s internal pull-up resistor using this function.

Syntax.digitalWrite(pin, value)
Parameterspin int: GPIO pin
value int: GPIO.HIGH (1) or GPIO.LOW (0)
value boolean: true or false
Returnsvoid

Circuit

Code

Leave a Reply