Post the code that you tried. Read the forum guidelines to see how to properly post code and some good information on making a good post.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.
Post a schematic of the connections. Hand drawn, photographed and posted is fine. Include all components, their part numbers and/or values and all power supplies.
Post a sample of what you received, if anything.