Comments (5)
You have referenced GPIO14, GPIO15 in many places, and the setup has been configured as Wire. You can do this
#include <Arduino.h>
#include <PN532_SWHSU.h>
#include <PN532.h>
#include <SPI.h>
PN532_SWHSU pn532swhsu( Serial1 );
PN532 nfc( pn532swhsu );
const uint8_t NFC_TX = 32;
const uint8_t NFC_RX = 33;
void setup(void)
{
Serial.begin(115200);
Serial1.begin(115200, SERIAL_8N1, NFC_TX, NFC_RX);
Serial.println("Hello Maker!");
nfc.begin();
uint32_t versiondata = nfc.getFirmwareVersion();
if (! versiondata) {
Serial.print("Didn't Find PN53x Module");
while (1); // Halt
}
// Got valid data, print it out!
Serial.print("Found chip PN5");
Serial.println((versiondata >> 24) & 0xFF, HEX);
Serial.print("Firmware ver. ");
Serial.print((versiondata >> 16) & 0xFF, DEC);
Serial.print('.');
Serial.println((versiondata >> 8) & 0xFF, DEC);
}
void loop()
{
}
from lilygo-t-eth-series.
Please connect the RX of PN532 to
RX -> 33
TX -> 32
from lilygo-t-eth-series.
If there is any problem, please restart it
from lilygo-t-eth-series.
Hi Lewis,
Thanks for all the help and suggestion to move to other pins,
so far I was unable to make it work on the ESP32 but the ESP8266 seemed to work fine on whatever pins I tried. Due to time restrains i went on with the ESP8266 now I would like to try again.
Do you think it might be an isseu with the libary itself or have any other suggestion to try?
Thanks in advance
from lilygo-t-eth-series.
I don't think it's a library issue. I don't have PN532 modules, I just put forward my opinions and guesses.
from lilygo-t-eth-series.
Related Issues (20)
- Does this module exist with an external antenna? HOT 1
- Reset after closing a switch
- tcp example available? HOT 2
- Which PoE standard is compatible? HOT 1
- Burned out PoE power HOT 8
- Ethernet no longer functioning.
- Board dimensions / connector footprint HOT 4
- SYSTEM_EVENT_ETH_CONNECTED never called HOT 8
- Enhancement Request: Add 5v Pin for sensors that require it HOT 4
- Where to buy the T-ETH-LITE-ESP32S3 HOT 5
- Can't connect using a static IP HOT 5
- T-ETH-Lite-ESP32S3: Unable to verify flash chip connection HOT 4
- T-Internet-POE LED PIN HOT 2
- StaticIPAddress example doesn't work HOT 3
- T-Eth-Lite S3 W5500 crashes on AsyncUDP HOT 3
- Direct connection between ESP32 and PC HOT 5
- About DHCP Lease HOT 8
- Can't compile ETHOTA example with PlatformIO HOT 3
- MDNS not working with T-ETH-Lite-ESP32S3 HOT 10
- Can't compile any sketch for T-ETH-Lite-ESP32 HOT 22
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lilygo-t-eth-series.