capstone_finish
Dependencies: BufferedSerial motor_sn7544
Diff: ov7670.h
- Revision:
- 1:509676f3be32
- Parent:
- 0:f3f80a0695ff
- Child:
- 2:e98408458d2b
--- a/ov7670.h Fri Feb 17 13:07:18 2012 +0000 +++ b/ov7670.h Fri Feb 17 15:06:15 2012 +0000 @@ -113,7 +113,7 @@ wait_ms(200) ; } - void InitQQVGA565() { + void InitQQVGA565(bool flipv,bool fliph) { // QQVGA RGB565 WriteReg(REG_CLKRC,0x80); WriteReg(REG_COM11,0x0A) ; @@ -130,6 +130,7 @@ WriteReg(REG_COM10,0x02) ; WriteReg(REG_COM3, 0x04); WriteReg(REG_COM14, 0x1a); + WriteReg(REG_MVFP,0x07 | (flipv ? 0x10:0) | (fliph ? 0x20:0)) ; WriteReg(0x72, 0x22); WriteReg(0x73, 0xf2); @@ -159,7 +160,7 @@ WriteReg(0xb0,0x84); } - void InitQVGA565() { + void InitQVGA565(bool flipv,bool fliph) { // QVGA RGB565 WriteReg(REG_CLKRC,0x80); WriteReg(REG_COM11,0x0A) ; @@ -176,6 +177,7 @@ WriteReg(REG_COM10,0x02) ; WriteReg(REG_COM3, 0x04); WriteReg(REG_COM14, 0x19); + WriteReg(REG_MVFP,0x07 | (flipv ? 0x10:0) | (fliph ? 0x20:0)) ; WriteReg(0x72, 0x11); WriteReg(0x73, 0xf1);