SPI Slave library designed for Teensy 4.x, but made backwards compatible with Teensy LC & Teensy 3.x.
Features:
- Allows master to send payloads to slaves
- Allows master to receive payloads from slaves
- Allows multiple slaves: a) with separate chipselects, b) daisy-chained on same chipselect
- Can control slave's gpios: a) digitalWrite b) digitalRead c) pinMode d) analogread e) analogwrite f) analogreadresolution g) analogwriteresolution
- Slave detection function, reports slave IDs on the specified SPI port. Each slave has a unique ID, this allows daisy-chaining to work by shifting data over to the proper slave