Constructor & Destructor Documentation

An instance of SM130 should be created as a global variable, outside of any function. The constructor sets data fields to default values for use with RFIDuino. These may be changed in setup() before SM130::reset() is called.

This function should be called in setup(). It initializes the IO pins and issues a hardware or software reset, depending on the definition of pinRESET. After reset, a HALT_TAG command is issued to terminate the automatic SEEK mode.

Wire.begin() should also be called in setup(), and Wire.h should be included.

If pinRESET has the value 0xff (-1), software reset over I2C will be used. If pinDREADY has the value 0xff (-1), the SM130 will be polled over I2C while in SEEK mode, otherwise the DREADY pin will be polled in SEEK mode. For other commands, response polling is always over I2C.