Skip to content

Instantly share code, notes, and snippets.

View andrewjaykeller's full-sized avatar

AJ Keller andrewjaykeller

View GitHub Profile
@shaielc
shaielc / SlaveSPIClass.cpp
Last active April 28, 2023 10:18
SlaveSPIClass_esp32_Arduino
#include<SlaveSPIClass.h>
int SlaveSPI::size = 0;
SlaveSPI** SlaveSPI::SlaveSPIVector = NULL;
void setupIntr(spi_slave_transaction_t * trans)
{
for(int i=0 ; i<SlaveSPI::size;i++)
{
if(SlaveSPI::SlaveSPIVector[i]->match(trans))
SlaveSPI::SlaveSPIVector[i]->setup_intr(trans);
}