• sales

    +86-0755-88291180

Raspberry Pi Zero W 0.91inch OLED - RPI SPI and IIC User Guide

Raspberry Pi turns off SPI and I2C functions by default. If you write SPI programs, but the SPI module is not turned on, the following errors may occur:

ERROR: could not insert 'spi_bcm2708': No such device 

The following is a simple explanation on how to open SPI function. Of course, it is the same to open other functions.


Input at terminal

sudo raspi-config 

Command, and then operate according to the following sequence. After the configuration is completed, restart the raspberry pi to take effect.



If the SPI program runs with the following error

Unable to open SPI device: No such file or directory 

It is possible that the SPI module was not imported successfully. Use the lsmod command to see whether the SPI module was successfully imported


If the words shown in the figure above appear, it indicates that the I2C and SPI modules are imported successfully. Otherwise, you can perform the configuration again and restart the system.

If the execution of I2C related procedures, the following errors occur

Unable to open I2C device: No such file or directory 

You can see smod command i2c_bmc2708, but no i2c_dev, the following processing is required

sudo nano /etc/modules    #Open files with nano

Then add
i2c_dev 

Press Ctrl + X to exit editing, enter y to save the content, and then restart.

As shown in the figure below:


TAG: RM520N GL 5G/4G/3G M.2 Moudle IoT EMBB For LTE-A/NSA/SA And GNSS For DFOTA /VoLTE For Quectel Raspberry Pi 5 Terminal Jetson Orin Nano Super AI Developer Kit Built in Jetson Orin Nano 8GB Memory Core board ESP32 ST7789 tutorial Raspberry Pi 5 PCM5122 I2S Audio Card DAC Also For PI4 /PI3 /Zero Series SpotPear 4.26inch-e-Paper ESP32 H2 ESP32-H2-Zero MINI Development Board For BLE/Zigbee/Thread ESP32 IR Thermal Imaging Camera UART Serial Server ESP-IDF download and installation Autofocus Camera Milk-V Duo RJ45 Spotpear Raspberry Pi 5 POE PCIe To M.2 E KEY NGFF WIFI7 WIFI6 For BE200/AX210/AX200/RTL8822CE PC USB Monitor Screen Raspberry Pi 3.7 inch e-Paper link (G) RYBW 416x240 For Arduino / Jetson Nano / STM32 Industrial ESP32-S3 Relay 8-Channel 8-Ch ESP32-WROOM IOT WiFi Bluetooth HAT For Arduino Raspberry Pi USB Camera 2MP OV2735 Distortion-Free USB 2.0 For Jeston RDK Raspberry Pi 5/4B easy Adapter Micro HDMI to HDMI 4K All Ports To Pi's USB Side