We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9ebbe5 commit aa26b41Copy full SHA for aa26b41
README
@@ -22,3 +22,5 @@ A3<-3
22
2<-PCLK
23
GND->PWDN
24
3.3->RESET
25
+GND->GND
26
+3.3v->3.3v
ov7670.c
@@ -229,7 +229,7 @@ static uint8_t twiRd(uint8_t nack){
229
uint8_t rdReg(uint8_t reg){
230
uint8_t dat;
231
twiStart();
232
- twiWriteByte(OV7670_I2C_ADDRESS,TW_MT_SLA_ACK);
+ twiWriteByte(OV7670_I2C_ADDRESS<<1,TW_MT_SLA_ACK);
233
twiWriteByte(reg,TW_MT_DATA_ACK);
234
TWCR = (1<<TWINT)|(1<<TWEN)|(1<<TWSTO);//send stop
235
_delay_ms(1);
0 commit comments