Riad_ Bajraktarevic
/
Taster_Led
07.12.19
Revision 0:2f2918e6b649, committed 2019-12-07
- Comitter:
- riad
- Date:
- Sat Dec 07 12:54:18 2019 +0000
- Commit message:
- taster_led
Changed in this revision
1_led.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/1_led.cpp Sat Dec 07 12:54:18 2019 +0000 @@ -0,0 +1,16 @@ +#include "mbed.h" + +DigitalOut myled(D6); +DigitalIn Taster(A3); + +int main() { + while(true) { + + if(Taster == true) + { + myled = 1; + } + else {myled=0;} + } +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sat Dec 07 12:54:18 2019 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file