summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2020-03-28 01:31:12 -0500
committercheapie <no-email-for-you@example.com>2020-03-28 01:31:12 -0500
commit77b4fbe12db947911fcccd82d0da1eef4b68d9b1 (patch)
tree3cdd581ac1a1b8499d660cc4c4e32500fc4d196a /README
parentf0ce665a64af88379615d834b88638290bcbb07a (diff)
downloaddigistuff-77b4fbe12db947911fcccd82d0da1eef4b68d9b1.tar
digistuff-77b4fbe12db947911fcccd82d0da1eef4b68d9b1.tar.gz
digistuff-77b4fbe12db947911fcccd82d0da1eef4b68d9b1.tar.bz2
digistuff-77b4fbe12db947911fcccd82d0da1eef4b68d9b1.tar.xz
digistuff-77b4fbe12db947911fcccd82d0da1eef4b68d9b1.zip
Add magnetic card reader/writer and cards to go with it
Diffstat (limited to 'README')
-rw-r--r--README9
1 files changed, 9 insertions, 0 deletions
diff --git a/README b/README
index 79f68c7..d04d661 100644
--- a/README
+++ b/README
@@ -71,3 +71,12 @@ As in, [digiline][junction box][dirt][junction box][digiline] will work to trans
How to use the I/O expander:
After setting a channel, send a table (same format as a Luacontroller's "port" table) to set the output states.
A table in this same format will be sent back whenever an input changes or you manually poll it by sending a "GET" message.
+
+How to use the card reader:
+After setting a channel, swiping a card (punch the reader with the card to swipe) will send a message in the following format:
+ {event = "read",data = "The data that was on the card"}
+To write a card, send a command in the following format:
+ {command = "write",data = "The data to put on the card",description = "A description of what the card is for"}
+After sending the write command, swipe the card to be written and the reader will send back the following message:
+ {event = "write"}
+Both blank and previously written cards can be written to. If the card was not blank, it will be overwritten.