![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Exo
Diff: main.cpp
- Revision:
- 0:3437b8d0cbdf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue May 29 14:11:36 2018 +0000 @@ -0,0 +1,19 @@ +#include "Nboard.h" + +DigitalOut myled(LED1); + +int main() +{ + while(1) { + if (bp==0) { + Bus8Leds = 0xff; + } else if(bou1==0 && bou2==0) { + Bus8Leds =0x80; + } else if (bou1==0 && bou2==1) { + Bus8Leds = 0x02; + } else if (bou2==0 || bou3==0) { + Bus8Leds=0x0c; + } else + Bus8Leds = 0x00; + } +}