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.
Fork of IntervalShutter2 by
main.cpp
00001 #include "mbed.h" 00002 00003 DigitalOut Camera1(p30); 00004 DigitalOut Camera2(p29); 00005 DigitalIn Input(p5); 00006 00007 int main() { 00008 Input.mode(PullDown); 00009 int PreInput = 0; 00010 int NowInput; 00011 Camera1 = 0; 00012 Camera2 = 0; 00013 while(1) { 00014 NowInput = Input; 00015 if (NowInput != PreInput) { 00016 Camera1 = NowInput; 00017 wait(1); 00018 Camera2 = NowInput; 00019 } 00020 PreInput = NowInput; 00021 wait(0.1); 00022 } 00023 }
Generated on Fri Aug 5 2022 04:05:48 by
1.7.2
