13 lines
268 B
C++
13 lines
268 B
C++
#include "LED_PortOpenDrain.h"
|
|
/* functions are like LED_Port, but writeLow() writeHigh() are swapped.
|
|
*/
|
|
void LED_PortOpenDrain::on()
|
|
{
|
|
refPort.writeLow(pin); //sink output pin
|
|
}
|
|
|
|
void LED_PortOpenDrain::off()
|
|
{
|
|
refPort.writeHigh(pin);
|
|
}
|