OV7670 camera module
help please!!!
i have ist assignment
and error
static uint8_t twird(uint8_t nack){
if (nack){
twcr=_bv(twint) | _bv(twen);
while ((twcr & _bv(twint)) == 0); /* wait transmission */
if ((twsr & 0xf8) != tw_mr_data_nack)
error_led();
return twdr;
}else{
twcr=_bv(twint) | _bv(twen) | _bv(twea);
while ((twcr & _bv(twint)) == 0) ; /* wait transmission */
if ((twsr & 0xf8) != tw_mr_data_ack)
error_led();
return twdr;
}
}
i have ist assignment
and error
static uint8_t twird(uint8_t nack){
if (nack){
twcr=_bv(twint) | _bv(twen);
while ((twcr & _bv(twint)) == 0); /* wait transmission */
if ((twsr & 0xf8) != tw_mr_data_nack)
error_led();
return twdr;
}else{
twcr=_bv(twint) | _bv(twen) | _bv(twea);
while ((twcr & _bv(twint)) == 0) ; /* wait transmission */
if ((twsr & 0xf8) != tw_mr_data_ack)
error_led();
return twdr;
}
}
you have no setup(), no loop(), no code tags.
Arduino Forum > Topics > Robotics (Moderator: fabioc84) > OV7670 camera module
arduino
Comments
Post a Comment