Hi there.
I am working on a project that involves using the AtTiny404.
It only has 4KB of program storage space, which is not enough for my code.
I find that Arduino creates a lot of overhead with its versatility of functions. Therefore, it seems like a good idea to use direct port manipulation and only set things that are really needed. The problem is that I'm a bit lost on the direct port manipulation so I'm hoping someone can help me out here.
I am not sure how to set up and use PWM on PB0, PB1 and PB2. Another thing is to detect long and short button presses - perhaps this could be achieved by keeping the millis() functionality.