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.
Revision 0:daa949d07b7d, committed 2018-11-15
- Comitter:
- martwerl
- Date:
- Thu Nov 15 18:00:07 2018 +0000
- Commit message:
- LED1
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Nov 15 18:00:07 2018 +0000 @@ -0,0 +1,33 @@ +#include "mbed.h" + +//Das Digital Out Objekt L1 mit dem Pin LED1 verbinden +//D20 Variablenname P1_13 Pinname aus dem Schaltplan +//warum ist es sinnvol, dass die Variablen d20,d19,... heißen? +//Zusammenhang der untenstehenden Deklarationen mit der Boardbeschreibung {Script M0} +DigitalOut d20(P1_13); +DigitalOut d19(P1_12); +DigitalOut d18(P1_7); +DigitalOut d17(P1_6); + +void SimpleRunLight(); + +int main() { + SimpleRunLight(); +} + + +void SimpleRunLight() +{ +d20=0; d19=0; d18=0; d17=0; +while(1) + { + d20=1; wait_ms(100); + d20=0; wait_ms(100); + d19=1; wait_ms(100); + d19=0; wait_ms(100); + d18=1; wait_ms(100); + d18=0; wait_ms(100); + d17=1; wait_ms(100); + d17=0; wait_ms(100); + } +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Nov 15 18:00:07 2018 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/e7ca05fa8600 \ No newline at end of file