Wykres commitów

2629 Commity (patch-picographics-generic)

Autor SHA1 Wiadomość Data
Phil Howard 04c88c3d3f PicoGraphics: Add a GENERIC display type.
Additionally add support for WIDTH/HEIGHT, make the "display"
argument not required, and make "DISPLAY_GENERIC" the default.

display = PicoGraphics()

Will now create a 320x240 pixel RGB565 generic surface by default.
2025-07-23 14:18:34 +01:00
Philip Howard d7d7754af5
Merge pull request #1083 from pimoroni/patch-vl53l5cx
VL53L5CX: Add change_addr to constructor for #1063.
2025-07-14 12:28:00 +01:00
Philip Howard 1946e91508
Merge pull request #1082 from pimoroni/patch-vl53l1x
VL53L1X: bswap registers and values for #1069.
2025-07-14 12:27:24 +01:00
Phil Howard db9bdff023 VL53L1X: bswap registers and values for #1069.
Fix a regression introduced in 3e56dfb14c.
2025-07-01 13:34:51 +01:00
Phil Howard a1b0a40cff VL53L5CX: Add change_addr to constructor for #1063. 2025-07-01 13:30:49 +01:00
Philip Howard 3f1b3c82f5
Merge pull request #1085 from MichaelBell/fix-lte-restart
LTE: Make stop and restart work.
2025-06-30 14:37:08 +01:00
Philip Howard 1c15374d76
Merge pull request #1086 from MichaelBell/fix-text-wrap
Fix skipped character after line wrap
2025-06-25 21:59:06 +01:00
Mike Bell 1919482eb1 LTE: Make stop and restart work. 2025-06-25 18:33:34 +01:00
Mike Bell 4b62aa0405 Fix skipped character after line wrap 2025-06-25 18:32:56 +01:00
Philip Howard d5439714b5
Merge pull request #1087 from pimoroni/patch-python-linting
QA: Fix Python linting
2025-06-25 10:18:55 +01:00
Phil Howard 959e240544 QA: Fix RET503 (Missing explicit return) exceptions. 2025-06-25 09:57:15 +01:00
Phil Howard c1e091ac8a QA: Pin ruff to v0.12.0. 2025-06-25 09:56:11 +01:00
Philip Howard 8a663768ec
Merge pull request #1081 from pimoroni/patch-blocking-updates
PicoGraphics: Make blocking updates interruptable.
2025-05-28 16:18:08 +01:00
Phil Howard 62b3c4f97e PicoGraphics: Make blocking updates interruptable. 2025-05-28 15:56:18 +01:00
Philip Howard dbd9678221
Merge pull request #975 from mariobodemann/main
fix: initialize the uninitialized
2025-05-28 15:22:09 +01:00
Philip Howard d2c86c22dd
Merge pull request #1051 from ahnlak/measure-text-fix
Don't include the spacing after the final letter when measuring bitmap text
2025-05-28 15:17:38 +01:00
Philip Howard cfee94a69d
Merge pull request #1077 from pimoroni/ci/rp2350
CI: Add Pico 2 and Pico 2 W builds.
2025-05-27 14:06:34 +01:00
Philip Howard dc93a19848
Merge pull request #1078 from pimoroni/patch-af-unicode
PicoVector: Fix find_glyph char to uint16_t.
2025-05-22 16:36:02 +01:00
Phil Howard fd21d61bea PicoVector: Fix find_glyph char to uint16_t.
Allow find_glyph to find 16-bit unicode codepoints (icons, yay!).
2025-05-22 16:00:59 +01:00
Phil Howard db65c4ba73 Examples: Exclude encoder wheel clock example from RP2350 builds.
Borrows a check against the hardware_rtc target from Pico Examples.
2025-05-21 09:51:44 +01:00
Phil Howard 6e73375cd4 Examples: Remove unused hardware_rtc from Inky Frame examples. 2025-05-21 09:51:03 +01:00
Phil Howard 4bbbab86f7 CI: Add Pico 2 and Pico 2 W builds. 2025-05-20 14:12:07 +01:00
Philip Howard 21ec6a23ba
Merge pull request #1019 from pimoroni/feature/picovector2-and-layers
PicoVector Enhancements & PicoGraphics Layers
2025-05-12 13:54:50 +01:00
Phil Howard 841253437a PicoGraphics: Make Inky block by default as intended. 2025-05-09 17:11:33 +01:00
Phil Howard fba0f1c962 PicoVector: Add tracked memory alloc, track the node buffer.
With a low GC threshold the node buffer was being collected (despite guards against this)
and causing further drawing operations to be corrupted.

