I have LEDs on my bot but don’t know how to control them in vexcode pro. I’m using vexcode instead of PROS because I use JAR template. I know that you can use SYLIB on PROS to control your LEDs, but how to I control them in vexcode pro?
I assume you mean addressable LEDs.
Pull some code from here. There’s an addressable led class and some demo code.
also be aware that connection may not be as easy as you think, see this.
It’s worth noting that sylib does work with vexcode but only in the vex vscode extension which has an import feature to easily transfer projects from vexcode pro.
Is there any functionality difference between vexcode pro and vs code?
There is some functionality difference. First, I’ll start with what’s the same. The language, syntax, and function names are all the same with the only difference being the IDE. The vex visual studio code lacks a graphical device configuration and the vision utility. The upside is that you can use visual studio code which has support for a wide range of extensions like different themes, live share, and GitHub integration.
So would it be possible to import JAR template into VS code?
Yes, it is possible to import the JAR template into the vs code extension.
By “vs code extension” do you mean PROS? I tried to import JAR into PORSand got a ton of errors
No, they mean the VEX VSCode extension. Not the PROS VSCode extension.
This is not strictly true, doing so in the VEXcode IDE is merely a tad bit more annoying.
Sylib works perfectly fine in VEXcode as well.