Motor driver shield with led

Hi sir,
I'm Paras a 13-year-old boy curious about Arduino I have an obstacle avoiding car for my school project but my teacher said when cars take brake their red lights turn on and yellow while turning but because the motor driver shield is connected to Arduino I don't know how should I connect the LEDs to the Arduino please help me I have attached the photos of my car and the code
please help me,
Paras

link to photos and code: https://drive.google.com/drive/folders/1ACg3Z4lXeLrQHGhqxvya7fBLUeGpmh-h

Could you take a few moments to Learn How To Use The Forum.
It will help you get the best out of the forum in the future.

Posting tips.

  • How to insert an image into your post.
  • Add your sketch where applicable but please use CODE TAGS ( </> )
  • Add a SCHEMATIC where needed even if it is hand drawn
  • Add working links to any specific hardware as needed (NOT links to similar items)
  • Remember that the people trying to help cannot see your problem so give as much information as you can

Bob.

Hi,
I'm Paras a 13-year-old boy curious about Arduino I have an obstacle avoiding car for my school project but my teacher said when cars take brake their red lights turn on and yellow while turning but because the motor driver shield is connected to Arduino I don't know how should I connect the LEDs to the Arduino please help me I have attached the photos of my car and the code in total there are 4 red and 4 yellow LEDs 2 front and 2 back each
please help me,
Paras

link:https://drive.google.com/drive/folders/1ACg3Z4lXeLrQHGhqxvya7fBLUeGpmh-h?usp=sharing

The most relevant of Paras_'s pictures from that link:

I've deleted/merged your other cross-posts @Paras_.

Cross-posting is against the rules of the forum. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend 15 minutes (or more) writing a detailed answer on this topic, without knowing that someone else already did the same in the other topic.

Repeated cross-posting will result in a suspension from the forum.

In the future, please take some time to pick the forum board that best suits the topic of your question and then only post once to that forum board. This is basic forum etiquette, as explained in the sticky "How to use this forum - please read." post you will find at the top of every forum board. It contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.