Settings-Datei lesen fertig
This commit is contained in:
4
io/io.c
4
io/io.c
@@ -51,7 +51,7 @@ void SetupKeyPin(struct GPIO_KEY_DATA *pdata, int iKeyPin)
|
||||
|
||||
if ((pdata->iKeyPin > 0) && nInitialized)
|
||||
{
|
||||
//mylog(LOG_INFO, "IO: Config Pin %d as input", iOutPin);
|
||||
mylog(LOG_DEBUG, "IO: Config Pin %d as input", pdata->iKeyPin);
|
||||
pinMode(pdata->iKeyPin, INPUT);
|
||||
pullUpDnControl(pdata->iKeyPin, PUD_UP);
|
||||
}
|
||||
@@ -154,7 +154,7 @@ void SetupOutputPin(int iOutPin)
|
||||
{
|
||||
if ((iOutPin > 0) && nInitialized)
|
||||
{
|
||||
//mylog(LOG_INFO, "IO: Config Pin %d as output", iOutPin);
|
||||
mylog(LOG_DEBUG, "IO: Config Pin %d as output", iOutPin);
|
||||
pinMode(iOutPin, OUTPUT);
|
||||
digitalWrite(iOutPin, LOW);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user