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
main.cpp
- Committer:
- ericoneill
- Date:
- 2015-03-11
- Revision:
- 1:c6fa316ce7d1
- Parent:
- 0:a7a8c6ef6d11
- Child:
- 2:f3eafd4d3705
File content as of revision 1:c6fa316ce7d1:
#include "mbed.h" DigitalOut clk(PTA13); DigitalOut si(PTD4); AnalogIn camData(PTC2); Timer t1; int main() { //clk.period_us(2); //clk.pulsewidth_us(1); t1.start(); 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){ si = 1; wait(.00001); si = 0; //integrationTime = time; //t1.reset(); integrationCounter = 0; } clk = 0; integrationCounter++; //camData. } }