Arkistoidut
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 rivejä
268 B
C++

2016-11-16 03:01:42 +00:00
#include "LED_PortOpenDrain.h"
/* functions are like LED_Port, but writeLow() writeHigh() are swapped.
*/
void LED_PortOpenDrain::on()
{
refPort.writeLow(pin); //sink output pin
2016-11-16 03:01:42 +00:00
}
void LED_PortOpenDrain::off()
{
refPort.writeHigh(pin);
}