20 lines
285 B
C
20 lines
285 B
C
|
#include <avr/io.h>
|
||
|
#define F_CPU 18000000UL
|
||
|
#include <util/delay.h>
|
||
|
|
||
|
int main(void)
|
||
|
{
|
||
|
// CLKPR |= _BV(CLKPCE);
|
||
|
// CLKPR &= ~(_BV(CLKPS0)
|
||
|
// | _BV(CLKPS1)
|
||
|
// | _BV(CLKPS2)
|
||
|
// | _BV(CLKPS3));
|
||
|
DDRC |= _BV(PC5);
|
||
|
while(1)
|
||
|
{
|
||
|
PORTC ^= _BV(PC5);
|
||
|
_delay_ms(4000);
|
||
|
}
|
||
|
return 0;
|
||
|
}
|