Giter Club home page Giter Club logo

pn532's Introduction

PN532 NFC library

This library is for the PN532 chip to use NFC technology.

This is a fork of the PN532 library by Seeed-Studio.

It provides a small bit a configuration code and small changes to be able to use its components as libraries in PlatformIO.

Getting started

  1. Add both the core library and communication adapter to the platformio.ini file

    lib_deps = 
      ; ...
      PN532=https://github.com/gusaln/PN532/releases/download/1.0.0/PN532.tar.gz
      PN532_SPI=https://github.com/gusaln/PN532/releases/download/1.0.0/PN532_SPI.tar.gz
  2. We need to include the these dependencies in a header file and not in a .cpp file. This can be done in an existing .h file in your project or you can create one at either the src directory or the include directory. For example, say we create an include/NFC.h file

    #include <NfcAdapter.h>
    #include <PN532.h>
    #include <PN532_SPI.h>

    and then include it into our main.cpp file

    #include "NFC.h"

    This is required in order to allow the Library Dependency Finder (LDF) of PlatformIO to include them correctly during compilation. Including the PN532* dependencies directly into a .cpp will cause errors. For more information, read the PlatformIO docs on the matter.

pn532's People

Contributors

alanhortz avatar awieser avatar baorepo avatar biblioeteca avatar bigzed avatar don avatar floe avatar gelicia avatar gilphilbert avatar gluca avatar gusaln avatar jazchen avatar jiapengli avatar jlkalberer avatar johnmclear avatar justjoheinz avatar ladyada avatar luismsilva99 avatar markelkins avatar mprokopov avatar net234 avatar oscherler avatar pcedison avatar picospuch avatar pillar1989 avatar pleone avatar ugomeda avatar wilson-elechouse avatar xiongyihui avatar zeelivermorium avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.