Asadkh21
Junior Member level 1
- Joined
- Oct 13, 2013
- Messages
- 16
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 3
- Activity points
- 119
Can anybody help me with writing a replacemnt code i wrote which should perform the same function as this one for ATtiny13.
This is what I want my AtTiny13 to do what my ATmega32 is doing right now.
This is what I want my AtTiny13 to do what my ATmega32 is doing right now.
Code:
#include <mega32.h>
#include <delay.h>
void main()
{
DDRB=0xFF;
while(1)
{
PORTB.0=1;
delay_ms(2);
PORTB.0=0;
delay_ms(3);
PORTB.1=1;
delay_ms(2);
PORTB.1=0;
delay_ms(3);
}
}
Last edited by a moderator: