Module eink.generate.rotation
Expand source code
from enum import Enum
class Rotation(Enum):
"""A rotation to use when drawing to the Inkplate device."""
# Landscape rotation
LANDSCAPE = 4
# Portrait left (bottom of device on left)
PORTRAIT_LEFT = 3
# Portrait right (bottom of device on right)
PORTRAIT_RIGHT = 1
# Upside down landscape rotation
LANDSCAPE_UPSIDE_DOWN = 2
Classes
class Rotation (value, names=None, *, module=None, qualname=None, type=None, start=1)
-
A rotation to use when drawing to the Inkplate device.
Expand source code
class Rotation(Enum): """A rotation to use when drawing to the Inkplate device.""" # Landscape rotation LANDSCAPE = 4 # Portrait left (bottom of device on left) PORTRAIT_LEFT = 3 # Portrait right (bottom of device on right) PORTRAIT_RIGHT = 1 # Upside down landscape rotation LANDSCAPE_UPSIDE_DOWN = 2
Ancestors
- enum.Enum
Class variables
var LANDSCAPE
var LANDSCAPE_UPSIDE_DOWN
var PORTRAIT_LEFT
var PORTRAIT_RIGHT