Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of readMifare by
Revision 1:fb72a2f7cab5, committed 2014-09-19
- Comitter:
- nebgnahz
- Date:
- Fri Sep 19 05:09:50 2014 +0000
- Parent:
- 0:54bf4b21c7fa
- Commit message:
- code clean up and documentation fix.
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Sep 19 05:04:15 2014 +0000
+++ b/main.cpp Fri Sep 19 05:09:50 2014 +0000
@@ -1,12 +1,11 @@
-// readMifare code adapted from Adafruit-PN532 library.
-// see: https://github.com/adafruit/Adafruit-PN532
-//
-// Original Author : Adafruit Industries
-// Modified By : Ben Zhang <benzh@eecs.berkeley.edu>
-// Date : 2014/09/17
+/**************************************************************************/
+/*!
-/**************************************************************************/
-/*!
+ @file main.cpp
+ @author Adafruit Industries
+ @modified_by Ben Zhang <benzh@eecs.berkeley.edu>
+ @license BSD (see license.txt)
+
This example will wait for any ISO14443A card or tag, and
depending on the size of the UID will attempt to read from it.
@@ -42,7 +41,7 @@
#include "Adafruit_PN532.h"
#define SS PTD0
-// PTD1 is also LED_BLUE
+// PTD1 is also LED_BLUE, it will blink during SPI communication.
#define SCK PTD1
#define MOSI PTD2
#define MISO PTD3
@@ -60,7 +59,6 @@
// By default, red
green = 1; red = 0;
-
nfc.begin();
uint32_t versiondata = nfc.getFirmwareVersion();
