At A Glance

A library for driving the Pimoroni Micro Dot pHAT Raspberry Pi add-on.

This library creates a virtual buffer of unlimited size onto which you can write text and icons for scrolling around the Micro Dot pHAT display.

Methods are included for rotating and scrolling, plus writing text either kerned to one pixel spacing, or spaced to place one character per matrix.

microdotphat.clear()[source]
microdotphat.draw_tiny(display, text)[source]
microdotphat.fill(c)[source]
microdotphat.scroll(amount_x=0, amount_y=0)[source]
microdotphat.scroll_horizontal(amount=1)[source]
microdotphat.scroll_to(position_x=0, position_y=0)[source]
microdotphat.scroll_vertical(amount=1)[source]
microdotphat.set_brightness(brightness)[source]
microdotphat.set_clear_on_exit(value)[source]
microdotphat.set_col(x, col)[source]
microdotphat.set_decimal(index, state)[source]
microdotphat.set_mirror(value)[source]
microdotphat.set_pixel(x, y, c)[source]
microdotphat.set_rotate180(value)[source]
microdotphat.show()[source]
microdotphat.write_char(char, offset_x=0, offset_y=0)[source]
microdotphat.write_string(string, offset_x=0, offset_y=0, kerning=True)[source]