Wykres commitów

776 Commity (patch-python-linting)

Autor SHA1 Wiadomość Data
Phil Howard be5315dab3 PicoVector: Support float types in MicroPython bindings. 2025-04-25 17:33:52 +01:00
Phil Howard ede2bad4f3 PicoVector: Remove malloc from MicroPython bindings. 2025-04-25 17:33:52 +01:00
Phil Howard d188afcb11 PicoGraphics: Add get_clip. 2025-04-25 17:33:52 +01:00
Phil Howard 568f329efc PicoVector: Remove alright_fonts.cpp from cmake. 2025-04-25 17:33:52 +01:00
Phil Howard 116df431fb PicoVector: Break things until they work. 2025-04-25 17:33:52 +01:00
Phil Howard 9c0e696230 PicoVector: alright-fonts bringup. 2025-04-25 17:33:52 +01:00
Phil Howard a7a98ae3aa PicoVector: Suppress errors.
Ignore sign compare and narrowing conversion errors in pretty-poly.h.
2025-04-25 17:33:52 +01:00
Phil Howard d19971d7e0 PicoVector: Rewrite MicroPython bindings. 2025-04-25 17:33:52 +01:00
Phil Howard 354c95ca61 PicoGraphics: Layers.
Add preliminary support for multiple layered drawing surfaces.

Allows, for example, static content to be loaded into one layer and
remain unmodified while the above layer contains animations.

Particularly useful for drawing PNG or JPEG UI elements which are
then overdrawn with text or animated elements, without paying the
cost of loading/decoding every frame.
2025-04-25 17:33:52 +01:00
Phil Howard cfa3d1d90d SCD4X: Add calibration commands for #1056. 2025-02-21 10:29:38 +00:00
Philip Howard aa1e3f18b7
Merge pull request #1029 from pimoroni/feature/scd4x-low-power
SCD4X: API bump and possible low power support
2025-01-15 11:59:00 +00:00
Phil Howard cae1b1381d Inky Frame: Remove MicroPython build and examples.
Inky Frame has a new home at: https://github.com/pimoroni/inky-frame
2024-12-03 11:49:28 +00:00
Phil Howard 2b7b9efac7 Wakeup: Remove runtime init hook. 2024-12-03 11:36:36 +00:00
Phil Howard 030b59c0d1 pcf85063a: Set PICO_INCLUDE_RTC_DATETIME for MicroPython. 2024-12-03 11:36:24 +00:00
Phil Howard 185bea2065 SCD4X: Support low power periodic measurements. 2024-11-18 10:58:16 +00:00
Phil Howard b79814cae3 SCD4X: scd4x_get_data_ready_status to scd4x_get_data_ready_flag.
The function name and behaviour has changed, moving the bitwise check
into the API and making it an implementation detail.
2024-11-18 10:43:00 +00:00
Phil Howard a05a225262 Wakeup: Move wakeup pin assert and latch out of patches. 2024-10-31 11:19:22 +00:00
Phil Howard 6cfcd80037 PPP: This old chestnut. 2024-10-31 11:19:22 +00:00
Phil Howard d24c2225ca CI: PPP-enabled Pico build. 2024-10-31 11:19:11 +00:00
Phil Howard d4ededab35 Wakeup: Port wakeup runtime functionality to SDK 2.0.0. 2024-10-31 09:34:41 +00:00
Phil Howard 078f3e6a39 PicoGraphics: Support for Explorer. 2024-10-31 09:34:41 +00:00
Tobias 6d6a1e2b7d Allow spritesheets for PenRGB565 2024-10-24 17:45:35 +02:00
Phil Howard 6376282c47 MicroPython: Drop Pico Wireless support.
With PPP support added to MicroPython this would be better
handled by creating a PPP-compatible firmware for Pico Wireless
and using the PPP module instead... I think.
2024-10-02 10:21:48 +01:00
Phil Howard 2f5b47ac12 Pico Wireless: Fixup for GCC 13.x.
These changes are giving me "how did this ever work?" vibes.
2024-10-02 10:14:31 +01:00
Hel Gibbons d06956dd8d
Merge pull request #973 from pimoroni/examples/pico-display-2-8
Pico Display 2.8": Update examples
2024-08-01 14:42:27 +01:00
Hel Gibbons 34d8714398
Picographics: Update README.md
Text rotation now works with bitmap fonts :)
2024-07-30 14:32:04 +01:00
Hel Gibbons 24d6de8f1e Docs: Update readmes 2024-07-16 15:25:28 +01:00
Philip Howard 3fefcb8609
Merge pull request #968 from pimoroni/patch-remove-exceptions-patch
Move nano specs hack into our module cmake files.
2024-07-04 11:08:11 +01:00
Philip Howard a8cc54e89d
Merge pull request #955 from pimoroni/docs/rv3028
Documentation: RV3028
2024-07-03 16:44:59 +01:00
Phil Howard e0d9510769 Move nano specs hack into our module cmake files.
We've been maintaining a downstream patch to disable C++ exception
handling, which gives us some headroom before our builds get too big and
overwrite themselves at runtime.

