Flip screen 180° on Inky Phat

Anybody know how I can rotate the screen 180° so it is in effect upside down?

Thanks.

Try inkyphat.set_rotation(180)

Does this method still works? I am getting the following error

Traceback (most recent call last):
File “logo.py”, line 46, in
inky_display.set_rotation(180)
AttributeError: InkyPHAT instance has no attribute ‘set_rotation’

Try the following if using the new Inky library.

inky_display.h_flip = True
inky_display.v_flip = True