- Raspberry PI (version 2 was used)
- EA DIGS104-A
The devices were connected via SPI.
SPI-GPIOs at the Raspberry:
- GPIO10 MOSI
- GPIO9 MISO
- GPIO11 SCLK
- GPIO8 CE0
Additional commands:
- GPIO18 LCD backlight control
EA DOGS104-A including SSD1803A controller
At kernel 3.18 and newer SPI must be activated in the raspberry in the /boot/config.txt by adding the following line:
dtparam=spi=on
Or activate SPI with the raspi-config tool.
Load the kernel module sudo modprobe spi_bcm2835
.
In the folder /etc/udev/rules.d/ generate a file named 51-i2c.rules.
With the following content: SUBSYSTEM=="spidev", GROUP="users", MODE="0660"
After restarting the service, everything is prepared:
sudo service udev restart
- build-essentials
- cmake
Go into the bulid folder and use cmake
and make
to build the tool.
As shown here:
cd build
cmake ../
make