hazemselmi  committed 04ab8ab

Blink an LED(steps)

  • Participants
  • Parent commits 6e26cb6
  • Branches default

Comments (0)

Files changed (1)

 === Blink an LED
+To practice what you have learned in the lab, you need to make an LED blinking.
+To achieve that you need to do the following:
+. Figure out to which _port pin_ the LED is connected. (you can do that by referring to lpc1769 board data sheet)
+. Use the above _#define_  directives
++ then in an infinite loop inside _main()_:
+. Set the correct pin in the direction register to 1 (making that pin output).
+. Set the correct pin to 1 (This will turn the LED OFF; WHY?) 
+. Clear the correct pin to 0 (This will turn the LED ON; WHY?)
+. Insert a loop delay after both set and clear (to be able to see the blinking)
 === Debug Your Project