This worked with my eBay, elCheapo display and 20x4 backpack.
Due to library errors, the line of code with positive had to be commented out. It conflicts with the version of liquidcrystals that was compatable with wire.h. I either kept getting an error for the POSITIVE line, or if I switched libraries, the compiler would say that wire.h was not found.
This sketch worked fine for me. It just needed the contrast adjusted. Spent 3-4 hours looking around Google for this. Thanks to the original uploader that thought to comment out the line of code with positive in it.
Embed This Sketch
Use the following HTML code to embed the sketch code above in your blog or website.
<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/sketch:312942" frameborder="0"></iframe>
Embed The Serial Monitor
You can also embed the Serial Monitor section! Just use this HTML code.
<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/serialmonitor" frameborder="0"></iframe>