/*
Single LED
LED Bar
*/
#include "mydelay.hpp"
MyDelay dly;
void setup() {
pinMode(13, OUTPUT); // sets pin 13 as output for single LED
DDRA = 0xFF; // sets Port A all pins as output for LED Bar
Serial.begin(115200);
Serial.println("Welcome to the Micocontrollers!");
Serial.println("-------------------------------");
}
void loop() {
digitalWrite(13, HIGH); // turn single LED on
PORTA = 0xFF; // turn LED Bar on
dly.FixedDelay();
digitalWrite(13, LOW); // turn single LED off
PORTA = 0x00; // turn LED Bar off
dly.FixedDelay();
}