keybrd library is an open source library for creating custom-keyboard firmware.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

LED_PortOpenDrain.cpp 268B

123456789101112
  1. #include "LED_PortOpenDrain.h"
  2. /* functions are like LED_Port, but writeLow() writeHigh() are swapped.
  3. */
  4. void LED_PortOpenDrain::on()
  5. {
  6. refPort.writeLow(pin); //sink output pin
  7. }
  8. void LED_PortOpenDrain::off()
  9. {
  10. refPort.writeHigh(pin);
  11. }