Phil Howard
cd2e412ef4
MicroPython: Add MP_ERROR_TEXT() for mp_raise_msg() calls.
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
517f8ae1cd
global: Remove the STATIC macro.
...
Reflect the changes proposed in micropython/micropython#13763 .
2024-06-03 13:44:23 +01:00
Phil Howard
47e3aed88f
MicroPython: Switch to mp_obj_malloc_with_finaliser.
2024-06-03 11:40:29 +01:00
Phil Howard
e7a4ee0282
VL53L5CX: Alloc results data & config in MPY gc_heap.
...
RAM constraints on Pico W were causing a hardlock. This change allocates the results struct, config and motion config on gc_heap to relieve system RAM pressure.
Fixes #448
2022-07-22 10:01:34 +01:00
Phil Howard
8d638e2744
MicroPython: Drop redundant Print. Saves 4K.
2022-06-13 18:59:51 +01:00
Phil Howard
bc0390b86c
MicroPython: Use placement new to alloc classes on GC_HEAP
2022-05-23 15:34:49 +01:00
Phil Howard
1feefde00c
MicroPython: Promote machine.I2C() to PimoroniI2C.
...
Create a new PimoroniI2C object internally if a "machine.I2C()" object is supplied in constructors.
2022-05-18 13:20:33 +01:00
Phil Howard
c2256c481b
VL53L5CX: Autoload firmware in MicroPython bindings.
2022-05-17 14:05:32 +01:00
Phil Howard
aeceefea59
VL53L5CX: Sideload firmware from user-supplied .bin
2022-05-17 12:33:07 +01:00
Phil Howard
3afead416a
VL53L5CX: Bringup Motion and add example.
2022-04-28 14:38:34 +01:00
Phil Howard
70637d0f0e
VL53L5CX: MicroPython error handling and attrtuple data.
2022-04-20 19:19:40 +01:00
Phil Howard
fcd4914cbb
VL53L5CX: MicroPython bindings.
2022-04-20 14:33:00 +01:00