Skip to content

Documentation error on kno.wled.ge UDP Sync page #4496

Closed

Description

@Christanoid

According to the Documentation there is no DNRGBW
Image

Looking at the code dnrgbw is in fact implemented, just not documented, as visible in udp.cpp

} else if (udpIn[0] == 4 && packetSize > 7) //dnrgb
{
  unsigned id = ((udpIn[3] << 0) & 0xFF) + ((udpIn[2] << 8) & 0xFF00);
  for (size_t i = 4; i < packetSize -2 && id < totalLen; i += 3, id++)
  {
    setRealtimePixel(id, udpIn[i], udpIn[i+1], udpIn[i+2], 0);
  }
} else if (udpIn[0] == 5 && packetSize > 8) //dnrgbw
{
  unsigned id = ((udpIn[3] << 0) & 0xFF) + ((udpIn[2] << 8) & 0xFF00);
  for (size_t i = 4; i < packetSize -2 && id < totalLen; i += 4, id++)
  {
    setRealtimePixel(id, udpIn[i], udpIn[i+1], udpIn[i+2], udpIn[i+3]);
  }
}

Sadly I don't know where / if the documentation source code is set and can't find it, so this fyi instead. Sorry.

Activity

  1. dosipod commented on Jan 17, 2025

    @dosipod
    Contributor
  2. Christanoid commented on Jan 17, 2025

    @Christanoid
    Author

    Thanks, will adapt it there after testing if it acutally works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions