[Casual hacking] GPIO app for Raspberry Pi
What is GPIO?
GPIO stands for General Purpose Input/Output. By integrating with software, electrical input and output of a device can be controlled.
This blog post is about GPIO Raspberry Pi, one of the most popular board out there.
If you are one of its users, you’ll be able to see that it’s quite different from how you managed and built it before.
(Above is what the GPIO app looks like)
(This is what inside the app looks like when you first launch it.)
(Python code to test input & output)
This’s what it looked like before when trying code to control pins.
To list functions in the GPIO UI you’ve seen above, they are as follows:
GPIO / SPI, UART, I2C / Pull up & down / PWM
1) GPIO pins
- Input, Output
Select the specific GPIO pins that you wish.
When selected it provide you options like the following.
Selecting Input will let you Read.
You can find out if the current GPIO state is 0 or 1 with this option.
Selecting Output will send data of 0 and 1 to the specific device.
For instance, when trying to control the LED using Raspberry Pi, you can control its power using True(=1), False(=1) using python. Writing 1 in blank will turn on the LED and 0 in blank will turn off the LED.
2) PWM - GPIO18 pin
- 1 ~ 1023 write
Inputting 1023 like in the above will increase the voltage to its highest level.
What’s unique about using a GPIO app is that you can select input or output values with a few clicks.
However, this’s the real reason why it was created.
GPIO can be integrated with other apps. They can easily integrated for automation.
In the next blog post, you can find out more about how to integrate the values from GPIO with other apps and how to setup PI, UART, I2C, and Interrupt(rising, falling).







