- Code: Select all
void TC3_Handler()
{
TC_GetStatus(TC1, 0);
temp = random(65535);
temp = left_out;
temp1 = right_out;
temp_spi[0] = SPI.transfer(10,highByte(temp),SPI_CONTINUE);
temp_spi[1] = SPI.transfer(10,lowByte(temp),SPI_CONTINUE);
temp_spi[2] = SPI.transfer(10,highByte(temp1),SPI_CONTINUE);
temp_spi[3] = SPI.transfer(10,lowByte(temp1),SPI_LAST);
left_in - (temp_spi[0]<<8)|temp_spi[1];
right_in = (temp_spi[2]<<8)|temp_spi[3];
}
So what am I doing wrong here.Also I could not use TIMER pin because I do not know to what GPIO pin it corresponds to.