[ create a new paste ] login | about

Link: http://codepad.org/AaQnPvoX    [ raw code | fork ]

C, pasted on Mar 18:
#define LED1 PD6

int main(void)
{

    _delay_ms(7000);

    DDRD |= (1 << LED1);
    DDRD |= (1 << PD4);

    OCR1A = 320;

    OCR1B = 250;
    
    TCCR1A |= (1 << COM1B1);

    TCCR1A |= (1 << WGM10);
    TCCR1B |= (1 << WGM13);

    TCCR1B |= (1 << CS10);

    _delay_ms(200);
    while (1)
    {
        OCR1B = 200;
        _delay_ms(5000);
        
        
        OCR1B = 150;
        _delay_ms(5000);
       
    }
}


Create a new paste based on this one


Comments: