Did I do the right thing?

My ex-boyfriend and I have been together for two years and a few months. But recently we broke up. We still loved each to ever and got back together without thinking and a week later, things just went downhill. He neglects me because ropes and he uses that as an excuse to ditch me for his buddies. He used to be really sweet and then he wasn't. I didn't want any of the gifts that he gave me, so I returned them. His dad happened to be there and so were his cousins (I think). I gave back the nook, because I didn't want him to have anything against me. He followed me and put it in the back of my truck. So I went back into the house and put it on his bed. I didn't think it was that big of a deal and he told me I made a fool of myself via text when I was driving back. I miss him, even though he was a douche. Did I do the right thing? Or am I just missing who I thought he was ?