Skip to content

Commit

Permalink
chore: unnecessary comments were removed
Browse files Browse the repository at this point in the history
  • Loading branch information
REGIOIGER committed Dec 23, 2024
1 parent 71421fa commit ac4c51e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 19 deletions.
2 changes: 2 additions & 0 deletions examples/P2P_Discovery/P2P_Discovery.ino
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,13 @@ void setup(){

Serial.println("Initializing...");
if (nfc.connectNCI()) { //Wake up the board
//if (nfc.connectNCI_PN7160()) { // Wake up the board
Serial.println("Error while setting up the mode, check connections!");
while (1);
}

if (nfc.configureSettings()) {
//if (nfc.configureSettings_PN7160()) {
Serial.println("The Configure Settings failed!");
while (1);
}
Expand Down
23 changes: 4 additions & 19 deletions src/Electroniccats_PN7150.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
/*
* NXP PN7150 Driver
* NXP PN7150/60 Driver
* Porting authors:
* Salvador Mendoza - @Netxing - salmg.net
* Andres Sabas - Electronic Cats - electroniccats.com
* Francisco Torres - Electronic Cats - electroniccats.com
* Raul Vargas - Electronic Cats - electroniccats.com
*
* August 2023
* December 2024
*
* This code is beerware; if you see me (or any other collaborator
* member) at the local, and you've found our code helpful,
Expand Down Expand Up @@ -55,23 +56,6 @@ Electroniccats_PN7150::Electroniccats_PN7150(uint8_t IRQpin, uint8_t VENpin,
}

uint8_t Electroniccats_PN7150::begin() {
//_wire->setSDA(0);
//_wire->setSCL(1);
//_wire->begin();
//_wire->setClock(100000);
/* if (_VENpin != 255) {
digitalWrite(_VENpin, HIGH);
delay(1);
digitalWrite(_VENpin, LOW);
delay(1);
digitalWrite(_VENpin, HIGH);
delay(3);
} */

#ifdef DEBUG2
Serial.print("CHIP MODEL 0:PN7150, 1:PN7160 -> ");
Serial.println(_chipModel);
#endif

if (_chipModel == PN7150) {
#ifdef DEBUG2
Expand Down Expand Up @@ -300,6 +284,7 @@ uint8_t Electroniccats_PN7150::connectNCI_PN7160() {
#endif

// Open connection to NXPNCI
// uses setSDA and set SCL with compatible boards
//_wire->setSDA(0); // GPIO 0 como SDA
//_wire->setSCL(1); // GPIO 1 como SCL

Expand Down

0 comments on commit ac4c51e

Please sign in to comment.