Raspberry Pi GPIO with Processing – Controlling LED Using GUI – Lesson 2

What are we going to do?

In this Lesson of Raspberry Pi GPIO with Processing, we are going to make a button using processing sketch and using that button to control the LED attached to the Raspberry Pi.

When we press the LEFT mouse click the button will change color to RED and the LED will turn ON.

When we press the RIGHT mouse click the button will change color to GREEN and the LED will turn OFF

Watch the demo video 👇

Keywords & Functions Used

Below are the new keywords and functions we are going to cover in lesson 2. Go to the previous lessons to know more about the previously learned keywords and functions.

Circuit

Code

Leave a Reply