WIP: feat:Out NFC reader #18

Closed
Clement wants to merge 2 commits from feat/nfc-out-reader into develop
3 changed files with 9 additions and 3 deletions
Showing only changes of commit 04a3639252 - Show all commits

View File

@ -27,3 +27,9 @@ build_flags =
; nfc addr
-D NFC_ADDR=0x28
;;;;;;;;;;;;;;;;;;;;;;
;;; BigNfc config ;;;
;;;;;;;;;;;;;;;;;;;;;;
-D BIG_NFC_RX=5
-D BIG_NFC_TX=17

View File

@ -7,7 +7,7 @@
class BigNFC{
public:
BigNFC();
BigNFC(int pinRX, int pinTX, int baud = 115200);
/**
* @brief initialise le lecteur NFC

View File

@ -1,8 +1,8 @@
#include "../include/BigNFC.h"
BigNFC::BigNFC(/* args */){
Serial2.begin(115200,SERIAL_8N1,5,17);//TODO: mettre le port série en paramètre
BigNFC::BigNFC(int pinRX, int pinTX, int baud){
Serial2.begin(baud, SERIAL_8N1, pinRX, pinTX);//TODO: mettre le port série en paramètre
this->pair = true;
this->trame = new std::vector<byte>();
}