Add a new tracked malloc method and use it for node buffers and font data.

Tweak pp_poly_add_path to accept a point count, avoiding many successive rellocs when
dealing with a known quantity of points (copying from an af_glyph_t.)
2025-05-09 17:11:27 +01:00
Phil Howard 8117066bb5 PicoVector: Fix bug in RGB888 blend.
Move the source pen out for a tiny performance boost.
2025-04-25 17:55:30 +01:00
ihaanaho 7a894dc512 PicoVector: Add support for utf-8 characters. 2025-04-25 17:43:13 +01:00
Phil Howard a2e8127f57 PimoroniBus: SPIBus fix unused pin arguments.
Fixes #1074.
2025-04-25 17:39:18 +01:00
Phil Howard 75f15c6a66 BME690: Add MP_ERROR_TEXT() around errors. 2025-04-25 17:39:18 +01:00
Phil Howard a5d96397fc MicroPython: Replace MICROPY_HW_PIN_RESERVED with hal function. 2025-04-25 17:39:18 +01:00
Phil Howard d6b42b5abd CI: Bump MicroPython to v1.25.0. 2025-04-25 17:39:07 +01:00
Phil Howard b8d0f36caf BME69X: Add C driver and MicroPython bindings.
This is just a straight copy and paste of BME68X, dropping in the BME69X
Sensor API and wishing upon a star that it works.
2025-04-25 17:33:53 +01:00
Mike Bell eafb2db34b PicoVector: Set optimization flags. 2025-04-25 17:33:53 +01:00
Phil Howard c7776ee4ae Plasma: Make PIO and pin args optional. 2025-04-25 17:33:53 +01:00
Phil Howard cd2486b3d4 Plasma: Add is_busy method. 2025-04-25 17:33:53 +01:00
Phil Howard 0a4801da70 Plasma: Expose non-blocking update to MicroPython. 2025-04-25 17:33:53 +01:00
Phil Howard a03ed44db1 PimoroniBus: Support machine.Pin. 2025-04-25 17:33:53 +01:00
Phil Howard 6845972ffe PimoroniBus: Switch to mp_obj_malloc. 2025-04-25 17:33:53 +01:00
Phil Howard 9c2775228d PimoroniBus: Clean up print function.
Use mp_printf to avoid fragmented output and converion into mp types.
2025-04-25 17:33:53 +01:00
Phil Howard 5ba5b29d39 MicroPython: Switch everything else to mp_obj_malloc. 2025-04-25 17:33:53 +01:00
Phil Howard b12d0aa8ab plasma: Support pins given as machine.Pin obj. 2025-04-25 17:33:53 +01:00
Phil Howard b6f9027090 plasma: Drop pin definitions from C module.
Remove pin definitions in anticipation of them moving to pins.csv.

Eg:

from plasma2040 import BUTTON_A
machine.Pin(BUTTON_A)

Should become:

machine.Pin("BUTTON_A")
2025-04-25 17:33:53 +01:00
Phil Howard 613e3cdd38 Pimoroni I2C: Switch to mp_obj_malloc. 2025-04-25 17:33:53 +01:00
Phil Howard 26a8ce40f5 Pimoroni I2C: Support machine.Pin args. 2025-04-25 17:33:53 +01:00
Mike Bell d84a1e3470 PicoVector: Faster polygon rendering. 2025-04-25 17:33:53 +01:00
Phil Howard 12228c4036 ulab: Bump from 6.5.2 to 6.7.3. 2025-04-25 17:33:53 +01:00
Phil Howard cd2e412ef4 MicroPython: Add MP_ERROR_TEXT() for mp_raise_msg() calls. 2025-04-25 17:33:53 +01:00
Phil Howard 5ed7913a2c MicroPython: Fix errors reporting an errno. 2025-04-25 17:33:53 +01:00
Phil Howard 5aaf5d3608 MicroPython: Add MP_ERROR_TEXT() around errors.
This is required for MicroPython error text compression which is
going to be enabled by default for RP2 builds.

We have a lot of error messages, so the potential flash gain here
is worth the effort of making this work.
2025-04-25 17:33:53 +01:00
Phil Howard a22c966ddd CI: Remove Unicorn boards.
These have moved to: https://github.com/pimoroni/unicorn
2025-04-25 17:33:53 +01:00