@peekay123 I've been reading through this thread, and have downloaded your code from GitHub (RC522_RFID). But I'm getting errors when I compile.
Admittedly, this is my first time using libraries and SPI...I'm new to Particle, but have experience with Arduino (you helped me on my first post in fact, Arduino vs. Particle...thank you!).
Here are the errors:
RFID.cpp: In member function 'void RFID::halt()':
RFID.cpp:512:13: warning: variable 'status' set but not used [-Wunused-but-set-variable]
RFID.cpp: In member function 'uint8_t RFID::softSPITranser(uint8_t)':
RFID.cpp:532:38: error: 'struct GPIO_TypeDef' has no member named 'BSRR'
PIN_MAP[_mosiPin].gpio_peripheral->BSRR = PIN_MAP[_mosiPin].gpio_pin; // Data High
RFID.cpp:534:38: error: 'struct GPIO_TypeDef' has no member named 'BRR'
PIN_MAP[_mosiPin].gpio_peripheral->BRR = PIN_MAP[_mosiPin].gpio_pin; // Data Low
Any thoughts? I'm thinking maybe I'm not doing something right in the build.particle.io....my App shows the three files:
Am I missing something?
Thanks so much, in advance!