Your code doesn't contains any circuit diagram. So it is hard to understand how to make this project.