20 lines
293 B
C++
20 lines
293 B
C++
#include "PinTypeOut.h"
|
|
#include <Arduino.h>
|
|
|
|
|
|
void PinTypeOut::setOutputSignalToHigh()
|
|
{
|
|
digitalWrite(_pinNumber, HIGH);
|
|
|
|
}
|
|
|
|
void PinTypeOut::setOutputSignalToLow()
|
|
{
|
|
digitalWrite(_pinNumber, LOW);
|
|
|
|
}
|
|
|
|
bool PinTypeOut::IsPinOn()
|
|
{
|
|
return digitalRead(_pinNumber) == HIGH;
|
|
} |