This is an archive of G2M. Please refer to this post for more information. Archived on 2026-01-09.

Addressable LED Control on the V5

Sylvie
03/13/2023 at 10:26:13 PM PDT
Dragon
03/14/2023 at 12:25:59 AM PDT

How exactly do you code this with PROS or VEXcode, without Sylib?
I don’t like downloading things, and although I’m not on a team yet this information might come in handy later.

Sylvie
03/14/2023 at 12:54:15 PM PDT

Replying to Dragon ↩️

https://sylvie.fyi/sylib/docs

Dragon
03/14/2023 at 01:01:29 PM PDT

Replying to Sylvie ↩️

…I said without Sylib.

Sylvie
03/14/2023 at 01:02:41 PM PDT

Replying to Dragon ↩️

oop, i failed to read, sorry.

https://pros.cs.purdue.edu/v5/api/cpp/adi.html#pros-adiled

Dragon
03/14/2023 at 01:57:40 PM PDT

Is the function overloaded with operator[] called on every led (by feeding the led index into the function and feeding the return value into the led) every time update is called? Is this how you change multiple leds at once? Or am I getting this wrong? I feel like I am.
Also ty.

Sylvie
03/14/2023 at 01:58:49 PM PDT

Replying to Dragon ↩️

I’ve only used the PROS addrled API once, and that was when I was helping write it, and I haven’t touched it since. I don’t think anyone else has either. I don’t know.

Dragon
03/14/2023 at 01:59:24 PM PDT

Replying to Sylvie ↩️

Ok ty anyways.