add single channel data setter

v0.1.0-UIP
Hideaki Tai 5 years ago
parent 4eff28d77c
commit b9415cc798

@ -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++;

Loading…
Cancel
Save