RaspberryPi is a well established tiny-pc which is worldwide used for prototyping as well as mini DYI projects. In this tutorial we will explain step-by-step how to setup the raspberryPI with a touchscreen and install some useful libraries for writing simple and nice GUI applications. PS: For sure there are several other libraries that can be used to write graphical applications such as QT etc..
- RaspberryPI 3 Model B
- RaspberryPI 3 7” Touchscreen Display
- SD Card – with Raspbian Buster with desktop (https://www.raspberrypi.org/downloads/raspbian/)
- Internet 🙂
Step 1: Connect the display
As a first step we need to connect the display to our raspberry. To do that i suggest searching through google for a tutorial, you will find an enormous amount of information, however just for competence remember that you need to connect the Stripe,5V,GND the rest are not useful for our setup. Below is a picture showing the final setup.. hope it helps..
Step 2: Put the SD Card and power on!
In this step you may need to wait a bit until the system fully initialize itself. When you log in the GUI and finish any configuration that will be asked, you should update rasbian with the latest libraries.. to do this…
sudo apt-get update
sudo apt-get upgrade
Step 3: Install the rest of the libraries (DirectFB GTK#)
Here you need to install some more libraries and afterwards you will be ready to start!
sudo apt-get install mono-runtime mono-mcs libdirectfb-dev gtk-sharp2