From b9415cc798c04c1ed00b7b916e2b479d86628cdd Mon Sep 17 00:00:00 2001 From: Hideaki Tai Date: Fri, 11 Oct 2019 21:20:26 +0900 Subject: [PATCH] add single channel data setter --- Artnet.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Artnet.h b/Artnet.h index 26d4345..830661d 100644 --- a/Artnet.h +++ b/Artnet.h @@ -174,6 +174,11 @@ namespace arduino set(data, size); } + void set(const uint16_t ch, const uint8_t data) + { + packet[IDX(Index::DATA) + ch] = data; + } + void send() { packet[IDX(Index::SEQUENCE)] = seq++;