Commit graph

3512 commits

Author SHA1 Message Date
614eded02a getenv: Make os.getenv() show a better error
.. when an associated value is not a quoted string.
This includes some cases where it would previously return an
integer, a CPython incompatibility.

However, it's an incompatible behavior change with circuitpython
since previously a number would be returned.

Closes: #9113

Signed-off-by: Jeff Epler <jepler@gmail.com>
2025-06-14 18:57:28 +02:00
Lucian Copeland
03c682ac4a Merge remote-tracking branch 'upstream/main' into esp-microros 2025-06-11 12:52:38 -04:00
lucky
b86fd45fa1
SleepMemory is supported on RP2040
SleepMemory was implemented on RP2040 in https://github.com/adafruit/circuitpython/pull/8015
2025-06-10 08:39:49 -07:00
Lucian Copeland
635c8b12d6 Requested fixes to exceptions, docs, config 2025-06-09 18:13:08 -04:00
James Bowman
5903b67ef1 Fix typo in doc signature of REGION 2025-06-06 16:55:03 -07:00
James Bowman
6e0c24f3c7 Support for REGION instruction of new bt820 2025-06-06 15:37:10 -07:00
Lucian Copeland
35431bca07 Fix missed pre-commit formatting 2025-06-05 11:46:53 -04:00
Lucian Copeland
1a2f0ec7a4 Pre-commit formatting 2025-05-31 17:19:39 -04:00
Lucian Copeland
fed07290e8 Add documentation 2025-05-31 16:27:24 -04:00
Lucian Copeland
1cccbc7301 Add reset support
Adds deinit and check for deinit functions across Node and Publisher, which call
corresponding microros `fini` functions to deconstruct ros objects and release
resources in the linux agent. Also adds rclcpy_reset, which deconstructs the ros
support and options objects. Adds alternative Node creation function to align
with rclpy.
2025-05-30 15:46:12 -04:00
Lucian Copeland
031ca37e23 Add agent information to init
Expands rclcpy init function to accept agent IP and port information, as well as
a new domain_id value. Contains minor changes to prepare for reset support.
2025-05-29 14:47:46 -04:00
Dan Halbert
7f1beb6c97 improve keypad doc re RP2350 E-9 erratum 2025-05-28 16:01:39 -04:00
Dan Halbert
a0c9188d0d Merge remote-tracking branch 'adafruit/9.2.x' into merge-from-9.2.x-2025-05-23 2025-05-23 09:05:14 -04:00
Dan Halbert
8da8e3115e I2CTargetRequest: do close in deinit 2025-05-21 16:45:58 -04:00
Dan Halbert
7d3dd30a6b i2ctarget: Add deinit() to I2CTargetRequest; remove close() 2025-05-21 13:00:37 -04:00
Scott Shawcroft
2601436eb2
Fix vectorio in group tracking
They have Group specific state so limit them to one group at a time.

