|
Project Information
Featured
Downloads
Links
|
IntroductionUsing libnfc, touchatag-processing is Processing library that allows users to connect and read from cheap touchatag RFID readers on the Windows and Macintosh platforms. This library affords the simultaneously connection of multiple touchatag readers, and up to three tags on each one (due to performance issues of the tags themselves on the touchatag RFID reader). This project was tested on Windows 7 Professional, Windows XP SP3, and MacOSX 10.6.5, with Processing 1.0.9 up to 1.2.1. Instructions
Exampleimport touchatag.*;
Touchatag rfid;
// Defines the maximum number of touchatag
// readers that might be connected to the computer
int numOfReaders = 3;
// This library affords up to three touchatag
// tags on each of the touchatag readers
String[][] tags = new String[numOfReaders][3];
void setup() {
// Optionally, if only one touchatag reader will
// be used: rfid = new Touchatag(this)
rfid = new Touchatag(this, numOfReaders);
}
void draw() {
// Gets the number of touchatag readers connected
int readers = rfid.On();
if (readers != 0) {
// Gets the tags for each of the touchatag readers
for (int i = 0; i < readers; i++) {
tags[i] = rfid.tagsOnReader(i);
println(tags[i]);
}
}
}
|