h
Dependencies: mbed
Diff: main.cpp
- Revision:
- 0:5cdd5d46a10a
diff -r 000000000000 -r 5cdd5d46a10a main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Dec 08 11:40:33 2015 +0000 @@ -0,0 +1,14 @@ +#include "mbed.h" + +BusOut Leds(PA_9,PC_7,PB_6,PA_7,PA_6,PA_5,PB_5,PB_4); +BusIn Switches(PA_0,PA_1,PA_4,PB_0,PC_1,PC_0,PA_10,PB_3); + +int main() +{ + + while(true) + { + Leds=Switches & 0x0f; //0x0f tilsvarer 15 i hexa. Det vil si 1111, altså at de 4 første lysene er aktive + } + +} \ No newline at end of file