I'm using at ATTiny 13a to fade an LED on and off. It's supposed to look like the LED is glowing, but it's also supposed to turn completely off. The sequence is:
Fade in 2s
Fade Out 2s
I've got the PWM working on output B1. The problem is that the fade never turn completely off, and it's kind of a fast fade as well.
I attached my code to show how I'm going about the fade in and out. If anybody has any idea what I'm doing wrong please shoot me some info. Thank you in advance.
(I am working in C, I'm not good with assembly code)