spi# This chapter introduces the spi function of LuatOS. You can select the corresponding chip to view the tutorial. air101 Introduction Hardware preparation Software part Read and write directly to the SPI channel Initialize CS Pin Manual Control Initialization SPI Manufacturers and devices that read SPI FLASH ID Erase specified address sector Read and write SPI FLASH Disable write enable and turn off the corresponding SPI channel and CS GPIO Abstraction for a SPI device and then read and write Abstract SPi Peripherals Manufacturers and devices that read SPI FLASH ID Erase specified address sector Read and write SPI FLASH Disable write enable and shut down the corresponding SPI channel Full Code air103 Introduction Hardware preparation Software part Read and write directly to the SPI channel Initialize CS Pin Manual Control Initialization SPI Manufacturers and devices that read SPI FLASH ID Erase specified address sector Read and write SPI FLASH Disable write enable and turn off the corresponding SPI channel and CS GPIO Abstraction for a SPI device and then read and write Abstract SPi Peripherals Manufacturers and devices that read SPI FLASH ID Erase specified address sector Read and write SPI FLASH Disable write enable and shut down the corresponding SPI channel Full Code air105 Introduction Hardware preparation Software part Read and write directly to the SPI channel Initialize CS Pin Manual Control Initialization SPI Manufacturers and devices that read SPI FLASH ID Erase specified address sector Read and write SPI FLASH Disable write enable and shut down the corresponding SPI channel Abstraction for a SPI device and then read and write Abstract SPi Peripherals Manufacturers and devices that read SPI FLASH ID Erase specified address sector Read and write SPI FLASH Disable write enable and shut down the corresponding SPI channel Full Code