ABS mini tower kit 's driver and installation script.
If for some reason you wish to install a custom Kali OS or use the Raspberry Pi OS you will need this to install the drivers for the OLED display.
NOTE If you use the recovery image provided with the MiniTower you do not need this.
i2cdetect -y 1
If you see 3c
in one of the colums then the OLED display is being detected correctly.
If you do not see a 3c
in one of the colums then the OLED display is not being detected.
If the display is not detected:
- Verfiy the
i2c.conf
file has the is correct.sudo nano /etc/modules-load.d/i2c.conf
Verfiy it contains the following:
i2c-bcm2835
i2c-dev
- Verify the
/boot/config.txt
file is correct:sudo nano /boot/config.txt
Uncomment and add the following to/boot/config.txt
The following should be present and uncommented:
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=spi=on
dtparam=i2c1=on
- Verify your user is a member of the
gpio
andi2c
groupsgroups <username>
For examplegroups kali
check the groups forgpio
andi2c
if they are not presentsudo groupadd gpio
sudo usermod -aG gpio,i2c kali
- Recheck
i2cdetect
i2cdetect -y 1
- Open a terminal and make sure your Raspberry Pi has internet access.
cd ~
git clone https://github.com/geeekpi/absminitowerkit.git
cd absminitowerkit/
./install_kali-arm.sh
- It will
Reboot
Raspberry Piautomatically
. - Have fun!
- Open a terminal and execute the
uninstall.sh
script.
cd ~
cd absminitowerkit/
./uninstall.sh
If you want to create your own script, please check following location:
-
- /etc/systemd/system/minitower_moodlight.service --- moodlight service file
-
- /etc/systemd/system/minitower_oled.service --- OLED service file
-
- /usr/local/minitower/demo_opts.py --- OLED display script's dependency file
-
- /usr/local/minitower/sysinfo-net.py --- OLED display script
-
- /usr/bin/moodlight --- /tmp/rpi_ws281x/build/test binary file
-
- /boot/firmware/config.txt --- configuration of I2C:
dtparam=i2c_arm=on
- /boot/firmware/config.txt --- configuration of I2C:
-
- /home/$USER/Downloads/examples ---Demo codes from luma.examples
PS: please replace $USER
to your own user name, we are using kali
user by default. you can modify the install_kali-arm.sh
file in grant permission section.
If you want to install the driver manually, please check the systemd_file
folder and demo_code
folder.
Hope you like it and have a nice day!