Forgetting to apply this patch is a constant source of debugging
frustration. It turns out it can just be added to our USER_C_MODULES cmake
files instead, where it will implicitly be included when building against
our modules.
2024-07-03 16:18:46 +01:00
thirdr a7e48edff5 RV3028: MicroPython docs 2024-06-05 10:25:38 +01:00
Phil Howard 392890e99b RP_PICO_USB: New USB-enabled version of the stock Pico firmware.
⚠️ Warning: flash/firmware split is now 1Mb/1Mb to accomodate USB libs.

BACK UP YOUR PICO before flashing this build. It *will* trash your filesystem.

* Add new RP_PICO_USB board
* Use commit 932f76c6ba64c5a3e68de3324556d9979f09303b for 932f76c6ba
2024-06-04 19:55:24 +01:00
Phil Howard ccd00f6289 Ulab: Bump to 6.5.2 for MicroPython 1.23.0 compatibility. 2024-06-04 19:54:52 +01:00
Phil Howard 517f8ae1cd global: Remove the STATIC macro.
Reflect the changes proposed in micropython/micropython#13763.
2024-06-03 13:44:23 +01:00
Phil Howard 84cabe077d MicroPython: Switch QRCode to micropython/edge branch.
Includes fixes for:

* "mp_obj_malloc_with_finaliser" replacing "m_new_obj_with_finaliser"
* "STATIC" macro dropped in favour of "static"
2024-06-03 11:40:29 +01:00
Phil Howard 47e3aed88f MicroPython: Switch to mp_obj_malloc_with_finaliser. 2024-06-03 11:40:29 +01:00
Philip Howard 0b133c750e
Merge pull request #931 from pimoroni/driver/as7343
AS7343: New driver for the 14 channel spectrometer
2024-06-03 11:34:45 +01:00
Scott Dutton b3a0c4fb9d
Add link to png 2024-05-21 11:13:42 +01:00
coadkins 37c4d22527
Add PNG File subsection to Pico Graphics documentation
I added a subsection for PNG File support in Pico Graphics by copying and adapting the text from these release notes - https://github.com/pimoroni/pimoroni-pico/releases/tag/v1.20.4 - about the PNGdec functionality.
2024-05-08 11:22:07 -04:00
Connor Linfoot 32c10482d9
Add support for 96x48 display to Interstate75 (#867)
* Add DISPLAY_INTERSTATE75_96X48
2024-04-17 13:41:02 +01:00
Phil Howard 6fcbaf5616 AS7343: MicroPython bindings. 2024-04-15 11:53:34 +01:00
Phil Howard 8fc8a8ee06 CI: Rename tiny2040 to tiny2040_8mb.
It was not super obvious that this build is specific to the 8mb
version of Tiny 2040.
2024-04-11 17:01:21 +01:00
Philip Howard 9edcdcc126
Merge pull request #919 from pimoroni/patch-pngdec-palette-offset
PNGdec: Add support for palette offsets and greyscale copy mode
2024-04-11 16:32:08 +01:00
ZodiusInfuser a90c31fb3b More explanation of encoder capture 2024-04-03 14:29:17 +01:00
Phil Howard a537672dd4 PNGdec: Don't convert greys if mode=COPY. 2024-03-28 15:35:05 +00:00
Phil Howard d34e692f51 PNGdec: Don't add palette_offset twice. 2024-03-28 15:30:32 +00:00
Phil Howard 27b913124c PNGdec: Add copy support and offset to greyscale. 2024-03-28 15:04:06 +00:00
Phil Howard c7b788cd1d PNGdec: Add palette offset arg.
Allow index colour PNGs to be copied with a palette offset.

EG: a 4bit PNG could be offset 16 times for as many colour variations.
2024-03-28 15:04:02 +00:00
Phil Howard 19fa8864cf PNGdec: Add greyscale support.
Add an optional MODE_PEN to draw the PNG in the current pen colour.

Best used with, but not limited to, 1bit PNG images.
2024-03-27 12:49:09 +00:00
Phil Howard 10221066dd PNGDEC: Support for 1bpp. 2024-02-27 13:31:52 +00:00
Skyler Mansfield b23a71b889 JPEGDEC: Backport width/height changes from pngdec.
Open JPEG file or stream to read width/height before decode.
2024-01-23 16:18:13 +00:00
Philip Howard 392d75b00d
Merge pull request #878 from pimoroni/ci/tooling
CI: Move some workflow steps into ci/micropython.sh
2024-01-19 10:32:20 +00:00
Phil Howard d45daef654 MicroPython: Switch from MICROPY_EVENT_POLL_HOOK to mp_event_handle_nowait().
Note: Unsure if mp_event_handle_nowait() is the right answer in all cases,
but this seems to be what we want in our blocking loops.
2024-01-08 10:33:28 +00:00
Phil Howard 1b3d9d9fb2 Pimoroni I2C: Update to use modmachine.h consolidated header. 2024-01-08 10:15:28 +00:00
Hel Gibbons a60c856ea8 update picoscroll docs 2023-11-09 12:53:03 +00:00
Phil Howard 4b3e83f2ff JPEGDEC: Treat byte arrays as raw JPEG data for #435. 2023-09-29 09:18:55 +01:00
Phil Howard ae7e6e8c6c PicoVector: Add a bounds method for polygon bounds. 2023-09-12 13:18:33 +01:00
Mike Bell 841c141ebf Interpolators for line segment, and faster transforms 2023-09-10 13:22:21 +01:00
Philip Howard a334899b61
Merge pull request #783 from pimoroni/feature/ppaf
PicoVector.
2023-09-06 15:15:30 +01:00
Phil Howard 231ceb70f2 PicoVector: Add basic polygon center of mass function. 2023-09-06 10:12:08 +01:00
Phil Howard c9fd68ec58 PNGDEC: Remove PNG RAM debug text. 2023-09-06 09:39:28 +01:00
Pete Favelle 2f44e85431 Added some PicoGraphics based MP examples for the PicoUnicorn 2023-09-04 14:31:32 +01:00
Phil Howard 5a92a9c735 PNGDEC: Support for 2bpp indexed PNGs, fix open_RAM. 2023-09-04 13:55:15 +01:00
Phil Howard 591058fb12 PicoVector: Store pointer to PP mem. 2023-08-22 09:32:28 +01:00
Phil Howard cfe8b3c096 PicoVector: Text rotation support. 2023-08-22 09:32:28 +01:00
Phil Howard 9d0501a43c PicoVector: Polygon iter interface. 2023-08-22 09:32:28 +01:00
Phil Howard 7c5ebfce8c PicoVector: Matrix transforms and polygon type. 2023-08-22 09:32:28 +01:00
Phil Howard 61c9d7e9b6 PicoVector: Experimental matrix transforms. 2023-08-22 09:32:28 +01:00
Phil Howard c7d9fe411a PicoVector: Bugfixes and font/aa options. 2023-08-22 09:32:28 +01:00
Phil Howard 9e430fd68c PicoVector: Better separation of concerns, add Alright Fonts support. 2023-08-22 09:32:28 +01:00
Phil Howard c9a8d5ef49 PicoVector: Move polygon drawing to a new home. 2023-08-22 09:32:28 +01:00
Phil Howard e8dba75aff PicoGraphics: Use std:: prefix, fix some type issues. 2023-08-22 09:32:28 +01:00
Phil Howard cc7219b44a PicoGraphics: Experimental Pretty Poly bring-up. 2023-08-22 09:32:28 +01:00
Philip Howard 57042bfed3
Merge pull request #821 from pimoroni/dv_stick_minimal
PicoVision: Minimal changes required to support PV specific drivers/pen types.
2023-08-22 09:31:30 +01:00
Philip Howard b82d16e8ae
Merge pull request #817 from pimoroni/feature/pico-explorer-pins
PicoGraphics: Add Pico W Explorer SPI pins.
2023-08-15 15:52:51 +01:00
Mike Bell be943bd5a0 Fix build 2023-08-14 12:40:15 +01:00
Mike Bell f4b8bc9025 Fix Micropython build 2023-08-14 12:40:15 +01:00
Phil Howard 4ad6df5cc3 PNGDEC: Rotation support. 2023-08-03 16:30:25 +01:00
Phil Howard b368950f02 PicoGraphics: Add Pico W Explorer SPI pins. 2023-07-27 17:14:01 +01:00
Phil Howard 5ec6903f7f PNGDEC: Clean up API, add get_palette and index copy. 2023-07-21 13:23:08 +01:00
Phil Howard 6db7a9a0a6 PNGDEC: Add crude cropping/scaling. 2023-07-21 10:19:31 +01:00
Phil Howard 1630ddbbb2 PicoGraphics: Add support for PNG decoding. 2023-07-19 16:04:05 +01:00
LionsPhil a0fe954b7c Document PicoGraphics fixed_width
(VSCode also stubbornly fixed some trailing space.)

Closes #765.
2023-06-22 23:58:03 +01:00
Phil Howard b0d63ef777 PicoGraphics: Add MicroPython support for custom font data. 2023-06-16 11:25:17 +01:00
ZodiusInfuser aabe789f21 Initial setup for StellarUnicorn build 2023-05-30 10:32:25 +01:00
ZodiusInfuser bd4238945d Fixed case of some CosmicUnicorn variables 2023-05-30 10:25:33 +01:00
ZodiusInfuser ae252fbc6e Removed comma in *Unicorn readme code 2023-05-30 10:24:28 +01:00
Phil Howard fba7b53c36 PicoGraphics: Fixed-width bitmap font support. 2023-05-15 11:03:39 +01:00
Philip Howard 8648196cc2
Merge pull request #774 from pimoroni/breakout_encoder_wheel
Support for RGB Encoder Wheel Breakout
2023-05-12 11:58:15 +01:00
ZodiusInfuser d00185d831 Added C & MP interrupt example 2023-05-10 16:57:38 +01:00
ZodiusInfuser 0120975b3c Readme improvements 2023-05-10 16:08:51 +01:00
ZodiusInfuser 12e38c1157 Implemented GPIO MP support for Encoder wheel 2023-05-10 14:54:32 +01:00
Phil Howard 05cad0c157 Ulab: Bump to 6.0.12. 2023-05-10 13:03:47 +01:00
ZodiusInfuser 8966cbf348 Added C++ readme 2023-05-04 14:59:01 +01:00
ZodiusInfuser 5619274d3d Added MP readme 2023-05-04 14:10:39 +01:00
Phil Howard b30d9ca554 CI: Switch py modules from cmake hacks to manifest.py.
A long overdue fix. Uses board-specific manifest.py files to freeze Python modules, instead of polluting ports/rp2/modules.
2023-05-03 18:04:55 +01:00
ZodiusInfuser e0a405739c Fix namespace issue 2023-05-03 17:41:18 +01:00
ZodiusInfuser 1cfae8b5f8 More work on encoder wheel C++, adding reset to ioe 2023-05-02 22:55:19 +01:00
ZodiusInfuser 387df3bd12 Progress on encoder wheel C++ and MP 2023-05-02 17:31:11 +01:00
ZodiusInfuser d4d6cd1936 Progress on encoder wheel C++ and MP 2023-05-02 16:19:22 +01:00