项目作者: lexus2k

项目描述 :
ESP32 C++ spi library
高级语言: C++
项目地址: git://github.com/lexus2k/esp32_spi.git
创建时间: 2021-02-19T01:06:52Z
项目社区:https://github.com/lexus2k/esp32_spi

开源协议:MIT License

下载


esp32_spi

Usage example

  1. #include "spibus.h"
  2. WireSPI SPI;
  3. ...
  4. SPI.begin();
  5. ...
  6. SPI.beginTransaction( 1000000, -1, 0); // Start transaction at 1MHz in SPI mode 0, CS is not specified (-1)
  7. SPI.transfer(data, len); // Transfer buffer data of length len bytes
  8. SPI.endTransaction(); // End transaction
  9. ...
  10. SPI.end();
  11. ...