Archived
1
0
This repo is archived. You can view files and clone it, but cannot push or open issues or pull requests.
keybrd/src/LED_PortOpenDrain.cpp

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);
}