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.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 2:f3eafd4d3705
- Parent:
- 1:c6fa316ce7d1
- Child:
- 3:4ba3d22e50dc
--- a/main.cpp Wed Mar 11 02:24:10 2015 +0000 +++ b/main.cpp Wed Mar 11 23:46:55 2015 +0000 @@ -8,21 +8,27 @@ //clk.period_us(2); //clk.pulsewidth_us(1); t1.start(); - int integrationTime = 100 ;//SET THIS!! + //int integrationTime = 100 ;//SET THIS!! int integrationCounter = 0; while(1) { - clk = 1; //int time = t1.read_us(); - //if(t1.read_us()>integrationTime){ - if(integrationCounter > 150){ + //(t1.read_us()>integrationTime){ + if(integrationCounter % 120== 0){ si = 1; - wait(.00001); + clk = 1; + //wait(.00001); si = 0; + clk = 0; //integrationTime = time; - //t1.reset(); - integrationCounter = 0; + t1.reset(); + //integrationCounter = 0; } - clk = 0; + else{ + clk = 1; + clk = 0; + } + + //clk = 0; integrationCounter++; //camData.