1f33a324e9
Make getenv test work on posix
...
.. it now fails on unix coverage port but that's fine
2024-07-30 18:32:33 +03:00
cb175d7674
fix builtin_ext test by labeling these "extensible" modules
...
we don't use this capability in CircuitPython but it was not hard
to make it work. Removing the "extensible module" related code altogether
might save some space though.
2024-07-30 16:40:24 +03:00
fbdca927cd
update our math module from modmath
2024-07-30 12:28:31 +03:00
0c6efc0359
time: allow times from 1970 to 2038 in time.mktime.
...
This change allows the unix/time_mktime_localtime.py test to work
in the POSIX build
2024-07-30 11:45:30 +03:00
0cb5b3bad4
Fix random_seed_default test
2024-04-06 11:16:52 -05:00
9fca5e0200
random: fix getrandbits(0)
...
this is defined by python (returns 0) and tested in a test
2024-02-11 07:42:12 -08:00
e6aac4014e
Use MICROPY_FLOAT_CONST
2024-02-09 08:44:46 -08:00
a17d2ac0db
WIP
2024-01-27 14:39:29 -06:00
Dan Halbert
370b011081
Merge pull request #8830 from dhalbert/hid-wakeup
...
shared-module/usb_hid: allow HID to wake sleeping host computer
2024-01-25 14:44:02 -05:00
Scott Shawcroft
1b25e6472b
Consolidate PWMOUT error enum
...
We already consolidated the resulting message
2024-01-25 10:13:04 -08:00
Dan Halbert
62da707623
shared-bindings/usb_hid: add wakeup documentation
2024-01-24 14:07:52 -05:00
Scott Shawcroft
9538e0067b
Merge remote-tracking branch 'adafruit/main' into ww_sd_card
2024-01-22 17:14:06 -08:00
Scott Shawcroft
8426773af4
Standardize more error messages to save space
2024-01-22 17:08:30 -08:00
Phil Underwood
9f016796e0
Make range check test against source bitmap, not destination
2024-01-22 16:53:00 +00:00
Scott Shawcroft
61ec3280d1
Optimize error messages
2024-01-19 21:31:58 -08:00
152890b8a8
improve documentation again
2024-01-18 17:40:47 -06:00
961a63b3ee
Require use of the ChannelMixer / ChannelScaler types in mix()
...
.. and update the test accordingly, fixing a bug discovered in the
process.
2024-01-18 17:16:44 -06:00
ff3947a74a
bitmapfilter: improve documentation
2024-01-18 13:25:13 -06:00
2ed31b687a
bitmapfilter: Doc improvements.
2024-01-18 11:24:55 -06:00
ce5c108642
bitmapfilter: Doc improvements.
2024-01-18 10:22:30 -06:00
1ff6e1a025
Add namedtuple objects for mix() operation variants
2024-01-18 09:29:46 -06:00
c8bb1f527e
Doc improvements
2024-01-18 09:29:19 -06:00
db7ade2609
Update __init__.c
2024-01-17 21:22:07 -06:00
0e1908ffa5
Update shared-bindings/bitmapfilter/__init__.c
...
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2024-01-17 21:19:42 -06:00
Scott Shawcroft
25e862d110
Make SD cards available over web workflow
...
This changes storage.mount() to require that a mount point exist
on the parent file system.
A bug in background tasks is also fixed where the function
parameter is cleared on pending callbacks during "reset".
Disk usage is shown on the directory listing and changes based on
the mounted file system. Writable is also loaded per-directory.
Fixes #8108 . Fixes #8690 . Fixes #8107 .
2024-01-16 14:12:16 -08:00
0c36c1558e
Remove morph9, we're tight on flash space as it is
...
.. and no specific use case for morph9 is known that can't be done
with mix+morph.
Saves ~1800 bytes on Memento
2024-01-15 14:08:13 -06:00
6dc33a8efb
optimize morph9
...
This reduces the time from about 133ms to about 122ms on my test
image on the memento pycamera
a similar change to morph did not produce a performance improvement,
so I didn't include it.
2024-01-14 11:17:55 -06:00
26fe085763
the correct type is int, which doesn't have any comparison problems
2024-01-12 19:51:10 -06:00
6e553e763c
Add, test morph9
...
morph9 is a form of morph which performs 9 different convolutions,
like a version of mix where each coefficient is a (2n+1)x(2n+1) matrix.
Most use cases are covered by morph-then-mix, but some advanced operations
may be more efficient to implement via morph9.
2024-01-12 17:32:45 -06:00
902a36d03f
didn't actually add Sequence[int] support to false_color
2024-01-12 12:44:06 -06:00
4a09827796
Review & update bitmapfilter documentation
2024-01-12 10:55:26 -06:00
6d30ff527a
Add false_color
2024-01-12 10:48:26 -06:00
e3a5e48ba5
Lookup table argument is required in bitmapfilter.lookup
2024-01-12 10:19:25 -06:00
94123725f7
Add ColorConverter & Palette to coverage build
2024-01-12 10:18:48 -06:00
ff22baa37f
Add lookup table (LUT)
2024-01-11 14:40:01 -06:00
1365a06321
bitmapfilter: return bitmap from the functions. add 6-number mix()
2024-01-11 11:58:49 -06:00
4cb193d9c9
bitmapfilter: Add solarize, add comments
2024-01-10 15:32:59 -06:00
7e1c05edf5
morph: accommodate fractional add values
2024-01-09 17:11:53 -06:00
36411203ff
Add bitmapfilter.mix
...
This allows operations between channels in an image. It can be used for
the following use cases:
* Conversion to B&W or sepia
* Adding color casts
* Mixing or swapping arbitrary channels
* Inverting or scaling arbitrary channels
2024-01-09 15:00:42 -06:00
214ebc3955
morph improvements
...
* weight can be any sequence (& test it)
* improve error message
* correct documentation of ``mask`` vs copypaste from openmv
2024-01-08 08:57:20 -06:00
7e23fac766
bitmapfilter: refine morph, add docs
2024-01-06 13:34:42 -06:00
75be426377
Add "bitmapfilter"
...
bitmapfilter.morph is taken from openmv's imlib.
It is substantially faster than blur/sharpen implemented in ulab,
by up to 10x. It also avoids making many allocations.
2024-01-05 14:16:00 -06:00
Dan Halbert
bbff8b5638
Merge pull request #8784 from jepler/jpegio-y-coordinate
...
Correct y= argument of JpegDecoder.decode
2024-01-04 16:19:36 -05:00
35258215ca
Correct y= argument of JpegDecoder.decode
...
.. update the tests as well. Don't dump the bitmap when the bitmaps
already compared equal for the crop and position tests.
2024-01-04 13:11:32 -06:00
1bc616cfb5
Merge pull request #8749 from jepler/mbedtls-hashlib
...
Share the implementation of hashlib across ports
2024-01-04 10:34:22 -06:00
2f325740c2
Merge remote-tracking branch 'origin/8.2.x' into merge-8.2.x
2023-12-29 15:05:19 -06:00
CarsonCoder
9feadb030f
Fix compilation errors
2023-12-29 12:54:02 -05:00
CarsonCoder
a9585a002c
Fix compilation errors
2023-12-29 12:36:20 -05:00
CarsonCoder
ed60528574
Make precommit happy
2023-12-29 11:53:56 -05:00
CarsonCoder
da92e5df85
Remove some ipproto constants
2023-12-29 11:52:00 -05:00