ov7670 library

Dependents:   Project_test Capture_bw_portin Capture_bw_v3 Project_190659132

Revision:
8:39ad588f56e5
Parent:
6:b1b77891bddf
diff -r b1b77891bddf -r 39ad588f56e5 ov7670.cpp
--- a/ov7670.cpp	Sat Jun 20 11:07:03 2020 +0000
+++ b/ov7670.cpp	Mon Aug 31 10:12:40 2020 +0000
@@ -6,7 +6,6 @@
         _i2c.stop();
         _i2c.frequency(OV7670_I2CFREQ);
         vsync.fall(this,&OV7670::VsyncHandler);     // interrupt fall edge
-        href.fall(this,&OV7670::HrefHandler);     // interrupt fall edge
         CaptureReq = false;
         Busy = false;
         Done = false;
@@ -17,7 +16,6 @@
         wen = 0;
 }
 
-int bit=0;
 OV7670::~OV7670()
 {
 }
@@ -67,10 +65,7 @@
     }
 }
 
-void OV7670::HrefHandler(void)
-{
-    
-}
+
 
 
 // Data Read
@@ -81,6 +76,7 @@
 //        wait_us(1) ;
         result = data ;
         
+        //Shift bits to form pixel value
         int top= result>>4;
         result=result&0x0F;
         result=result+top;