Is there any way to change the background on the controller every second? Make the controller rumble every other second?

So I’ve been trying to make a code for our team and a friend of mine, who is a ex-robotics member, said a really funny/stupid idea that I really want to do, make the background of the controller change forever in the following order: Red, Blue, Red, Blue, Yellow, Red, Blue, Red, Blue, Yellow, White. If you haven’t realized those are the colors from the banned pokemon episode with porygon in it. He also had the idea to make the controller rumble for a second, stop for a second, over and over again.

Good idea, not sure how, but the changing colors and rumble might be distracting to a driver trying to be precise, but good luck on your research.

That episode was banned for a reason… I’m sure you could do it but just make sure that u don’t harm anyone

I don’t think the controller backlight is controllable, or that it’s multi-color.

However, you could have the rumble once per second, although I’m not sure why you’d want to.

One way to do this would be to spin off a separate task to rumble the controller at regular intervals.

int rumble(){
    while (true){
        Controller.rumble("---");
        task::sleep(1000);
    }
    return 1;
}

Then start the task with:

task rumbleTask(rumble);

And stop the task with:

rumbleTask.stop();
1 Like