I am an IP/startup lawyer and I know the startup world intimately, having worked for/in one. You might want to arrange a deal with the other members of the startup to buy you out, since you no longer want to be part of the team.
Also, Do you have any emails/voicemails/texts memorializing your 5% equity? The reason I ask is bc sometimes formal written agreements aren't necessary in some cases.
From an IP standpoint, if your initial agreement did NOT give all the ownership of the code you've written to the company, then you ARE the rightful owner of the code, doesn't matter how much you were paid/not paid.