Skip to content
This repository was archived by the owner on Sep 22, 2024. It is now read-only.

Latest commit

 

History

History
16 lines (11 loc) · 777 Bytes

Assignment 2.md

File metadata and controls

16 lines (11 loc) · 777 Bytes

Assignment 2

Task 1

Write a program that does the following using 2 buttons and 3 LEDs:

  • Pressing button 1 should toggle right to the next LED.
  • Pressing button 2 should toggle left to the previous LED.

Task 2

Write an Arduino program to make three LEDs glow according to the delay (in ms) and in the sequence entered by the user. For example, L1 200 L2 400 L3 500 should make LED1 blink for 200ms, LED2 blink for 400ms and LED3 blink for 500ms simultaneously.

Links