Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FreescaleIAP MODSERIAL mbed monitor timer0
Fork of 19_Taster_a by
Diff: main.cpp
- Revision:
- 21:07482037ca54
- Parent:
- 20:b85406f52de3
- Child:
- 22:dc30e220da6e
--- a/main.cpp Mon May 11 17:32:06 2015 +0000 +++ b/main.cpp Tue Aug 18 14:39:17 2015 +0000 @@ -41,11 +41,11 @@ DigitalOut LED(PTE30); -DigitalOut OUT1(PTC6); // nicht belegt +DigitalOut OUT1(PTC6); // Summer DigitalOut OUT2(PTC5); // LED Rot DigitalOut OUT3(PTC4); // LED Grün DigitalOut OUT4(PTC3); // LED Gelb -DigitalOut OUT5(PTC2); // Summer +DigitalOut OUT5(PTC2); // nicht belegt DigitalOut OUT6(PTC1); // Relais DigitalIn IN1(PTC7); // Notaus, schaltet gegen 24V => 24V oder 1 ist der Ruhezustand @@ -271,17 +271,17 @@ } //------------------------------------------------ - // Summer (OUT5 +24V) + // Summer (OUT1 GND) if (in1.summer || in2.summer || (down_timer.GetTimerStatus(3) != 0)) // sobald der Eingang 1 oder Eingang 2 akiviert ist oder der Timer { // noch aktiv ist, den Summer aktivieren DEBUG("\n Summer 1 = %d Summer 2 = %d \n",(uint8_t)in1.summer,(uint8_t)in2.summer); - OUT5 = 1; + OUT1 = 1; } else { - OUT5 = 0; + OUT1 = 0; } //------------------------------------------------