You should have learned to program microprocessors in school.
Your are in your 4th year. Write your own code, if you need help with it you can get help here. We will help you with what is wrong, if YOU write the code.
We will not help people who do not try. Do not say code or circuits you find on the internet is yours, we are not stupid.
You should not be in a class that requires programming if you have not taken a class that teaches you how to program.
This may sound harsh/mean but it is not. We are not here to do your schoolwork for you. Feel free to pass this on to anyother student who expects us to do his or her work.
3v0