项目作者: joba-1

项目描述 :
RISC-V board Longan Nano using BME280 with SPI
高级语言: C
项目地址: git://github.com/joba-1/Longan-Nano-Bme280-Spi.git
创建时间: 2020-10-02T18:45:10Z
项目社区:https://github.com/joba-1/Longan-Nano-Bme280-Spi

开源协议:

下载


Longan Nano BME280 SPI Example

This is the result of me trying to understand longan nano spi used with a sensor.

Topics

It contains various examples that should be reusable in other code

  • Serial output with printf()
  • Using RGB LED of Longan Nano
  • Read onchip temperature and reference voltage
  • Init SPI
  • Use BME280 sensor driver from Bosch with SPI
  • Use 160x80 OLED SPI LCD

Image

image

Connections

Nano BME280
3V3 Vcc
G Gnd
A4 (NSS0) CSE
A5 (SCK0) SCL
A6 (MISO0) SDO
A7 (MOSI0) SDA
Nano USB2Serial Comment
3V3 Vcc not needed if powered via USB or other
Gnd Gnd
A9 (T0) Rx
A10 (R0) Tx not needed if flashing via USB/DFU or JTAG

  • Author Joachim Banzhaf
  • License Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)

why do you find valuable resources only after it is too late. Ok I2C will be easier now :)