ernstc.dk

Lorem ipsum dolor sit amet

 

 

 

 

 

 

 

 

 

 

 

 

Dette giver 115 KHz

===================

 

byte outPin=8;

 

void setup() {

// put your setup code here, to run once:

pinMode(outPin,OUTPUT);

}

 

void loop() {

// put your main code here, to run repeatedly:

digitalWrite(outPin,HIGH);

digitalWrite(outPin,LOW);

}

 

 

Dette giver 992KHz

==================

byte outPin=8;

 

void setup() {

// put your setup code here, to run once:

pinMode(outPin,OUTPUT);

 

}

 

void loop() {

// put your main code here, to run repeatedly:

 

//DDRB |= (1<<PB0);

PORTB |= (1<<0); //PIN 8 High

//delay(10);

PORTB &= ~(1<<0); //PIN 8 LOW

//delay(10);

}

 

 

 

 

YournameCom © 2012 • Privacy Policy • Terms of Use