As a one person company programmer who is writing shareware (aka no customer meetings etc.) this hits me many times.
What is your way to deal with it and find motivation to work on your code again?
Even my previous way to write down very small steps on a paper that you can physical strike through when done - to give you a real feeling that something is progressing - does not help at the moment.
I tried other things like walking in nature, go shopping, visiting the red light district (hey thats why i'm living in thailand now) does not help much. Only in the 2 hours immediately after breakfast i'm doing well.
In the past such phases went usually for 1 or 2 weeks
Does a burnout come slowly or like an avalanche? Whats the best way to protect yourself from this?