I tested the pins with a multimeter, they are "dead".
I will try with the Project Designer and two other digital pins.
by the way, for those of you using a TPA81, you know that sensor has servo pins on it.
I have written a small function to pan an attached servo on it.
below is the code.
//it requires that you declare a TPA81 sensor and initialize it in appInitHardware
void tpa81_pan()
{
int servo_reg=0; //register address for servo
uint8_t address=0xD0; //address TPA81
for(int i=0;i<=31;i++)
{
if(i2cMasterWriteRegister(address,servo_reg,i)) //start servo panning- 0 is minimum position, 31 is maximum
{
temperatureRead(tpa);
rprintf("\nTemperature: ");
rprintf("\n%d", tpa.temperature.celsius);
rprintf("\n%d", tpa.sensor[0]);
rprintf("\n%d", tpa.sensor[1]);
rprintf("\n%d", tpa.sensor[2]);
rprintf("\n%d", tpa.sensor[3]);
rprintf("\n%d", tpa.sensor[4]);
rprintf("\n%d", tpa.sensor[5]);
rprintf("\n%d", tpa.sensor[6]);
rprintf("\n%d", tpa.sensor[7]);
delay_ms(250); // change delay for faster or slower panning
}
else
{
rprintf("no i2c communication\n");
}
}
It worked fine with a Hitec HS322 servo on it.
theo