Browse Source

added OE Pin for PCB

tags/FSM1.0
Dominik Bartsch 2 years ago
parent
commit
e0bc75826f
2 changed files with 4 additions and 1 deletions
  1. 3
    1
      lib/treppe/treppe.cpp
  2. 1
    0
      lib/treppe/treppe.h

+ 3
- 1
lib/treppe/treppe.cpp View File

@@ -149,6 +149,8 @@ void Treppe::setup(){

pinMode(SENSOR1, INPUT);
pinMode(SENSOR2, INPUT);
pinMode(OE, OUTPUT);
digitalWrite(OE, 0);
Serial.println("Hello from Treppe");
Serial.print("Treppe: initial parameters: stairs=");
Serial.println(stairs);
@@ -188,8 +190,8 @@ void Treppe::task(){

last_sensor_state[0] = current_sensor_state[0];
last_sensor_state[1] = current_sensor_state[1];
ledsequence();

}



+ 1
- 0
lib/treppe/treppe.h View File

@@ -4,6 +4,7 @@

#define SENSOR1 15
#define SENSOR2 12
#define OE 14

#define INT_TIME 20 // interrupt intervall [ms]


Loading…
Cancel
Save