Test example

Dependencies:   mbed

Fork of readMifare by Interactive Device Design

Revision:
1:fb72a2f7cab5
Parent:
0:54bf4b21c7fa
Child:
2:96f420fa4a6e
--- 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();