I use this string to read the value of the temperature of the TPA but it's wrong because the LCD Lego Display always show me this value "-32".
http://bricxcc.sourceforge.net/nbc/nxcd ... 6b5b92d77dThis is the programme that i try:
int temp,port,address;
byte outbuffer [8];
task main()
{
port=1; //it's the number of port where i connect the TPA81 on the Lego Brick
address=208; //it's the 0xD0 adress in decimal value
do
{
temp = I2CRead(port, address, outbuffer);
TextOut(5,LCD_LINE2,"temp");
Wait(1000)
}
while (1)
}
this programme don't work because the LCD Lego Display shows only this value "-32"
Can you help me pleaseeee!! i don't find something on the web that can help me. Should you help me please?