ATrappmann / PN5180-Library

PN5180 library for Arduino
GNU Lesser General Public License v2.1
105 stars 92 forks source link

running on ESP8266 #23

Closed Phreak87 closed 4 years ago

Phreak87 commented 4 years ago

Hi,

yesterday i tried to setup the PN5180 on my ESP8266 development board. but i can not get it running because of different crashes of the ESP if i try to access your library. Your Library contains only definitions for ESP32. Is there any Problem with ESP8266 or is it because i do something wrong? I compiled using the latest version of ESPTool for the latest Arduino IDE.

Thank you

ATrappmann commented 4 years ago

The library was developed for a plain Arduino. The addition for ESP32 was done by the community.

I never worked with an ESP8266, so that I cannot provide any help.

Sorry.

-Andreas.

Am 31.01.2020 um 08:39 schrieb Markus Eckl notifications@github.com:

Hi,

yesterday i tried to setup the PN5180 on my ESP8266 development board. but i can not get it running because of different crashes of the ESP if i try to access your library. Your Library contains only definitions for ESP32. Is there any Problem with ESP8266 or is it because i do something wrong? I compiled using the latest version of ESPTool for the latest Arduino IDE.

Thank you

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Phreak87 commented 4 years ago

Hi,

after a few test i found a way to use it on the ESP8266 Dev-Board:

3.3V <-> 3.3V GND <-> GND BUSY <-> D0 RST <-> D1 NSS <-> D2 SCK <-> D5 MISO <-> D6 MOSI <-> D7

and use this define Block (if you work in the Arduino IDE). This is because the Pin numbers are wrong for ESP8266 in the IDE.

define PN5180_NSS 4

define PN5180_BUSY 16

define PN5180_RST 5

after this it should work without changes in the library.