Skip to content

_sdl2_lib

displaysys.sdldisplay._sdl2_lib

This module provides the SDL2 library implementation for MicroPython, CircuitPython, and CPython.

The module checks the implementation name and imports the appropriate backend.

Functions:

SDL_Event

SDL_Event(event=None)

Convert event to an SDL_Event object using ctypes. The size of the largest SDL_Event struct is 56 bytes.

SDL_DEFINE_PIXELFORMAT

SDL_DEFINE_PIXELFORMAT(type, order, layout, bits, bytes)

Define a pixel format.