Apologies if this is simple, can’t for the life of me figure it out.
I am using PicoGraphics with a Pimoroni Pico Display Pack 2.0 and know I can set rotation when setting the display, for example:
display = PicoGraphics(display=DISPLAY_PICO_DISPLAY_2, pen_type=PEN_P4, rotate=180)
However I cannot for the life of me find a way to rotate the screen with one of the 4 buttons I have available. I have tried assigning one of the buttons to the same line above hoping it will re-initialise the display with the new rotation specified but it does not work (nor did I expect it to):
if button_x.read():
display = PicoGraphics(display=DISPLAY_PICO_DISPLAY_2, pen_type=PEN_P4, rotate=90)
Is there an obvious function I’m missing that will accomplish this?