#ifndef __CPHIDGETTEXTLED #define __CPHIDGETTEXTLED #include "cphidget.h" /** \defgroup phidtextled Phidget TextLED * \ingroup phidgets * These calls are specific to the Phidget Text LED object. See your device's User Guide for more specific API details, technical information, and revision details. The User Guide, along with other resources, can be found on the product page for your device. * @{ */ DPHANDLE(TextLED) CHDRSTANDARD(TextLED) /** * Gets the number of rows supported by this display. * @param phid An attached phidget text led handle. * @param count The row count. */ CHDRGET(TextLED,RowCount,int *count) /** * Gets the number of columns per supported by this display. * @param phid An attached phidget text led handle. * @param count The Column count. */ CHDRGET(TextLED,ColumnCount,int *count) /** * Gets the last set brightness value. * @param phid An attached phidget text led handle. * @param brightness The brightness (0-100). */ CHDRGET(TextLED,Brightness,int *brightness) /** * Sets the last set brightness value. * @param phid An attached phidget text led handle. * @param brightness The brightness (0-100). */ CHDRSET(TextLED,Brightness,int brightness) /** * Sets a row on the display. * @param phid An attached phidget text led handle. * @param index The row index. * @param displayString The string to display. Make sure this is not longer then \ref CPhidgetTextLED_getColumnCount. */ CHDRSETINDEX(TextLED,DisplayString,char *displayString) #ifndef REMOVE_DEPRECATED DEP_CHDRGET("Deprecated - use CPhidgetTextLED_getRowCount",TextLED,NumRows,int *) DEP_CHDRGET("Deprecated - use CPhidgetTextLED_getColumnCount",TextLED,NumColumns,int *) #endif #ifndef EXTERNALPROTO #define TEXTLED_MAXROWS 4 #define TEXTLED_MAXCOLS 8 #define TEXTLED_BRIGHTNESS_PACKET -1 #define TEXTLED_DISPLAYSTRING_PACKET 0 struct _CPhidgetTextLED { CPhidget phid; char *displayStringPtr[TEXTLED_MAXROWS]; int brightness; unsigned char outputPacket[MAX_OUT_PACKET_SIZE]; unsigned int outputPacketLen; char *strings[TEXTLED_MAXROWS]; } typedef CPhidgetTextLEDInfo; #endif /** @} */ #endif