ondryaso / pi-rc522

Raspberry Pi Python library for SPI RFID RC522 module
MIT License
411 stars 150 forks source link

Added support for Beaglebone Black #34

Closed cvtsi2sd closed 6 years ago

cvtsi2sd commented 6 years ago

This pull request adds "transparent" support for the Beaglebone Black; board detection is done by trying to import the relevant RPi modules and trying to fall back to the BBone ones if available.

The extremely minor GPIO/SPI object differences are already taken care of, and a sensible pinout default is provided.

I also wrote some documentation about the recommended pinout, how to specify a custom one and how to enable the spidev device on the Beaglebone Black.

ondryaso commented 6 years ago

Great! Have you tested if it actually works on RPi as well? I believe it does, looking to the code, but right now, I cannot test it.

cvtsi2sd commented 6 years ago

Unfortunately I don't own a RPi, so I couldn't test it.

ondryaso commented 6 years ago

I'll do so tomorrow