summaryrefslogtreecommitdiffstatshomepage
path: root/extmod/modframebuf.c
Commit message (Collapse)AuthorAge
* extmod: Use MP_ROM_INT for int values in an mp_rom_map_elem_t.Damien George2017-07-31
|
* extmod/modframebuf: Use correct initialization for .locals_dict.Paul Sokolovsky2017-07-29
|
* extmod/modframebuf: Consistently use "col" as name for colour variables.Damien George2017-07-25
| | | | Thanks to @kamikaze, aka Oleg Korsak, for the original idea and patch.
* extmod/modframebuf: Fix invalid stride for odd widths in GS4_HMSB fmt.Radomir Dopieralski2017-07-25
| | | | | | Since the stride is specified in pixels, in a 4-bit horizontal format it has to always be even, otherwise the computation is wrong and we can write outside of the buffer sometimes.
* all: Make more use of mp_raise_{msg,TypeError,ValueError} helpers.Damien George2017-06-15
|
* extmod/modframebuf: Fix signed/unsigned comparison pendantic warning.Paul Sokolovsky2017-06-10
| | | | Happened with 32-bit gcc 4.8.4.
* extmod/modframebuf: Make monochrome bitmap formats start with MONO_.Peter Hinch2017-04-04
| | | | | | | | MONO_xxx is much easier to read if you're not familiar with the code. MVLSB is deprecated but kept for backwards compatibility, for the time being. This patch also updates the associated docs and tests.
* extmod/modframebuf: Add support for monochrome horizontal format.Peter Hinch2017-03-20
| | | | | MHLSB and MHMSB formats are added to the framebuf module, which have 8 adjacent horizontal pixels represented in a single byte.
* extmod/modframebuf: Add GS4_HMSB format.Oleg Korsak2017-01-25
|
* extmod/modframebuf: Clip pixels drawn by line method.Damien George2017-01-23
|
* extmod/modframebuf: optimize fill_rect subroutine callOleg Korsak2017-01-08
|
* extmod/modframebuf: Store underlying buffer object to prevent GC free.Damien George2016-12-09
|
* extmod/modframebuf: Make framebuf implement the buffer protocol.Damien George2016-12-08
| | | | | So that one can easily access the underlying data of the frame buffer, eg to write the data out to a display.
* extmod/modframebuf: Add hline, vline, rect and line methods.Damien George2016-12-05
| | | | | | These are basic drawing primitives. They work in a generic way on all framebuf formats by calling the underlying setpixel or fill_rect C-level primitives.
* extmod/modframebuf: Optimise fill and fill_rect methods.Damien George2016-12-01
| | | | | | | | | Fill is a very common operation (eg to clear the screen) and it is worth optimising it, by providing a specialised fill_rect function for each framebuffer format. This patch improved the speed of fill by 10 times for a 16-bit display with 160*128 pixels.
* extmod/modframebuf: Add back legacy FrameBuffer1 "class".Damien George2016-12-01
| | | | | For backwards compatibility. It simple creates a frame buffer with the MVLSB format.
* extmod/modframebuf: Make FrameBuffer handle 16bit depth.Radomir Dopieralski2016-12-01
| | | | | | | | Rename FrameBuffer1 into FrameBuffer and make it handle different bit depths via a method table that has getpixel and setpixel. Currently supported formats are MVLSB (monochrome, vertical, LSB) and RGB565. Also add blit() and fill_rect() methods.
* all: Remove 'name' member from mp_obj_module_t struct.Damien George2016-09-22
| | | | One can instead lookup __name__ in the modules dict to get the value.
* extmod/framebuf: Add the xstep!=0 case to scroll() method.Radomir Dopieralski2016-09-05
| | | | | | | Adds horizontal scrolling. Right now, I'm just leaving the margins created by the scrolling as they were -- so they will repeat the edge of the framebuf. This is fast, and the user can always fill the margins themselves.
* extmod/modframebuf: Include font from stmhal directory explicitly.Damien George2016-09-04
| | | | | So that users of framebuf don't need to have stmhal directory in their path. (Eventually the font can be moved elsewhere.)
* extmod/modframebuf: Fix fill and scroll when height not divisible by 8.Radomir Dopieralski2016-09-02
| | | | | | | There was a bug in `framebuf1_fill` function, that makes it leave a few lines unfilled at the bottom if the height is not divisible by 8. A similar bug is fixed in the scroll method.
* extmod/modframebuf: Fix pixel accessor to return a 1-bit result.Damien George2016-08-27
|
* extmod: Add initial framebuf module.Damien George2016-04-12