Flipper ZeroWorkshop

Loading the Blender model…

Flipper ZeroWorkshop
Lesson 20 of 50

SPI bus

0/50

Completed

Flipper Zero SimulatorDismantle, inspect and operate the device.
Interactive lab
Schematic
Lesson guide20 / 50

SPI bus

Fast full-duplex transfers to displays, radios and flash.

Module: GPIO and buses

Hardware

MOSI/MISO/SCK plus a chip-select per device. The CC1101, LCD and SD card all use SPI inside the Flipper.

The Video Game Module (official 3D model) also mates with all 18 pins and carries an RP2040 that receives the screen buffer and drives a video output.

Key specs

Pins
PA7 MOSI, PA6 MISO, PB3 SCK, PA4 CS

Firmware code

furi_hal_spi_acquire(&furi_hal_spi_bus_handle_external);
furi_hal_spi_bus_tx(&furi_hal_spi_bus_handle_external, tx, 4, 100);

Check yourself

Which line selects the device?

  • CS
  • SCK
  • MISO

← 19. I²C bus · All lessons · 21. CC1101 sub-GHz transceiver →

Try it yourself

l20_spi_bus.c

furi_hal_spi_acquire(&furi_hal_spi_bus_handle_external);
furi_hal_spi_bus_tx(&furi_hal_spi_bus_handle_external, tx, 4, 100);
Ready Line – API calls 0 Time 0 ms
Flipper CLI · virtual Ready
C · Flipper firmware API

Lessons

Lesson 01Tour of the Flipper ZeroLesson 02Enclosure and mechanicsLesson 03Exploded view and assemblyLesson 04The main PCBLesson 05STM32WB55 microcontrollerLesson 06Battery and chargingLesson 07USB-C and DFU recoveryLesson 08Monochrome 128×64 LCDLesson 09Drawing with the canvas APILesson 10D-pad and tactile switchesLesson 11Input events and the Back buttonLesson 12Menus and the GUI stackLesson 13Haptics, LED and speakerLesson 14GPIO header pinoutLesson 15Digital input and outputLesson 16PWM outputLesson 17Analog input (ADC)Lesson 18UART serialLesson 19I²C busLesson 20SPI busLesson 21CC1101 sub-GHz transceiverLesson 22Spectrum analyzerLesson 23OOK and ASK modulationLesson 24FSK and data rateLesson 25Decoding a synthetic remoteLesson 26Antennas and rangeLesson 27Low-frequency RFID basicsLesson 28EM4100 and Manchester codingLesson 29Read and emulate a synthetic tagLesson 30The antenna board coilsLesson 31NFC and ISO 14443Lesson 32Reading an NTAG synthetic tagLesson 33MIFARE Classic sectors and keysLesson 34AnticollisionLesson 35Emulating a synthetic NFC tagLesson 361-Wire protocolLesson 37DS1990A ROM and CRCLesson 38Infrared basicsLesson 39NEC protocolLesson 40Universal remote databaseLesson 41USB HID in a sandboxLesson 42USB CDC and mass storageLesson 43Bluetooth LE radioLesson 44Scanning BLE advertisersLesson 45microSD and FATLesson 46Firmware architectureLesson 47Writing an external app (FAP)Lesson 48Power managementLesson 49Security, ethics and lawLesson 50Capstone: assemble, operate, diagnose