Honmaka Astro
/
IntervalShutter3
Interval Shutter Program Ver.3
Fork of IntervalShutter2 by
main.cpp
- Committer:
- Honmaka
- Date:
- 2015-01-31
- Revision:
- 2:11af47fce11c
- Parent:
- 1:ca34f8960f93
File content as of revision 2:11af47fce11c:
#include "mbed.h" DigitalOut Camera1(p30); DigitalOut Camera2(p29); DigitalIn Input(p5); int main() { Input.mode(PullDown); int PreInput = 0; int NowInput; Camera1 = 0; Camera2 = 0; while(1) { NowInput = Input; if (NowInput != PreInput) { Camera1 = NowInput; wait(1); Camera2 = NowInput; } PreInput = NowInput; wait(0.1); } }