Connect two TT motors to micro:bit as the picture showed below.
Click Add Package in the code drawer of makecode, then search for the key word motorbit
in the dialogue box and click on the searching result to download this package.
Write your code to make two TT motors rotate in turns.