mirror of
https://github.com/gyt4/banapass_reader_pn532.git
synced 2024-11-23 22:20:57 +01:00
code to use pn532 to make a namco card-if device
PeripheralDevice.h | ||
README.md | ||
wmrw_rev_2_ok.ino |
banapass_reader_pn532
code to use pn532 to make a namco card-if device
Hardware
you need :
- a mcu with dual hardware UART
- a pn532 nfc module
- (Optional) four ws2812 led
- (Optional) a beeper
default pin connection can be modified in the code:
#define sysled 2 //debug led,ignore it
#define nfccommled 3 //debug led,ignore it
#define rgbpin 10 //ws2812 DIN pin
#define beeperpin 6 //beeper pin
#define LEDBrightness 255
#define Serialto532 Serial0 //uart to pn532
#define Serialtogame Serial //uart to game
Software
install Adafruit_NeoPixel library in your arduino ide.
Usage
this code can communicate with original namco bngrw.dll
make sure no loader hook/emulated it.
for taiko,you can use this TAL:
https://github.com/gyt4/tal_no_bngrw_hook