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@2:918ab2c5d8d0, 2016-10-25 (annotated)
- Committer:
- NahuelM
- Date:
- Tue Oct 25 12:55:30 2016 +0000
- Revision:
- 2:918ab2c5d8d0
- Parent:
- 1:217d47c70a13
Test;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
NahuelM | 0:7d7a181a6406 | 1 | #include "mbed.h" |
NahuelM | 0:7d7a181a6406 | 2 | #include "HIDScope.h" |
NahuelM | 0:7d7a181a6406 | 3 | DigitalOut gpo(D0); |
NahuelM | 0:7d7a181a6406 | 4 | DigitalOut led(LED_RED); |
NahuelM | 0:7d7a181a6406 | 5 | //HIDScope scope(2); |
NahuelM | 0:7d7a181a6406 | 6 | int main() |
NahuelM | 0:7d7a181a6406 | 7 | { |
NahuelM | 0:7d7a181a6406 | 8 | while (true) { |
NahuelM | 0:7d7a181a6406 | 9 | gpo = !gpo; // toggle pin |
NahuelM | 0:7d7a181a6406 | 10 | led = !led; // toggle led |
NahuelM | 2:918ab2c5d8d0 | 11 | wait(0.01f); |
NahuelM | 0:7d7a181a6406 | 12 | scope.set(0,42); // 42 = random testwaarde |
NahuelM | 0:7d7a181a6406 | 13 | |
NahuelM | 0:7d7a181a6406 | 14 | } |
NahuelM | 0:7d7a181a6406 | 15 | } |