Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: ov7670.h
- Revision:
- 5:46b8114bb5dd
- Parent:
- 1:d82dbad9c06b
--- a/ov7670.h Sat Feb 15 15:00:37 2014 +0000
+++ b/ov7670.h Mon Apr 06 10:07:45 2020 +0000
@@ -24,10 +24,14 @@
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
@@ -51,9 +55,18 @@
private:
I2C _i2c;
InterruptIn vsync,href;
-
+ BusIn data;
DigitalOut wen;
- PortIn data;
+ /*
+ DigitalIn da7;
+ DigitalIn da6;
+ DigitalIn da5;
+ DigitalIn da4;
+ DigitalIn da3;
+ DigitalIn da2;
+ DigitalIn da1;
+ DigitalIn da0;
+ */
DigitalOut rrst,oe,rclk;
volatile int LineCounter;
volatile int LastLines;