1

Тема: ATTINY13

PWM

// ATTINY 13
// PWM TIMER0

void setup(){
  DDRB |= (1 << PB0);
  PORTB &=~(1 << PB0);
  TCCR0A = 0;
  TCCR0B = 0;
  TCNT0 = 0;
  TCCR0B |= (1 << CS01);// clkI/O/8
  TCCR0A |= (1<<COM0A1);
  TCCR0A |= (1<<WGM01) | (1<<WGM00);
  OCR0A = 2;
  }

void loop(){

  }