Do I need a mutex if two equal-priority tasks just share CPU time?

No - that’s what FreeRTOS (the scheduler) does for you :slight_smile:
But be careful and check the low level access to the 2 LEDs.
They might be controlled by the same GPIO controller of your MCU and that’s a HW resource that probably need mutex protection when accessing it.

1 Like