Welcome to DFRobot: www.DFRobot.com.cn 35 / 49
Project5 SPI
SPI communication is widely used by sensors, for the higher rate than I2C and no address conflict.
SPI, a communication bus of high speed, full-duplex, synchrony. SPI of FireBeetle Board-ESP32 can
be allocated to all I/O. You can read underlying code to practice (not recommend to freshmen).
For better user experience, SPI of FireBeetle Board-ESP32 allocated IO18/IO19/IO23 by default, fully
compatible with usage method of Arduino.
The project uses FireBeetle Board-ESP32 to read data of the temperature and humidity sensor
BME280. The example uses library file of BME280.
Please read the BME280 library file for SPI driver knowledge.
Please click here to download the library file of BME280.
Components in need
1×BME280 temperature and humidity sensor
Caution: BME280 support communication between I2C and SPI itself. We use SPI here.
1×FireBeetle Covers-Gravity Adapter Board
Caution: FireBeetle Covers-Gravity Adapter Board is better for freshman to do ADC, plug and play.