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:
- 0:a7a8c6ef6d11
- Child:
- 1:c6fa316ce7d1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Mar 11 01:20:39 2015 +0000 @@ -0,0 +1,22 @@ +#include "mbed.h" + +DigitalOut clk(PTA13); +DigitalOut pi(PTD5); +AnalogIn camData(PTC2); +Timer t1; +int main() { + //clk.period_us(2); + //clk.pulsewidth_us(1); + t1.start(); + int integrationTime = ;//SET THIS!! + while(1) { + clk = 1; + if(t1.read()<integrationTime){ + pi = 1; + p1 = 0; + } + clk = 0; + camData. + + } +}