Definition:
Parameters:
| i | - | The variable to format and display as a hexadecimal number on an LCD screen. |
Return Value:
This routine does not return a value.
Description:
This routine formats the input variable as a 4-digit hexadecimal number and displays the result on an LCD screen. The LCD must have an IIC interface. The user must define a value called ALCD_ADDR before including the aLCD.tea file. This value is the IIC address of the LCD display. The IIC baud rate may need to be lowered to achieve reliable communication with the LCD display. See the cmdVAL_SET or aPortIICBaud documentation for details. This function is compatible with most Matrix Orbital LCD modules and devices with similar command formats.
Example:
#define ALCD_ADDR 92
#include <aLCD.tea> /* after the define */
void main() {
aLCD_IntHex(-3);
}
This would add the text "FFFD" to the current output line on the LCD display. 0xFFFD is the two's complement representation of -3.
Related:
version: 1.0, build 80903
© Copyright 1994-2008 Acroname, Inc., Boulder, Colorado. All rights reserved.