21 lines
328 B
C++
21 lines
328 B
C++
#include "PinTypeOut.h"
|
|
#include <Arduino.h>
|
|
#include "DebugLog.h"
|
|
|
|
|
|
void PinTypeOut::setOutputSignalToHigh()
|
|
{
|
|
digitalWrite(_pinNumber, HIGH);
|
|
lastState = true;
|
|
}
|
|
|
|
void PinTypeOut::setOutputSignalToLow()
|
|
{
|
|
digitalWrite(_pinNumber, LOW);
|
|
lastState = false;
|
|
}
|
|
|
|
bool PinTypeOut::IsPinOn()
|
|
{
|
|
return lastState;
|
|
} |