Commit graph

3306 commits

Author SHA1 Message Date
Keith Murray
a28e64ba32
Typo fix in RTC.c to fix rp2040 chip name 2025-01-09 18:24:35 -06:00
Dan Halbert
57cf054e26
Merge pull request #9912 from patricksurry/demux-keymatrix-delay
fix: Add delay to DemuxKeyMatrix along with columns_to_anodes and transpose options
2025-01-03 12:42:17 -05:00
Patrick Surry
029a29a770 fix failing test 2024-12-25 17:37:04 -05:00
Patrick Surry
fdb38ccc11 wip: include transpose and columns_to_anodes options 2024-12-25 13:29:47 -05:00
dcooperdalrymple
a5956eab82 Revert to original functionality when synthio is not supported. 2024-12-20 11:24:06 -06:00
Cooper Dalrymple
542c7c9c19 Implement level as BlockInput. 2024-12-19 20:33:42 -06:00
62f8923155 Partially revert "rgbmatrix: Avoid leaving an incompletely configured display bus" 2024-12-16 14:31:58 -06:00
413e577220
Merge branch 'main' into mixervoice-loop-property 2024-12-05 08:37:54 -06:00
Dan Halbert
2bb9fc4af0
Merge pull request #9865 from jepler/rgbmatrix-cleanup-failure
rgbmatrix: Avoid leaving an incompletely configured display bus
2024-12-04 22:21:05 -05:00
Scott Shawcroft
76a2a49d94
Merge pull request #9862 from jepler/audiomixer-nonstandard-setter
no need to support kwargs in a setter
2024-12-04 13:51:15 -08:00
79f34566bf
Merge branch 'main' into mixervoice-loop-property 2024-12-04 14:43:27 -06:00
bc691c21fb
Merge branch 'main' into rgbmatrix-cleanup-failure 2024-12-04 13:57:13 -06:00
Paul Warren
372759f728 shared-module/audiomixer: expose MixerVoice->loop property. 2024-12-04 19:41:57 +00:00
ed5c0bd465 rgbmatrix: Avoid leaving an incompletely configured display bus
I did not reproduce the exact problem reported; however, I reproduced
that a failure to construct an RGBMatrix object would leave CircuitPython
in an inconsistent state with a display bus registered but not working:

```py
>>> import rgbmatrix, board; rgbmatrix.RGBMatrix(width=64, bit_depth=1, rgb_pins=[], addr_pins=[], clock_pin=board.A0, latch_pin=board.A1, output_enable_pin=board.A2)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: The length of rgb_pins must be 6, 12, 18, 24, or 30
>>> import rgbmatrix, board; rgbmatrix.RGBMatrix(width=64, bit_depth=1, rgb_pins=[], addr_pins=[], clock_pin=board.A0, latch_pin=board.A1, output_enable_pin=board.A2)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: Too many display busses; forgot displayio.release_displays() ?
```

After the fix the second call also results in a ValueError, not a
RuntimeError, which is correct.

