From b8ce01554add0e84e73f6054cbb5c63337856f23 Mon Sep 17 00:00:00 2001 From: Fabian Kunkel Date: Fri, 5 Jan 2024 16:07:54 +0100 Subject: [PATCH] add support for sending single bits. Needed for Nibe heatpump which sends 90 bits --- IRSender.cpp | 4 ++-- IRSender.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/IRSender.cpp b/IRSender.cpp index e45dcab..df44715 100644 --- a/IRSender.cpp +++ b/IRSender.cpp @@ -10,9 +10,9 @@ IRSender::IRSender(uint8_t pin) // Send a uint8_t (8 bits) over IR -void IRSender::sendIRbyte(uint8_t sendByte, int bitMarkLength, int zeroSpaceLength, int oneSpaceLength) +void IRSender::sendIRbyte(uint8_t sendByte, int bitMarkLength, int zeroSpaceLength, int oneSpaceLength, uint8_t bitCount) { - for (int i=0; i<8 ; i++) + for (int i=0; i