add analogRead to example

this adds an analogRead function to the 7segment code.