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: DS1307 Servo TextLCD mbed
Diff: main.cpp
- Revision:
- 1:8aada2d4df12
- Parent:
- 0:b0e0ec2415bc
--- a/main.cpp Thu Dec 18 09:51:25 2014 +0000
+++ b/main.cpp Thu Dec 18 09:59:33 2014 +0000
@@ -79,8 +79,8 @@
while(push3 == 0 && push4 == 0){ //while drukknoppen 3 en 4 niet ingedrukt zijn
LCDBack = licht; //geef de backlight de waarde van licht
if(push1 == 1){ //Als drukknop 1 word ingedrukt
- licht = licht - 0.05; //Licht doen afnemen
- ledr = 1; //aansturen led voor indicatie afname
+ licht = licht - 0.05; //Licht doen toenemen, de variabele word verkleint
+ ledr = 1; //aansturen led voor indicatie toename
ledg = 1;
ledb = 0;
if(licht <= 0){ //Als licht kleiner of gelijk aan 0 is word de waarde automatisch
@@ -89,8 +89,8 @@
wait(0.2);
}
if(push2 == 1){ //Als drukknop 2 word ingedrukt
- licht = licht + 0.05; //Licht doen toenemen
- ledr = 0; //aansturen led voor indicatie toename
+ licht = licht + 0.05; //Licht doen afnemen, de variabele word vergroot
+ ledr = 0; //aansturen led voor indicatie afname
ledg = 1;
ledb = 1;
if(licht >= 1){ //Als licht groter of gelijk aan 1 is word de waarde automatisch