This gist provides sample code for using Nokia 5110 displays using the ATtiny85 template library. For a full description of code behind this please see this post on The Garage Lab website.
To use this sample code first clone the ATtiny85 template repository and then replace 'main.c' with the source provided here.