Compare commits
3 Commits
3d13e761f4
...
5d32392844
Author | SHA1 | Date | |
---|---|---|---|
5d32392844 | |||
50e714e5f8 | |||
e0bc75826f |
@ -145,6 +145,8 @@ void Treppe::setup(){
|
|||||||
|
|
||||||
pinMode(SENSOR1, INPUT);
|
pinMode(SENSOR1, INPUT);
|
||||||
pinMode(SENSOR2, INPUT);
|
pinMode(SENSOR2, INPUT);
|
||||||
|
pinMode(OE, OUTPUT);
|
||||||
|
digitalWrite(OE, 0);
|
||||||
Serial.println("Hello from Treppe");
|
Serial.println("Hello from Treppe");
|
||||||
Serial.print("Treppe: initial parameters: stairs=");
|
Serial.print("Treppe: initial parameters: stairs=");
|
||||||
Serial.println(stairs);
|
Serial.println(stairs);
|
||||||
@ -192,7 +194,7 @@ void Treppe::task(){
|
|||||||
|
|
||||||
last_sensor_state[0] = current_sensor_state[0];
|
last_sensor_state[0] = current_sensor_state[0];
|
||||||
last_sensor_state[1] = current_sensor_state[1];
|
last_sensor_state[1] = current_sensor_state[1];
|
||||||
|
|
||||||
ledsequence();
|
ledsequence();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
#define SENSOR1 15
|
#define SENSOR1 15
|
||||||
#define SENSOR2 12
|
#define SENSOR2 12
|
||||||
|
#define OE 14
|
||||||
|
|
||||||
#define INT_TIME 20 // interrupt intervall [ms]
|
#define INT_TIME 20 // interrupt intervall [ms]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user