Zustünde Switch und Power publishen

This commit is contained in:
Bernhard
2025-12-08 19:36:05 +01:00
parent 48d3251247
commit b10547e070
7 changed files with 79 additions and 14 deletions

12
io/io.c
View File

@@ -21,16 +21,7 @@ int IO_Init()
// IO-Pins für Ausgänge konfigurieren
SetupOutputPin(GPIO_LED_MOTRUN);
// Einschaltsequenz
WriteOutputPin(GPIO_LED_MOTRUN, HIGH);
delay(500);
WriteOutputPin(GPIO_LED_MOTRUN, LOW);
delay(500);
WriteOutputPin(GPIO_LED_MOTRUN, HIGH);
delay(500);
WriteOutputPin(GPIO_LED_MOTRUN, LOW);
delay(500);
SetupOutputPin(GPIO_OUT_PWRON);
printf("IO initialized successfull!\n");
@@ -164,7 +155,6 @@ void WriteOutputPin(int iOutPin, int iValue)
}
}
void IO_DoCyclic()
{
ReadKey(&gpioKeyStop);

View File

@@ -5,6 +5,7 @@
#include <stdio.h>
#define GPIO_LED_MOTRUN 17 // GPIO Pin fuer LED Motor läuft
#define GPIO_OUT_PWRON 22 // GPIO Pin für Relais "Zündschlüssel"
#define GPIO_KEY_STOP 26 // GPIO Pin fuer Taster Stop
#define GPIO_KEY_PWRUP 5 // GPIO Pin fuer Taster Leistung-Erhöhen