1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-15 23:13:07 +01:00

OBP40 integration code and improvements

This commit is contained in:
2025-01-20 12:49:30 +01:00
parent 87a7a79358
commit 1545855326
7 changed files with 3526 additions and 5 deletions

View File

@@ -220,7 +220,7 @@ void initKeys(CommonData &commonData) {
#ifdef HARDWARE_LIGHT
int readSensorpads(){
// Read key code
// Read key code
if(digitalRead(UP) == LOW){
keycode = 10; // Left swipe
}
@@ -250,7 +250,7 @@ void initKeys(CommonData &commonData) {
pinMode(MENUE, INPUT);
pinMode(EXIT, INPUT);
// Raed pad values
// Read pad values
readSensorpads();
// Detect key
@@ -264,7 +264,7 @@ void initKeys(CommonData &commonData) {
keystatus = keycode;
// Copy keycode
keycodeold = keycode;
while(readSensorpads() > 0){} // Wait for pad lesease
while(readSensorpads() > 0){} // Wait for pad release
delay(keydelay);
}
}