Skip to content

Instantly share code, notes, and snippets.

@kevinprince
kevinprince / gist:5363573
Created April 11, 2013 13:55
Quick explanation of the unattended card reader idea
We have:
- A NFC card reader that presents as a USB keyboard
- A raspberry pi with wifi
What we want to do:
Have a standalone network enabled card reader.
Requirements:
exec { "Set Computer Name":
command => "scutil --set ComputerName ${hostname}",
user => "root",
unless => "scutil --get ComputerName | grep ${hostname}"
}
void setup() {
Serial.begin(9600);
// put your setup code here, to run once:
pinMode(7, INPUT);
}
void loop() {
int buttonState = digitalRead(7);
int buttonStateTwo = analogRead(0);

Keybase proof

I hereby claim:

  • I am kevinprince on github.
  • I am kevinprince (https://keybase.io/kevinprince) on keybase.
  • I have a public key ASAslZdFwSqIUX52yF6Szx_KtYpVP64fLzKMczj4_bA_NQo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am kevinprince on github.
* I am kevinprince (https://keybase.io/kevinprince) on keybase.
* I have a public key ASAm66Fa-yp-53rUkpx0kd2poNreS0BIPpmqxyFpl8OoAwo
To claim this, I am signing this object: