I tried making a “Code Snippet” and assigning it to an event, but I can’t get it to work.
Is this code correct?
motors = MotorsController()
led_1 = LEDController(“LED1”)
motors.set_forward_rate(1, 100)
motors.set_speed(1, 512) # ~25% speed
led_1.set_led_effect(0, 500, 255, 0b0001, 0xFFFFFF) # White
1 post - 1 participant