I using h-bridge light. It works fine, but, the light is a little dimmed. I check the code and each loop change the direction. The problem is ESPHome execute the loop each every 16ms (60hz), so the each light is on half time (30hz), I can notice a little flicks.
I think if can change the loop interval to 4-8ms I would get improved results.
I see the set exists in cpp, but I don’t know how pass a value from yaml: