overrun stop working
This commit is contained in:
parent
5e342cf62b
commit
bade5afa40
BIN
CAM01230.jpg
Normal file
BIN
CAM01230.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 252 KiB |
57
sketch_dec12a/sketch_dec12a.ino
Normal file
57
sketch_dec12a/sketch_dec12a.ino
Normal file
@ -0,0 +1,57 @@
|
||||
const int tmp_aufw =9;
|
||||
const int tmp_abw =10;
|
||||
|
||||
const int tmp_sens = A7;
|
||||
|
||||
const int anschlag_abw = A2;
|
||||
const int anschalg_aufw = A5;
|
||||
|
||||
void setup() {
|
||||
pinMode(tmp_sens,INPUT);
|
||||
pinMode(tmp_aufw,OUTPUT);
|
||||
pinMode(tmp_abw,OUTPUT);
|
||||
|
||||
//pinMode(A7,INPUT); Bug LOL You have to set the
|
||||
Serial.begin(9600);
|
||||
|
||||
pinMode(anschalg_aufw,INPUT);
|
||||
pinMode(anschlag_abw,INPUT);
|
||||
}
|
||||
|
||||
void warmer(){
|
||||
if(analogRead(anschalg_aufw) <= 7){
|
||||
|
||||
}else {
|
||||
digitalWrite(tmp_aufw,HIGH);
|
||||
delay(50);
|
||||
digitalWrite(tmp_aufw,LOW);
|
||||
}
|
||||
}
|
||||
|
||||
void kaelter(){
|
||||
if(analogRead(anschlag_abw) <= 7){
|
||||
|
||||
}else {
|
||||
digitalWrite(tmp_abw,HIGH);
|
||||
delay(50);
|
||||
digitalWrite(tmp_abw,LOW);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void loop() {
|
||||
Serial.println(analogRead(tmp_sens));
|
||||
kaelter();
|
||||
delay(1000);
|
||||
//warmer();
|
||||
|
||||
if(analogRead(tmp_sens) > ){
|
||||
|
||||
}else if(analogRead(tmp_sens) >){
|
||||
|
||||
} else{
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user