Just because you aren't given the credit and haven't been recognised for your work doesn't mean you have to give up or stop. You don't always need credit, other people do not always have to know what you are capable of doing as long as you do.
Stop and take inventory of the top 5 people you spend the most time with – Do they encourage you? challenge you? do they live their daily life the way you would want to live yours? are they bringing you up or down? do you walk away feeling better about your self or worse about yourself, after you have spent time with them? Remember to choose carefully.