mirror of
https://github.com/DarthAffe/RGB.NET-PicoPi.git
synced 2025-12-12 13:28:34 +00:00
Firmware: Directly applied led/pin changes
This commit is contained in:
parent
36fafe95d3
commit
f0062bffc1
@ -225,10 +225,20 @@ void process_command(uint8_t command, uint8_t const *data, uint16_t length)
|
|||||||
}
|
}
|
||||||
else if (request == 0x0A)
|
else if (request == 0x0A)
|
||||||
{
|
{
|
||||||
|
for (int i = 0; i < CHANNELS; i++)
|
||||||
|
{
|
||||||
|
led_counts[i] = data[i];
|
||||||
|
}
|
||||||
|
|
||||||
write_configuration(data, pins, length);
|
write_configuration(data, pins, length);
|
||||||
}
|
}
|
||||||
else if (request == 0x0B)
|
else if (request == 0x0B)
|
||||||
{
|
{
|
||||||
|
for (int i = 0; i < CHANNELS; i++)
|
||||||
|
{
|
||||||
|
pins[i] = data[i];
|
||||||
|
}
|
||||||
|
|
||||||
write_configuration(led_counts, data, length);
|
write_configuration(led_counts, data, length);
|
||||||
}
|
}
|
||||||
else if (request == 0x0E)
|
else if (request == 0x0E)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user