test
Fork of ov7670 by
Diff: ov7670.h
- Revision:
- 5:a940d64a408b
- Parent:
- 1:d82dbad9c06b
--- a/ov7670.h Sat Feb 15 15:00:37 2014 +0000 +++ b/ov7670.h Mon Sep 25 12:38:33 2017 +0000 @@ -18,7 +18,30 @@ { public: - OV7670( + OV7670( + PinName sda, // Camera I2C port + PinName scl, // Camera I2C port + PinName vs, // VSYNC + PinName hr, // HREF + PinName we, // WEN + + //PortName port, // 8bit bus port + //int mask, // 0b0000_0M65_4000_0321_L000_0000_0000_0000 = 0x07878000 + PinName d7, // D7 + PinName d6, // D6 + PinName d5, // D5 + PinName d4, // D4 + PinName d3, // D3 + PinName d2, // D2 + PinName d1, // D1 + PinName d0, // D0 + + PinName rt, // /RRST + PinName o, // /OE + PinName rc // RCLK + ); + + /*OV7670( PinName sda, // Camera I2C port PinName scl, // Camera I2C port PinName vs, // VSYNC @@ -32,7 +55,7 @@ PinName o, // /OE PinName rc // RCLK ); - + */ ~OV7670(); void CaptureNext(void); // capture request @@ -53,7 +76,8 @@ InterruptIn vsync,href; DigitalOut wen; - PortIn data; + //PortIn data; + BusIn data; DigitalOut rrst,oe,rclk; volatile int LineCounter; volatile int LastLines;