Fixes #10226
2025-05-09 15:55:45 -07:00
Scott Shawcroft
a3506a79a3
Merge pull request #10318 from FoamyGuy/tilepalettemapper_tilegrid
Integrate TilePaletteMapper and TileGrid further
2025-05-09 11:08:11 -07:00
foamyguy
04b98ed71f fix pixel_shader property name, add tilegrid property and set tilegrid to None before it is bound, disallow TPM from being bound multiple times. 2025-05-09 09:56:34 -05:00
foamyguy
4fb7d44714 pixel_shader back to required on TileGrid. TPM init with no tilegrid or width/height, internal bind function is used to bind a TileGrid to a TilePaletteMapper when the TileGrid is init with or has pixel_shader set to a TPM 2025-05-08 18:08:56 -05:00
foamyguy
1b894c5e4e fix TileGrid type in docstring 2025-05-08 07:55:55 -05:00
foamyguy
eb7fc97fb2 fix docstring triple quote. 2025-05-07 18:59:19 -05:00
foamyguy
01da5c7c88 make TilePaletteMapper accept TileGrid as arg, make pixel_shader optional on TileGrid init, make TPM mark single tile dirty instead of whole TileGrid when mapping is changed. 2025-05-07 15:24:32 -05:00
Bernhard Bablok
f54b0d7384 added whitespace 2025-05-07 08:31:58 +02:00
Bernhard Bablok
28ee20abcb implement spectra6 support 2025-05-06 19:20:16 +02:00
Lucian Copeland
133c2e26ef Migrate to new board, fix data loss
Removes use of the m5stack_cardputer base definition and adds a ros-specific
m5stack_cardputer_ros version. Also repairs some lost changes intended for the
prior commit that were dropped in an accidental reset. Compiles, but has a
memory access error.
2025-05-06 12:58:20 -04:00
Lucian Copeland
0f07ab90e0 Initial shared-bindings implementation
Adds minimal implementations for the rclcpy module, including Node and
Publisher, with a placeholder int-only publish function for testing.
2025-05-06 12:58:20 -04:00
Bob Hammell
fd2500da6b Update formatting 2025-05-06 10:13:48 -04:00
Bob Hammell
f8406397fe Update end() docstring 2025-05-06 09:17:29 -04:00
Bob Hammell
fa565e5fa4
Update shared-bindings/audiomixer/MixerVoice.c
Co-authored-by: Mark <56205165+gamblor21@users.noreply.github.com>
2025-05-06 05:47:08 -04:00
Bob Hammell
bcda5a4d02
Update shared-bindings/audiomixer/MixerVoice.c
Co-authored-by: Mark <56205165+gamblor21@users.noreply.github.com>
2025-05-06 05:46:59 -04:00
Bob Hammell
2c80f37b87
Update shared-bindings/audiomixer/MixerVoice.c
Co-authored-by: Mark <56205165+gamblor21@users.noreply.github.com>
2025-05-06 05:46:51 -04:00
Bob Hammell
ba20540a1f
Update shared-bindings/audiomixer/MixerVoice.c
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2025-05-05 21:14:46 -04:00
Bob Hammell
1c7a0ccf2d Update docstring 2025-05-05 15:42:34 -04:00
Bob Hammell
209d5160ab Update docstring 2025-05-05 15:28:41 -04:00
Bob Hammell
8c12ec27b0 Add end() method to MixerVoice to allow samples to finish playing before ending looping 2025-05-05 05:57:42 -04:00
Cooper Dalrymple
e855e3e1ba Limit feedback range to 0.1 - 0.9 2025-05-01 10:54:10 -05:00
Cooper Dalrymple
ba81c6b1c4 Implement allpass filters. 2025-05-01 10:42:03 -05:00
Cooper Dalrymple
e729849fac Initial setup of phaser effect. 2025-05-01 08:15:43 -05:00
Scott Shawcroft
91cf8fb83d
Make collect the default 2025-04-24 14:59:07 -07:00
Scott Shawcroft
35ffb64a11
Apply suggestions from code review
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2025-04-24 12:29:57 -07:00
Scott Shawcroft
c340596580
Add selective collect to memory allocations
By selectively collecting an allocation, we can skip scanning many
allocations for pointers because we know up front they won't have
them. This helps a ton when large buffers are being used and memory is
slow (PSRAM). In one Fruit Jam example GC times drop from 80+ms to
~25ms. The example uses a number of bitmaps that are now no longer
scanned.
2025-04-22 14:07:00 -07:00
Scott Shawcroft
492f6e90e8
Merge pull request #10263 from tannewt/next_code_working_dir
Add working_directory for subsequent code file
2025-04-22 14:03:54 -07:00
Scott Shawcroft
3377765004
Add working_directory for subsequent code file
This allows subfolders to be treated similar to / for multiple
apps within different folders.

Also, fix up the internal current working directory so it doesn't
depend on volumes.

Fixes #9045 and fixes #8409.
2025-04-22 09:58:45 -07:00
Dan Halbert
7d65991f2c Merge remote-tracking branch 'adafruit/main' into wifi-power-management 2025-04-21 16:09:23 -04:00
Scott Shawcroft
b2c338bfd3
Merge pull request #10196 from gamblor21/audioeffect-reverb
Audio Effect Reverb
2025-04-21 11:19:48 -07:00
Scott Shawcroft
68e8136516
Merge pull request #10275 from dhalbert/dont-no-return-weak-functions
Don't NORETURN MP_WEAK functions
2025-04-21 11:12:56 -07:00
Dan Halbert
517fd0685e Don't NORETURN MP_WEAK functions 2025-04-20 22:26:05 -04:00
Dan Halbert
b1ce99a97d Merge branch 'main' of https://github.com/adafruit/circuitpython into wifi-power-management 2025-04-20 21:03:44 -04:00
gamblor21
3478eea1f0 Merge remote-tracking branch 'adafruit/main' into audioeffect-reverb 2025-04-20 09:25:38 -05:00
Dan Halbert
1ff3dff298 add wifi.radio.power_management et al 2025-04-19 21:06:19 -04:00