A pot is pretty much a half joystick. Learn how to make it control the movement of the motor. Know that a motor driver, inverter, is needed.
The duplicate the build, 2 pots and 2 motors.
Let one motor move a trolley in X direction and the other motor in the Y direction.... Add a pen to the trolley.... A plotter maybe .
LED one will gradually increase its brightness during one second, stay fully ON for one second and then dim gradually for another second until fully OFF for another second. Cycle will take four seconds with no manual intervention.
OFF-increasing-ON-decreasing-OFF-…
All four time intervals should be easily changed in the code.
A second LED simply blinks with a 50% cycle with its frequency controlled by the pot.
As usual, the only literals allowed in the code are 0 and 1. All others must be named constants. Also, reasonable variable/function names should be used.
You can add a motor that turns on for exactly 5 seconds every time the pot increases through half its value. The motor will turn off even though the pot is still in its upper half.
The second LED logic should not be affected by the motor logic in any way.