Please write the correct answer of the given problem
Problem- Write a C program to flash the eight small LEDs on the microcontroller board with the following patterns using the RTI interrupts. To turn on and turn off all the LEDs for about 0.4s, to turn on one LEDs at a time from left to right with each one turned on for about 0.4s, to turn on one LEDs at a time from right to left with each one turned on for about 0.4s and repeat all the steps three more times.
I want assist to write a C program to flash the eight small LEDs.