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@0:1b30a14d45f5, 2021-10-25 (annotated)
- Committer:
- gakutoagata
- Date:
- Mon Oct 25 07:53:43 2021 +0000
- Revision:
- 0:1b30a14d45f5
cut
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| gakutoagata | 0:1b30a14d45f5 | 1 | #include "mbed.h" |
| gakutoagata | 0:1b30a14d45f5 | 2 | DigitalOut cut(D13); |
| gakutoagata | 0:1b30a14d45f5 | 3 | Serial pc(SERIAL_TX, SERIAL_RX); |
| gakutoagata | 0:1b30a14d45f5 | 4 | int main() |
| gakutoagata | 0:1b30a14d45f5 | 5 | { |
| gakutoagata | 0:1b30a14d45f5 | 6 | wait(20); |
| gakutoagata | 0:1b30a14d45f5 | 7 | pc.printf("START\n"); |
| gakutoagata | 0:1b30a14d45f5 | 8 | |
| gakutoagata | 0:1b30a14d45f5 | 9 | cut=1; |
| gakutoagata | 0:1b30a14d45f5 | 10 | wait(30); |
| gakutoagata | 0:1b30a14d45f5 | 11 | cut=0; |
| gakutoagata | 0:1b30a14d45f5 | 12 | |
| gakutoagata | 0:1b30a14d45f5 | 13 | } |