Skip to main content

Inkplate 6 MicroPython - Initialization and display update

Initializing Inkplate

Here is a basic Inkplate object creation and display initialization which we will use in every example in following tutorials:

from inkplate6 import Inkplate

# Create Inkplate object
inkplate=Inkplate(Inkplate.INKPLATE_1BIT)

# Initialize the display, needs to be called only once
inkplate.begin()

# Clear the display buffer
inkplate.clearDisplay()

# Draw what is currently stored in frame buffer, needs to be called to update the display
inkplate.display()

inkplate=Inkplate()

Creates the Inkplate object, in this example we are using enum Inkplate.INKPLATE_1BIT to set the display mode in Black and White mode.

Function parameters:

TypeNameDescription
NumbermodeEnum representation of a integer value that sets the display mode as either Black-White or Grayscale.
ℹ️
To learn more about Grayscale mode, check this documentation
ℹ️
VALUEENUM
Black-White modeINKPLATE_1BIT
GrayscaleINKPLATE_2BIT

inkplate.begin()

Initializes the display, this must be called only once after creating the Inkplate object.

inkplate.clearDisplay()

Clears the internal frame buffer (does not change the panel until you update).

inkplate.display()

Performs a full-screen refresh, sending the current frame buffer to the panel.