Added function to dim the display

The display allows the user to set the contrast. The range of the contrast is too small to be really useful. It is useful for dimming the display though.

Dimming the display is a useful addition to the API.