#define PIN6 6
void setup() {
// put your setup code here, to run once:
DDRD = 1 < PIN6; //setting untuk output OCOA
pinMode(6, OUTPUT);
// setting fast PWM
TCCR0A = (1<<COM0A1) ; // non inverting on OCOA
TCCR0A |= (1<<WGM01) | (1<<WGM00); // Fast PWM - TOP is OxFF
TCCR0B = (1<<CS01); // prescaler = 8
OCR0A = 128;
}
//void loop() {
// // put your main code here, to run repeatedly:
//
//}
int main (){
setup ();
while (1){
}
}