BusOut and BusIn
Dependencies: mbed
Diff: main.cpp
- Revision:
- 0:49892d2c0c9e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Oct 15 15:50:14 2015 +0000 @@ -0,0 +1,15 @@ +#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); + +DigitalIn SW7(PB_3); +DigitalIn SW6(PA_10); + +int main() { + + while (true) + { + Leds = Switches & 0x0f; + } +} \ No newline at end of file