This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<1> download node | |
<2> install it in +/usr/local+ | |
<3> make symlinks (aliases) to node and npm so you can call them from the command line easily. | |
$ cd ~/downloads | |
$ curl -O http://nodejs.org/dist/v0.10.12/node-v0.10.12-linux-arm-pi.tar.gz <1> | |
$ cd /usr/local | |
$ sudo tar xzf ~/downloads/node-v0.10.12-linux-arm-pi.tar.gz <2> | |
$ cd bin | |
$ sudo ln -s ../node-v0.10.12-linux-arm-pi/bin/node <3> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Seeed Studio (or Adafruit) NFC Shield | |
Adafruit 60 LED NeoPixel Strip | |
Arduino Uno | |
NFC tag should be TNF MIME_MEDIA and Type text/led | |
Payload should have RGB color as 0,0,255 | |
*/ | |
#if 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* P2P NDEF Push | |
* requires http://www.seeedstudio.com/depot/nfc-shield-v20-p-1370.html | |
* and https://github.com/Seeed-Shield/NFC_Shield_DEV | |
* simplified example based on examples/nfc_ndef_push_url | |
*/ | |
#include <PN532.h> | |
#include <NFCLinkLayer.h> | |
#include <SNEP.h> | |
#include <NdefMessage.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -w | |
# Run this from the Arduino library directory to generate keywords.txt | |
# Optionally pass the name of the library as the first argument | |
# $ gen_keywords.pl Foo > keywords.txt | |
use strict; | |
my $in_public = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Wire.h> | |
#include <Adafruit_NFCShield_I2C.h> | |
#include <NfcAdapter.h> | |
NfcAdapter nfc = NfcAdapter(); | |
#include <Adafruit_NeoPixel.h> | |
// Parameter 1 = number of pixels in strip | |
// Parameter 2 = pin number (most are valid) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var macAddress = "00:00:AA:BB:CC:DD"; | |
var connected = function() { | |
// connected, do something | |
}; | |
var disconnected = funtion(error) { | |
// disconnected | |
}; | |
bluetoothSerial.connect(macAddress, connected, disconnected); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~/Documents/Arduino/libraries | |
git clone git@github.com:adafruit/Adafruit_NFCShield_I2C.git | |
git clone git@github.com:don/Ndef.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// handle unformatted tags | |
nfc.addNdefFormatableListener( | |
function (nfcEvent) { | |
// NDEF message with one record | |
var message = [ | |
ndef.textRecord("hello, world") | |
]; | |
nfc.write( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Write "Hello, world!" in a plain text NDEF message | |
// Tag must be a Mifare Classic with a 4 byte ID | |
// Tested with Samsung TecTile | |
// | |
#include <Wire.h> | |
#include <Adafruit_NFCShield_I2C.h> | |
#define IRQ (2) | |
#define RESET (3) // Not connected by default on the NFC Shield |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.bak | |
thumbs.db | |
App_Data/ | |
bin/ | |
obj/ | |
Bin/ | |
_ReSharper.*/ | |
tmp/ |