SDL2 (image/display/media library) bindings for MicroPython

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
pfalcon
Posts: 1153
Joined: Fri Feb 28, 2014 2:05 pm

SDL2 (image/display/media library) bindings for MicroPython

Post by pfalcon » Mon Aug 27, 2018 8:36 pm

Now available in micropython-lib: https://github.com/pfalcon/micropython- ... ster/usdl2 and on PyPI: https://pypi.org/project/micropython-usdl2/ .

SDL2 homepage is https://www.libsdl.org/
"Simple DirectMedia Layer is a cross-platform software development library designed to provide a hardware abstraction layer for computer multimedia hardware components." says Wikipedia.

The bindings are far from complete, primary usecase is being able to display images (framebuffers). There's an example in micropython-lib.
Awesome MicroPython list
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/

pfalcon
Posts: 1153
Joined: Fri Feb 28, 2014 2:05 pm

Re: SDL2 (image/display/media library) bindings for MicroPython

Post by pfalcon » Sat Sep 01, 2018 8:41 am

Initial SDL_Image bindings were added too: https://github.com/pfalcon/micropython- ... sdl2_image
Awesome MicroPython list
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/

pfalcon
Posts: 1153
Joined: Fri Feb 28, 2014 2:05 pm

Re: SDL2 (image/display/media library) bindings for MicroPython

Post by pfalcon » Wed Sep 12, 2018 10:19 pm

(Subset of) "framebuf" module for Unix port developed using SDL bindings: https://github.com/pfalcon/micropython- ... r/framebuf

All of these modules are experimental.
Awesome MicroPython list
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/

Post Reply