Commit graph

1675 commits

Author SHA1 Message Date
dcooperdalrymple
c7e87cfae3 Remove unnecessary double buffer on filter_buffer. 2024-10-22 21:33:28 -05:00
dcooperdalrymple
e7c02bd561 Biquad filter processing. 2024-10-22 12:09:28 -05:00
dcooperdalrymple
db540c67ec Avoid processing sample if filter is None. 2024-10-22 12:09:07 -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
32c3d049c0 adafruit_pixelbuf: Allow the buffer to be written in _transmit
This permits modifying the brightness of TM1814 strips at runtime.
2024-10-18 13:01:24 -05:00
Scott Shawcroft
57fa43a4d0
Merge pull request #9640 from gamblor21/audio_effects
Add Audio effects
2024-10-15 10:47:42 -07:00
gamblor21
e3228d00a9 Added frequency shift on echo option from @dcooperdalrymple 2024-10-14 10:00:08 -05:00
Scott Shawcroft
6ca0380d26
Merge pull request #9672 from samblenny/usb-device
Improve usb.core.Device exception handling and reporting
2024-10-08 13:52:52 -07:00
Sola85
af7d8b7d94
epaperdisplay: fix delay when two_byte_sequence_length is true 2024-10-08 09:03:08 +02:00
sam blenny
08bc84b4f4 revert usb.core.Device error message changes
This puts the error messages back like they were, leaving the null
pointer dereference fixes in place.
2024-10-07 17:50:22 +00:00
gamblor21
48e1327c0e Fix about incorrectly recalculating delay 2024-10-06 20:47:13 -05:00
gamblor21
0fa3cd8632 Removed utils.h which was not required 2024-10-05 18:03:03 -05:00
gamblor21
d2e5173e2d Merge remote-tracking branch 'origin/audio_effects' into audio_effects 2024-10-05 10:16:01 -05:00
gamblor21
cca8d00f6b Doc and error messaging changes 2024-10-05 10:08:42 -05:00
Mark
af171dab84
Merge branch 'main' into audio_effects 2024-10-03 20:38:49 -05:00
gamblor21
f5a8e3d138 Calculate current delay for a BlockInput correctly 2024-10-03 20:13:58 -05:00
gamblor21
af9321777d Documentation 2024-10-01 19:44:55 -05:00
gamblor21
3c204608f6 Fixed incorrectly updating sample remaining pointer 2024-09-30 21:23:45 -05:00
gamblor21
00a149a2c1 More comments and cleanup 2024-09-30 14:04:43 -05:00
gamblor21
70c0bf9254 8 bit unsigned samples working 2024-09-30 10:25:59 -05:00
sam blenny
6cc41f0bf9 return early after raising USBError
This commit makes sure that functions in usb.core.Device return as
soon as they raise a MicroPython exception rather than continuing
on with whatever code would normally run. This will hopefully help
to avoid things like dereferencing null pointers.
2024-09-30 01:18:18 +00:00
Dan Halbert
42db18ee51 merge from main 2024-09-29 17:00:02 -04:00
sam blenny
154ef2e36d Change USB NULL errors to short strings
shared-module/usb/core/Device.c had several spots where it would
raise a MicroPython exception with a NULL argument. That made it
very difficult for CircuitPython code to attempt to recover from
fault conditions caused by quirky USB device behavior. This adds
short error strings to distinguish the different types of faults.
2024-09-29 18:20:11 +00:00
gamblor21
bbd3e01665 Comments and couple tweaks 2024-09-28 11:22:05 -05:00
gamblor21
a851f102fe Error message for sample note matching made consistent 2024-09-28 09:38:20 -05:00
Dan Halbert
dc52fe3062
Update KeyMatrix.c: remove trailing spaces 2024-09-26 18:42:35 -04:00
Sean D. Cline
447cd1e02b Add a delay to KeyMatrix scan.
This gives the matrix columns time to discharge and settle down to
their resting state.
2024-09-26 09:27:33 -04:00
gamblor21
98b360a436 Double buffering 2024-09-24 21:25:43 -05:00
gamblor21
01a220af0f Started simplifying getbuffer 2024-09-23 21:24:30 -05:00
Eric Lammerts
ca53f8b390 Fix infinite loop when there's a partial frame at the end of the file. 2024-09-23 16:46:20 -04:00
gamblor21
477480705a Delay and Decay to BlockInput 2024-09-22 13:12:17 -05:00
gamblor21
d88b0c7840 Change mix to BlockInput 2024-09-21 15:51:38 -05:00
Dan Halbert
eff544c16c espressif: get new I2C driver working
- Starts with @tannewt's changes.
- Make sure proper component is being compiled.
- Added `I2C.probe()` as a visible new method. This was a hidden common-hal method, but the C version of adafruit_bus_device could not use it because it needs to call probe via a Python method call. So make it visible. It's useful, and `I2C.scan()` could be phased out, since now `.scan()` can be implemented in Python with `.probe()`.
- set clock-stretching timeout on espressif to a minimum of 1 second. In all impls of busio.I2C()`, the timeout is ignored and is set to a fixed 1 second. @tannewt's new code was using the passed-in value, which was often too short.

To do:
- switch esp-camera to new-driver version. We have to use the same I2C driver everywhere.
- Check about I2CTarget.
2024-09-20 17:48:17 -04:00
Scott Shawcroft
e9f8ed41dc Switch to IDF 5.2 I2C API
Make busio.I2C use finalizers for reset instead of bulk reset. This
makes it easier to track and free the memory that the IDF allocates
internally for its "handle".
2024-09-19 14:47:45 -04:00
gamblor21
4da22c5634 Add mix parameter 2024-09-18 20:17:18 -05:00
RetiredWizard
32537edb09 esp32s3: Implement sdioio 2024-09-18 17:37:59 -04:00
gamblor21
ac5ccdba7a Renamed module 2024-09-17 17:52:44 -05:00
gamblor21
a950349180 Changes to properly handle samples 2024-09-17 17:52:44 -05:00
gamblor21
5e923038f3 Initial audio effects commit 2024-09-17 17:52:44 -05:00
Dan Halbert
1f68fffa13 merge from main 2024-09-10 16:36:32 -04:00
Dan Halbert
bc6f065447 working on compilation errors 2024-09-06 23:10:41 -04:00
James Bowman
73eb5944bf Extend EVE hardware opcodes for future-compatibility
Extend the bitfields of these instructions: BitmapHandle, ClearTag, Tag, BitmapSource, PaletteSource
Add instructions: BitmapSourceH PaletteSourceH

All the new bits and opcodes are ignored by earlier hardware, so this change is backwards-compatible.

Passes tests on all EVE hardware.
2024-09-06 10:53:05 -07:00
James Bowman
862ad62901 Make BitmapTransform* methods backwards-compatible
The setmodel() method controls the behavior
So existing code will continue to work unchanged
Subsequent releases of the ``eve`` library will call setmodel() to enable the new behavior
Confirmed all code paths on EVE hardware
2024-09-04 11:20:48 -07:00
19e5cf3d8f Avoid crashing when display components are deinitialized
Now, try_lock (SPI & I2C) & begin_transaction (display bus core) will check
that the related objects are still valid first; if they are not,
the lock/begin transaction will fail by returning false, rather than
"other things" such as raising a Python exception where it is not
permitted, accessing invalid memory, etc.

Closes #8278 and Closes #9426
2024-08-28 09:44:02 -05:00
Dan Halbert
e5e9c5ca84
Merge pull request #9469 from dhalbert/merge-from-micropython-v1.22.2
Merge from micropython v1.22.2
2024-08-21 18:11:19 -04:00
Scott Shawcroft
4950bebff0
Remove unique error messages
The two checks on self->type should be impossible to hit so they
are removed. Switch to `Invalid ...` for two others.
2024-08-13 09:41:23 -07:00
Scott Shawcroft
d9fcaa00ae
Merge pull request #9488 from wyrdsec/main
Driver for Pervasive Display's Aurora based E-ink display
2024-08-12 09:41:27 -07:00
wyrdsec
2a98af336c More pre-commit formating 2024-08-08 21:26:17 -04:00
wyrdsec
e416ac0570 pre-commit fixes 2024-08-08 20:37:49 -04:00