#define functie(port,pin) port|=1<<pin
#define functie1(port,pin) port&=~(1<<pin)
void setup() {
// put your setup code here, to run once:
DDRC |=1<<7;
}
int i,j;
void functie2()
{
for(j=0;j<1000;j++)
{
digitalWrite(30,HIGH);
delay(1000);
digitalWrite(30,LOW);
delay(1000);
}
}
void loop() {
// put your main code here, to run repeatedly:
functie(PORTC,7);
delay(500);
functie1(PORTC,7);
delay(500);
for(i=0; i<255; i++)
{
analogWrite(23, i=i+(0.02*i));
delay(30);
}
functie2();
}