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
- Host: GitHub
- URL: https://github.com/lexus2k/esp32_spi
- Owner: lexus2k
- License: mit
- Created: 2021-02-19T01:06:52.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-19T01:11:54.000Z (over 5 years ago)
- Last Synced: 2025-02-14T05:43:10.076Z (over 1 year ago)
- Topics: esp32, spi
- Language: C++
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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();
...
```