Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansuchocki authored Jan 19, 2023
1 parent 3e1d7cb commit 339cf1a
Showing 1 changed file with 6 additions and 25 deletions.
31 changes: 6 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,47 +54,28 @@ The documentation for the display directed me to the [LCD-Show repository](https

I ran the following commands on the Pi in order to download the file and copy it into place:

1. `$ curl -O "https://github.com/goodtft/LCD-show/raw/master/usr/tft35a-overlay.dtb"`
2. `$ sudo mv tft35a-overlay.dtb /boot/overlays/`
1. `$ curl -LO "https://github.com/goodtft/LCD-show/raw/master/usr/tft35a-overlay.dtb"`
2. `$ sudo cp tft35a-overlay.dtb /boot/overlays/tft35a.dtbo`

The following lines were added to my `/boot/config.txt` file:

```
dtparam=spi=on
dtoverlay=tft35a:rotate=270,speed=160000000,fps=60
```

Note that the order of entries in `config.txt` is significant. My full `config.txt`, at time of writing, is as follows:

```
# /boot/config.txt
# See /boot/overlays/README for all available options
#dtparam=audio=on
dtparam=spi=on
dtparam=debug=7
dtoverlay=vc4-kms-v3d
dtoverlay=tft35a:rotate=270,speed=160000000,fps=60
initramfs initramfs-linux.img followkernel
I gave the `alarm` user permission to access the 'framebuffer' device by running:

# Uncomment to enable bluetooth
#dtparam=krnbt=on
[pi4]
# Run as fast as firmware / board allows
arm_boost=1
```
`$ sudo usermod -aG video alarm`

After rebooting, I was able to verify that the display driver was loaded by displaying random data to the screen using:

`$ sudo cat /dev/urandom > /dev/fb0`

## Building and Running

1. `$ git clone git@github.com:ryansuchocki/panpi.git --recurse-submodules`
1. `$ git clone https://github.com/ryansuchocki/panpi.git --recurse-submodules`
2. `$ cd panpi`
3. `$ make`
4. `$ cp panpi.cfg.template panpi.cfg`
Expand Down

0 comments on commit 339cf1a

Please sign in to comment.