#include "mfrc522.h" MFRC522::MFRC522(SPI *spi) { this->spi = spi; spi->SpiOpenPort(); } MFRC522::~MFRC522() { spi->SpiClosePort(); }