Fork of Edoardo De Marchi's ov7670 library. Works very similar, only few modification were made to support other boards.
Dependents: OV7670 application over USB with KL25Z
Fork of ov7670 by
Diff: ov7670.cpp
- Revision:
- 5:74c3b911894a
- Parent:
- 4:119b4c04a4ed
- Child:
- 6:2e57ba7138b9
diff -r 119b4c04a4ed -r 74c3b911894a ov7670.cpp --- a/ov7670.cpp Sat Apr 05 14:01:37 2014 +0000 +++ b/ov7670.cpp Sun Jan 17 21:02:31 2016 +0000 @@ -69,11 +69,11 @@ // Data Read -int OV7670::ReadOnebyte(void) +int OV7670::ReadOnebyte(int mask1, int offset1, int mask2, int offset2) { int B1; rclk = 1; - B1 = (((data&0x07800000)>>19)|((data&0x078000)>>15)); + B1 = (((data & mask1) >> offset1) | ((data & mask2) >> offset2)); rclk = 0; return B1; }