Closes #9674
2024-12-04 12:11:45 -06:00
dcooperdalrymple
412737d677 Removed unneeded kwarg handler in setters. 2024-12-04 11:45:31 -06:00
8a5bfc15b5 no need to support kwargs in a setter
Noticed during review of #9861
2024-12-04 10:08:19 -06:00
Scott Shawcroft
cfd4117d96
Merge pull request #9828 from JetForMe/main
Added basic Espressif PDM microphone support #7454
2024-12-02 13:18:13 -08:00
Dan Halbert
0cc0da0706 update usb_hid boot device documentation 2024-11-26 14:21:16 -05:00
Rick M
70b310b887 Added basic Espressif PDM microphone support #7454 2024-11-24 19:52:24 -08:00
Dan Halbert
d08cecfeb8 keypad: add doc that reset() can be used to determine keys held down at startup 2024-11-19 17:45:25 -05:00
Dan Halbert
7cf9608187 I2CTarget: remove unneeded self type checks; do deinit checks; board shrink 2024-11-14 15:01:12 -05:00
Dan Halbert
62e84c4b1f shared-bindings/i2ctarget/I2CTarget.c: add finaliser 2024-11-14 13:43:40 -05:00
RetiredWizard
5f1a331367 Typo in BusDisplay param documentation 2024-11-12 16:07:35 -05:00
Mark
92ef41083a
Merge pull request #9756 from jepler/synthio-blockbiquad
synthio: Add a form of biquad filter that uses BlockInputs
2024-11-10 17:43:58 -06:00
411ba7af3d add notch filter to docs 2024-11-10 14:36:07 -06:00
de9b0b6b1b
Merge pull request #9772 from relic-se/audiofilters_filterlist 2024-11-10 09:13:34 -06:00
c06e6ee03e BlockBiquad: Use Q as argument name
Synthesizer.lpf takes `Q` as the argument name, use the same convention
here.
2024-11-07 13:59:23 -06:00
6ff3860ec8 Synthesizer: Match documentation to implementation.
The docstrings incorrectly gave the name of the argument; the code
only accepts the argument name "Q":
```
     { MP_QSTR_Q, MP_ARG_OBJ, {.u_obj = MP_OBJ_NULL } },
```
2024-11-07 13:58:18 -06:00
dcooperdalrymple
941e1228f2 Rename filters back to filter and support individual Biquad object and tuple of Biquad objects. 2024-11-07 13:03:59 -06:00
Cooper Dalrymple
dfe9836e35 Update loop docstrings to demonstrate BlockInput implementation. 2024-11-04 11:25:51 -06:00
Cooper Dalrymple
ce3e83d474 Update ring_frequency and ring_bend with MP_ARG_KW_ONLY. 2024-11-04 11:13:04 -06:00
dcooperdalrymple
e2a52afa93 Add support for synthio.BlockInput on synthio.Note.waveform_loop_start, synthio.Note.waveform_loop_end, synthio.Note.ring_waveform_loop_start, and synthio.Note.ring_waveform_loop_end. 2024-11-03 20:30:06 -06:00
dcooperdalrymple
ce12d90160 Fix default value of synthio.Note.amplitude in documentation. 2024-11-03 20:00:35 -06:00
dcooperdalrymple
6badb92de8 Add support for list of Biquad objects within audiofilters.Filter. 2024-10-29 12:52:27 -05:00
68fac9512a
Merge pull request #9766 from jepler/vectorio-testing 2024-10-28 20:14:04 -05:00
589c7f6a34 unix: enable vectorio in coverage build 2024-10-28 08:07:35 -05:00
21ebcad778 Add notch filter to BlockBiquad 2024-10-24 21:02:40 -05:00
e891bce129 Rename FilterType -> FilterMode 2024-10-24 20:53:31 -05:00
b03d396cfa Fix doc build error 2024-10-24 18:34:52 -05:00
Dan Halbert
7d48b0161a document different kinds of _bleio 2024-10-24 16:02:24 -04:00
2c7ae417d8 fix check-stubs errors 2024-10-24 13:33:40 -05:00
1fef6b4105 BlockBiquad: improve docs & make parameter names match old filter methods 2024-10-24 11:40:13 -05:00
ce0c1c77a4 Add BlockBiquad
BlockBiquad takes kind, f0 (center frequency) & Q (sharpness)
block type arguments and calculates the actual filter coefficients
every frame.

This allows the filter characteristics f0 and Q to be changed dynamically
from LFOs & arithmetic blocks.

A new manual test demonstrates this on a host computer, playing a simple
tone that is dynamically filtered.
2024-10-24 11:39:23 -05:00
Dan Halbert
38779cd668
Merge pull request #9744 from dcooperdalrymple/audiofilters
Add Audio effects: Filters
2024-10-23 14:54:24 -04:00
Dan Halbert
fb9a16d4f1 shared-bindings/wifi/Radio.c: fix default values for start_dhcp_client args 2024-10-23 09:25:54 -04:00
dcooperdalrymple
8503318f4a Add Optional to synthio.Biquad in documentation to allow for None value. 2024-10-22 21:41:37 -05:00
dcooperdalrymple
1bf400d2dd Rename biquad property to filter. 2024-10-22 12:08:33 -05:00
Cooper Dalrymple
5246053563 Initial structure for biquad filter effect. 2024-10-22 09:17:58 -05:00
Scott Shawcroft
c50c7954b0
Merge pull request #9732 from dhalbert/pair-improvements
improve _bleio.Connection.bind() doc, validation, and error messages
2024-10-21 10:30:29 -07:00
Dan Halbert
ac0904e4bb improve _bleio.Connection.bind() doc, validation, and error messages 2024-10-18 19:29:54 -04:00