Hello! For some reason when I compile this code, the output is 10.0 KB and I have no idea why... I'm using the latest version of WinAVR for my ATTiny45V.
When I comment out "else length++;", the file size becomes 345 bytes. Could someone please help?
#include#include int main(void) { DDRB |= 1<<PB3; DDRB |= 1<<PB4; double length = 1.0; while(1) { PORTB &= ~(1<<PB3); _delay_us(length); PORTB |= 1<<PB3; _delay_us(length); if(length > 1000.0) length = 0.0; else length++; } return 0; }