summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/hal/inc/stm32f4xx_hal_eth.h
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2025-05-26 00:17:56 +1000
committerDamien George <damien@micropython.org>2025-06-04 02:40:45 +1000
commitb15348415e9d5ad2a978ca38a8da356faee88e91 (patch)
tree0ee8d030b11964f8218a46c60addf91024da144e /stmhal/hal/inc/stm32f4xx_hal_eth.h
parentd5f2fc239af2d69407170fa290ba6752c8f1790c (diff)
downloadmicropython-master.tar.gz
micropython-master.zip
extmod/modframebuf: Add support for blit'ing read-only data.HEADmaster
Currently the `FrameBuffer.blit(buf, x, y)` method requires the `buf` argument to be another `FrameBuffer`, which is quite restrictive because it doesn't allow blit'ing read-only memory/data. This commit extends `blit()` to allow the `buf` argument to be a tuple or list of the form: (buffer, width, height, format[, stride]) where `buffer` can be anything with the buffer protocol and may be read-only, eg `bytes`. Also, the palette argument to `blit()` may be of the same form. The form of this tuple/list was chosen to be the same as the signature of the `FrameBuffer` constructor (that saves quite a bit of code size doing it that way). Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'stmhal/hal/inc/stm32f4xx_hal_eth.h')
0 files changed, 0 insertions, 0 deletions