Alles wat we gepland hadden zit in het programma.
Dependencies: DS1307 EthernetInterface TextLCD WebSocketClient mbed-rtos mbed
Fork of Hoofdprogramma by
Diff: Hoofdprogramma.cpp
- Revision:
- 4:15258c48d16f
- Parent:
- 3:b2001b7e5c24
- Child:
- 5:1c493bae26fc
--- a/Hoofdprogramma.cpp Thu Dec 04 10:06:59 2014 +0000 +++ b/Hoofdprogramma.cpp Mon Dec 15 13:59:06 2014 +0000 @@ -10,18 +10,18 @@ AnalogIn Temp2(p19); AnalogIn Temp3(p18); -DigitalIn Druk1(p11); // temp1 -DigitalIn Druk2(p12); // temp2 -DigitalIn Druk3(p13); // temp3 -DigitalIn Down(p14); // up -DigitalIn Up(p15); // down +DigitalIn Druk1(p15); // temp1 +DigitalIn Druk2(p11); // temp2 +DigitalIn Druk3(p14); // temp3 +DigitalIn Down(p13); // up +DigitalIn Up(p12); // down DigitalOut Relais(p29); // pin voor de Relais PwmOut Servo(p21); // servo motor -PwmOut R(p22); // RGB => Rood -PwmOut G(p23); // RGB => Groen -PwmOut B(p24); // RGB => Blauw +PwmOut R(p23); // RGB => Rood +PwmOut G(p24); // RGB => Groen +PwmOut B(p22); // RGB => Blauw PwmOut LedB(p25); // Blauwe Led als relais Uit is (Te warm) PwmOut LedG(p26); // Groene Led als relais Uit is (Temp GOED) @@ -163,7 +163,7 @@ temp3 = temp3 +Temp3.read(); // Temp3 inlezen } - temp1 = (temp1*3.3) - 3; // Bewerking voor de Temp in graden te bekomen. + temp1 *= 3.3; // Bewerking voor de Temp in graden te bekomen. temp2 *= 3.3; temp3 *= 3.3; //-------------- LCD Printen----------------------------------------------------------