int k;
int dd=25;
void setup() {
// put your setup code here, to run once:
DDRA = B11111111;
pinMode(2, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
/*for(k=0; k<255; k++)
{
analogWrite(2,k);
delay(10);
}
if (k==255)
{k=0;}
*/
analogWrite(2, 10);
delay(500);
analogWrite(2, 255);
delay(500);
/*
PORTA=B00001000; delay(dd);
PORTA=B00000100; delay(dd);
PORTA=B00000010; delay(dd);
PORTA=B00000001; delay(dd);
delay(2000);
*/
/*for (k=0;k<12;k++)
{
PORTA=B00000001; delay(dd);
PORTA=B00000010; delay(dd);
PORTA=B00000100; delay(dd);
PORTA=B00001000; delay(dd);
}
PORTA=B00000001; delay(dd);
PORTA=B00000010; delay(dd);
PORTA=B00000110; delay(dd);
delay(2000);
PORTA=B00000100; delay(dd);
PORTA=B00001100; delay(dd);
// PORTA=B00001000; delay(25);
// PORTA=B00000001; delay(25);
// PORTA=B00001000; delay(25);
*/
}