Releases: budryerson/TFMini-Plus
TFMini-Plus Arduino Library
Arduino library for Benewake TFMini-Plus in UART (Serial) communication mode. Compatible with TFMini-S and TF-Luna (in serial mode only). Use the TFMini-Plus-I2C library for I2C communication. The library includes and example sketch. This version, 1.5.0, corrects the ENABLE/DISABLE commands.
TFMini-Plus Arduino Library
Arduino library for Benewake TFMini-Plus in UART (Serial) communication mode, with example code. Largely compatible with TFMini-S and TF-Luna in serial mode only. For I2C use, please use the TFMini-Plus-I2C library. This version corrects a minor error in v1.4.1.
TFMini-Plus Arduino Library
Arduino library for the Benewake TFMini-Plus using the UART (Serial) communication interface, with example code. Also supports the Benewake TFMini-S in UART mode.
NOTE: 1) data variables are now signed 16bit integers, not unsigned.
2) In the example code, printErrorStatus()
is deprecated. Use printFrame()
to respond to a failed getData()
function, and printReply()
for a failed sendCommand()
.
TFMini-Plus Arduino Library
Added missing underscore to define in header file: #define BAUD_14400 0x003840
TFMini-Plus Arduino Library
07JUN19 - Added the prefix 'TFMP_' to all status definitions: i.e. 'SERIAL' becomes 'TFMP_SERIAL'.
There was some conflict with the definitions in other libraries.
Also, corrected the separators in 'keywords.txt' from spaces to tabs.
TFMini-Plus Arduino Library
20MAY19 - Added a second byte to the HEADER recognition routine of the data returned in 'reply' to the 'sendCommand'. Zeroed out 'Data Frame' and 'Command Reply' buffer arrays completely before reading from the device's serial port. Both of these improve valid data recognition and error detection. Added, but did not implement, some I2C command codes in the library header file.
TFMini-Plus Arduino Library
This is version 1.3.2 of the TFMini-Plus Arduino library.
The "getData()" function will flush the serial buffer before reading. This improves ability to work with asynchronous code. Please note that the function "buildCommand()" was replaced with "sendCommand()" in v1.3.1.