#include <Wire.h>
#include <string.h>
#include "SM130.h"
Go to the source code of this file.
Functions | |
| void | arrayToHex (char *s, byte array[], byte len) |
| Convert byte array to null-terminated hexadecimal string. | |
| char | toHex (byte b) |
| Convert low-nibble of byte to ASCII hex. | |
| void | printArrayAscii (byte array[], byte len) |
| Print byte array as ASCII string. | |
| void | printArrayHex (byte array[], byte len) |
| Print byte array as hexadecimal character pairs. | |
| void | printHex (byte val) |
| Print byte as two hexadecimal characters. | |
Controls a SonMicro SM130/mini RFID reader or RFIDuino by I2C
Arduino analog input 4 is I2C SDA (SM130/mini pin 10/6)
Arduino analog input 5 is I2C SCL (SM130/mini pin 9/5)
Arduino digital input 4 is DREADY (SM130/mini pin 21/18)
Arduino digital output 3 is RESET (SM130/mini pin 18/14)
Definition in file SM130.cpp.
| void arrayToHex | ( | char * | s, | |
| byte | array[], | |||
| byte | len | |||
| ) |
| void printArrayAscii | ( | byte | array[], | |
| byte | len | |||
| ) |
| void printArrayHex | ( | byte | array[], | |
| byte | len | |||
| ) |
| void printHex | ( | byte | val | ) |
| char toHex | ( | byte | b | ) |
1.5.9