#include "general.h"
int main(void)
{
initPortB();
initTimer1();
sei();
while(1)
{
if(~PINB & 0x01)
{
setBit(PORTB, 0x10);
}
else
{
clrBit(PORTB, 0x10);
}
}
return 1;
}
#include "general.h"
int main(void)
{
initPortB();
initTimer1();
sei();
while(1)
{
if(~PINB & 0x01)
{
setBit(PORTB, 0x10);
}
else
{
clrBit(PORTB, 0x10);
}
}
return 1;
}