From 1bcbd3b8e3feafdbfb0c5d984971526b2547b0d1 Mon Sep 17 00:00:00 2001 From: Jean Jacques Avril Date: Sun, 10 Apr 2022 19:00:43 +0200 Subject: [PATCH] Notes.md, Readme.md und 2 weitere dateien aktualisiert... --- Notes.md | 10 +++++++++- Readme.md | 4 ++-- src/Keyboard.cpp | 6 ++---- src/main.cpp | 6 +++--- 4 files changed, 16 insertions(+), 10 deletions(-) diff --git a/Notes.md b/Notes.md index 2dd60bf..ef26549 100644 --- a/Notes.md +++ b/Notes.md @@ -38,4 +38,12 @@ + OpenLock hold (secs) 4E ### 20.03.2022 + settings API implemented and tested -+ TODO: factory reset \ No newline at end of file ++ TODO: factory reset + +### 10.04.2022 ++ Toni: + + Reed Contact -> Door closed? + + Tracking in->out + + Stats + + Sensors + \ No newline at end of file diff --git a/Readme.md b/Readme.md index c02260a..b13128d 100644 --- a/Readme.md +++ b/Readme.md @@ -5,8 +5,8 @@ Adress 0x21 ### 1.1 Wiring * Red: 3.3V * Black GND -* Green SDA -> D3 -* Grey SCL -> D4 +* Green SDA -> D2 +* Grey SCL -> D1 ## 2.0 LCD The LCD display is driven on the same i2c bus as the keypad. diff --git a/src/Keyboard.cpp b/src/Keyboard.cpp index 66a1fe6..984fd7c 100644 --- a/src/Keyboard.cpp +++ b/src/Keyboard.cpp @@ -1,8 +1,6 @@ #include "Keyboard.h" -//#define DEBUG -#define PIN_WIRE_SDA D3 -#define PIN_WIRE_SCL D4 + Keyboard::Keyboard(uint8_t _debounce) { this->keybind.insert({ @@ -23,7 +21,7 @@ Keyboard::Keyboard(uint8_t _debounce) } void Keyboard::begin(TwoWire *databus) { - pcf8574 = new PCF8574(databus, 0x21, PIN_WIRE_SDA, PIN_WIRE_SCL); + pcf8574 = new PCF8574(databus, 0x21); pcf8574->pinMode(0, OUTPUT); for (int i = 1; i < 8; i++) { diff --git a/src/main.cpp b/src/main.cpp index ef31baf..9d01bfe 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -17,9 +17,9 @@ webconsole::WebConsole web; // Rfid Rfid rfid; // i2C Bus -#define PIN_WIRE_SDA D3 -#define PIN_WIRE_SCL D4 -Relais relay(D1); +#define PIN_WIRE_SDA D1 +#define PIN_WIRE_SCL D2 +Relais relay(D4); Keyboard keyboard(200); Interface iface; void setup()