Post the code that does not work. Read the forum guidelines to see how to properly post code and some information on how to get the most from this forum.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.
Post a schematic. Hand drawn, photographed and posted is fine. Or how to make a schematic that you can post.