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.
main.cpp@0:59114d512644, 2015-01-27 (annotated)
- Committer:
- Honmaka
- Date:
- Tue Jan 27 12:06:37 2015 +0000
- Revision:
- 0:59114d512644
IntervalShutter V1
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Honmaka | 0:59114d512644 | 1 | #include "mbed.h" |
| Honmaka | 0:59114d512644 | 2 | |
| Honmaka | 0:59114d512644 | 3 | DigitalOut Camera1(p30); |
| Honmaka | 0:59114d512644 | 4 | DigitalOut Camera2(p29); |
| Honmaka | 0:59114d512644 | 5 | |
| Honmaka | 0:59114d512644 | 6 | int main() { |
| Honmaka | 0:59114d512644 | 7 | while(1) { |
| Honmaka | 0:59114d512644 | 8 | wait(3); |
| Honmaka | 0:59114d512644 | 9 | Camera1 = 1; |
| Honmaka | 0:59114d512644 | 10 | Camera2 = 1; |
| Honmaka | 0:59114d512644 | 11 | wait(60); |
| Honmaka | 0:59114d512644 | 12 | Camera1 = 0; |
| Honmaka | 0:59114d512644 | 13 | Camera2 = 0; |
| Honmaka | 0:59114d512644 | 14 | } |
| Honmaka | 0:59114d512644 | 15 | } |