Bertie Harte
/
2ledbutton
tralee files
Revision 0:29b7b687e33e, committed 2021-03-26
- Comitter:
- BertieHarte
- Date:
- Fri Mar 26 10:10:45 2021 +0000
- Commit message:
- make public
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 Fri Mar 26 10:10:45 2021 +0000 @@ -0,0 +1,21 @@ +#include "mbed.h" + +DigitalOut led1(LED1); +DigitalOut led4(LED4); +InterruptIn joy(p14); + +void myFunction(){ + } + +int main() { + while(1) { + if (joy == 0){ + led1 = 0; + led4= 1; + } + else{ + led1 = 1; + led4= 0; + } +} +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Mar 26 10:10:45 2021 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file