Skip to content

SPI config

Johan Söderlind Åström edited this page Feb 2, 2018 · 1 revision

Enable SPI

Edit file

sudo nano /DietPi/config.txt

Change

dtparam=spi=off

To

dtparam=spi=off

Buffer size

It is recommended to set the SPI buffer size to 65536. A larger SPI buffer makes it possible to receive a entire FLIR Lepton frame in one transfer.

Show current SPI buffer size

cat /sys/module/spidev/parameters/bufsiz

Set SPI buffer size by editing this file

sudo nano /boot/cmdline.txt

then add following line.

spidev.bufsiz=<Number>

A reboot is required for making SPI config take effect.

sudo reboot
Clone this wiki locally