Question: Write a C function to flash a given number on LEDs connected to portb. The number should be flashed 3 times, each time followed by

  1. Write a C function to flash a given number on LEDs connected to portb. The number should be flashed 3 times, each time followed by 0x00. The time between flashes should be 200mS. The prototype for the function is as follows;

void Flash_Number(unsigned char number);

You should write the C code for the function then show an example of how the function is called.

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!