Code to Note pinMode(2, OUTPUT)− Before you can use one of Arduinos pins, you need to tell Arduino Uno R3 whether it is an INPUT or OUTPUT. We use a built-in function called pinMode() to do this. digitalWrite(
This circuit consists of LEDS ,ATTINY (2) and a piezo and Arduino .The Arduino will supply the power and the LEDs will light up with resistors .The ATTiny will blink some of the LEDS .The piezo speaker will play "Twinkle,Twinkle,little Star ' will a Code . Step 2: LEDs There are L...