Close

Installation v2 - My private notes ;)

A project log for #Zepir Raspberry Pi Zero mini computer

on rpi GPIO is enough signals to direct button matrix + 2" IPS 320x240 display.

bobriciusbobricius 10/01/2021 at 21:040 Comments
My private notes ;)

My steps:

Write image: 2021-05-07-raspios-buster-armhf-lite.img

copy to boot:

empty file ssh

wpa_supplicant.conf

country=SK
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
    ssid="mynetwork"
    psk="mykey"
}

add in to config.txt

[all]

hdmi_group=2
hdmi_mode=87
hdmi_cvt=320 240 60 1 0 0 0
hdmi_force_hotplug=1

dtparam=audio=on
start_x=0

dtoverlay=audremap,pins_18_19
dtparam=i2s=on
dtparam=spi=off

display IP address

ifconfig


via ssh

Login: pi
password: raspberry

$ sudo raspi-config

SET AUDIO > headphones
boot console autologin pi

DISPLAY SETUP

sudo apt-get update
sudo apt-get install cmake
sudo apt-get install git
cd ~
git clone https://github.com/bobricius/fbcp-ili9341.git
cd fbcp-ili9341

cd fbcp-ili9341/build
rm -r *

cmake -DST7789VW=ON -DGPIO_TFT_DATA_CONTROL=25 -DGPIO_TFT_RESET_PIN=27 -DSTATISTICS=0 -DSPI_BUS_CLOCK_DIVISOR=6 -DUSE_DMA_TRANSFERS=OFF -DDISPLAY_ROTATE_180_DEGREES=ON ..

make -j
sudo ./fbcp-ili9341

Extra toys

sudo apt-get install mc
sudo apt-get install w3m
sudo apt-get install mpg123

KEYBOARD SETUP 

cd ~
git clone https://github.com/bobricius/gpiokeyboard.git
pip3 install python-uinput

For autorun on startup put this line before exit 0 in your sudo nano /etc/rc.local

sudo /home/pi/fbcp-ili9341/build/fbcp-ili9341 &
sudo modprobe -i uinput &
sudo python3 /home/pi/gpiokeyboard/gpiokeyboard.py &
sudo setfont /usr/share/consolefonts/Lat2-Terminus20x10.psf.gz &

Discussions