Brace yourselves, it's a long story and I am sorry for any typos, English is not my first language.

Last summer I dated a guy that was studying to be a flight attendant with my best friend. At first he was sweet but as the course went on he had less time to hang out, he didn't answer anymore, he was stressed out and he started to stand me up on dates and stuff.. I reacted pretty badly at first as I was also starting a new job and I had to travel 3 hours every day and bike 20 kilometers to make it. I guess neither one of us were really in the right mood. Nonetheless, I got mad, started to get insecure and had a breakdown on him. So my best friend just told him to back off and he did. I was quite ashamed of myself so I apologized and he ignored me. When I saw that he was still watching my stories I just wrote to him something in the lines of: if you're going to ignore me do it right. Don't watch my stories. To that, he promptly deleted me from social medias and that was the end of it. 
At that point I was pretty much the asshole I think.. anyways I leave that to your judgement. 

Couple of months later, he does his grand comeback and adds me on fb. I message him saying that I am not really comfortable with us being friends and all.. And I do it very nicely I think.. He gets mad tells me off and blocks me on fb. I tell it to my best friend and he then confide that my ex is feeling lonely and that he hasn't really connected with any flight attendants and his job doesn't really allow him to with anyone. I find his number and text him telling him that I didn't mean him to take it that way it's just I still remember the nice time we had together and it still hurts to talk to him. We then formally apologize to each other (especially me). But nothing more comes out of it. We don't talk again as I made it clear that it was over and that I don't befriend my exes. 

Fast forward to last Sunday.. my best friend posts a story of us at a party and my ex suddenly remembers that he didn't wish me a HNY... 13 days later.. I just answer thanks, you too even though it's a little late. He starts joking around with wink faces and I just tell him what's new to be polite... Two days later and he didn't answer.. I texted him well never mind, hope your having a good one, bye now... Through that part, you have to keep in mind that I'm really depressed because my contract ended so I don't have a job, both my best friends are an ocean away and well I'm bored, I don't have social contact or anything.. the smallest thing throws me off.. So small talks with someone I don't specially want to talk too are not really something I enjoy. 
He gets mad at me, and says still moody I see, I've been working you should know. And I tell him that I'm not mentally well so to cut me some slack. So to that he kinda tries to apologize and the typical if you want to talk I'm here. And if there's one thing I really don't need right now is pity. 

So I try to explain to him gently that even though I appreciate his support, it's really not what I need right now and I'd rather not talk to him.. and he gets mad saying that I'm just trying to push him away, that I shouldn't treat him like that he's doing everything out of his own free will.. And I try to explain to him that I need someone to hang out with here in my city not half a world away, I don't to feel vulnerable to him by talking with him as a crutch as it would hurt me more than anything.. he gets mad again, and so explain once more putting an accent on the fact that I don't hate him or anything. He doesn't answer again for 2 days.. So I just tell him not to contact me again as the wait is more painful than anything. And he starts saying that I'm spitting in the face of maybe the only person that cares for me, and if that's how I treat people who care, I'm going to need luck. That everything he did he did it out of free will and that I twisted it all around. 

There I got mad, and I told him that I tried to explain to him many times, and that I do have people who care and not to presume on how I treat them. As for him caring, it's all lie he's telling himself to make himself feel better that he better not blame me, if he still hasn't got it through his head that by texting me he's not doing me any good. Theeeen I blocked him.. 

Am I the asshole? 

Thanks everyone who kept on going until here! 