Made get methods const
Moved pin initialisation into the constructor
Updated example code

Pin initialisation for display input and enable pins have been moved
into the HPNumberDisplay constructor.

Replaced all pin defines with enums. This is C++.

Removed the unnecessary allocation of a HPNumberDisplay object. The
reason behind this allocation was removed in an earlier version of the
code.