The next step is to mount Raspberry, connect gpio pins and solder +5v connection to each button. The first picture shows +5v wiring. I know, I know, the 5v wires are of a different color, but I recycled some wires that I already had. The second picture shows gpio inputs wiring.
I'm not a developer and the last time I compiled a C source code was in the 90's on Commodore Amiga, using GCC. Finding all the packages needed for the compilation on my Ubuntu 21.10 laptop took a long time and I had to understand how CMakefile works, but in the end I succeded! To compile Plug from source code I needed to install some packages: apt-get install unzip cmake libusb-1.0-0-dev build-essential pkg-config googletest qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools libgmock-dev I got the source code from GitHub: wget https://github.com/offa/plug/ archive/refs/heads/master.zip Then I unzipped the code and cd to the source folder; from source folder I run the following commands: mkdir build && cd build cmake .. make make unittest make install When the compilation completed, I run the executable: plug
Finding all the packages needed for the compilation on my raspberry pios 11 took less time than ubuntu. To compile Plug from source code I needed to install the following packages: apt-get install cmake libusb-1.0-0-dev googletest qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools libgmock-dev apt suggests to install also cmake-doc ninka-build I got the source code from GitHub: wget https://github.com/offa/plug/ archive/refs/heads/master.zip Then I unzipped the code and cd to the source folder; from source folder I run the following commands: mkdir build && cd build cmake .. make make unittest make install Now I can edit and modify the original source code. Please note: the compilation process required more time on Raspberry than on my i5 laptop
Commenti
Posta un commento