![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Complete
Diff: main.cpp
- Revision:
- 1:c5bc18044085
- Parent:
- 0:8f5b2af5e1d5
- Child:
- 2:029b0a855b82
--- a/main.cpp Sat Jan 30 02:21:04 2016 +0000 +++ b/main.cpp Sat Jan 30 02:29:20 2016 +0000 @@ -70,19 +70,29 @@ if (lockUpCount > 100) while(1) {} } + + switch (_pins){ - case 0x0: + case 0x7: if(!switch1) - LED_1 = 1; - else - LED_1 = 0; + LED_1 = 1; + else + LED_1 = 0; - switch_1 = switch1.read(); - switch_2 = switch2.read(); - switch_3 = switch3.read(); + switch_1 = switch1.read(); + switch_2 = switch2.read(); + switch_3 = switch3.read(); - LED_2 = !switch_1*0.25 + !switch_2 * 0.40 + !switch_3*0.35; + LED_2 = !switch_1*0.25 + !switch_2 * 0.40 + !switch_3*0.35; + break; + case 0x6: + chip.write(PORT_A, chip.read(PORT_B) & 0x01); + break; + + case 0x5: + + break; }