Question: Write an Embedded C program to display a pattern on the LEDs. Output Requirements: Consider 8 LEDs from the Board, these LEDs has to glow

Write an Embedded C program to display a pattern on the LEDs.
Output Requirements:
Consider 8 LEDs from the Board, these LEDs has to glow one by one as if a train bogie coming out of a tunnel every second (approx., none without timer implementation)from Left to Right as soon as the board is powered on or reset (Lets call it as exit)
Once all LEDs are ON, the LEDs should switch OFF one by one as if the train bogie is entering inside a tunnel from Left to Right (Lets call it as entry).
Once the exit and entry is complete , Change the direction of the train from Right to Left.
This process of changing direction has to be repeated between every exit and entry of the train.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!