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
Revision 5:74c3b911894a, committed 2016-01-17
- Comitter:
- wrecky
- Date:
- Sun Jan 17 21:02:31 2016 +0000
- Parent:
- 4:119b4c04a4ed
- Child:
- 6:2e57ba7138b9
- Commit message:
- Initial commit, ReadOnebyte rewritten to support various hardware
Changed in this revision
| ov7670.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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;
}
