An open API service indexing awesome lists of open source software.

https://github.com/lexus2k/esp32_spi

ESP32 C++ spi library
https://github.com/lexus2k/esp32_spi

esp32 spi

Last synced: 2 months ago
JSON representation

ESP32 C++ spi library

Awesome Lists containing this project

README

          

# esp32_spi

## Usage example

```.cpp
#include "spibus.h"
WireSPI SPI;

...
SPI.begin();
...
SPI.beginTransaction( 1000000, -1, 0); // Start transaction at 1MHz in SPI mode 0, CS is not specified (-1)
SPI.transfer(data, len); // Transfer buffer data of length len bytes
SPI.endTransaction(); // End transaction
...
SPI.end();
...

```