Scott Shawcroft
a8b34bd067
Merge pull request #7549 from gamblor21/gif_displayio_support
...
Animated GIF support
2023-02-21 11:39:29 -08:00
Dan Halbert
bbadc00599
Merge pull request #7577 from dhalbert/safemode-py
...
Implement safemode.py
2023-02-16 14:15:20 -05:00
MicroDev
32d86c3ea3
Merge pull request #7580 from adafruit/8.0.x
...
Merge 8.0.x up to main
2023-02-15 09:16:51 +05:30
Dan Halbert
d46d9d5c21
shorten safe mode messages; improve message printing; fix CIRCUITPY_SAFEMODE_PY=0
2023-02-13 21:29:57 -05:00
Mark
fa435468fa
Merge branch 'main' into gif_displayio_support
2023-02-13 18:30:51 -06:00
Dan Halbert
d8231f1588
Implement safemode.py
2023-02-13 18:26:38 -05:00
MicroDev
65e9d937ac
use python based msgfmt
2023-02-13 11:22:35 +05:30
gamblor21
0c95e6a08e
Moving to gifio module
2023-02-12 11:17:34 -06:00
gamblor21
da9b6fb0e2
Moving library to /lib
2023-02-10 18:31:59 -06:00
Jeff Epler
0d957fe15c
Fix several places where an exception could be chained wrongly
...
If an exception's chain or context can refer to a pointer from a different
VM, a crash would typically result.
This couldn't turn up on UNIX testing because the VM is never torn
down and rebuilt like it is on hardware.
Because in the 'static' case the GeneratorObject is now fully initialized
whenever it's raised, the initialization can be dropped, which reduces
the flash size slightly.
Closes : #7565
2023-02-10 09:06:47 -06:00
Gregory Neverov
abc5eb30d7
add support for array.extend(iterable)
2023-02-06 15:07:26 -08:00
gamblor21
6a9b7199ec
Initial gif proof of concept
2023-02-04 16:44:29 -06:00
MicroDev
d9d94eacca
run updated pre-commit
2023-02-01 13:38:41 +05:30
Neradoc
f0058774d0
add CIRCUITPY_SKIP_SAFE_MODE_WAIT to circuitpy_mpconfig.mk
...
use #if (also a CIRCUITPY_ULAB)
2023-01-29 00:56:16 +01:00
MicroDev
cda5689263
move esp32_camera
to espcamera
2023-01-27 22:05:43 +05:30
Dan Halbert
a974402542
Improve type validation errors messages, especially for pins
2023-01-10 15:02:55 -05:00
Dan Halbert
e7475153c0
Merge pull request #7415 from jepler/fix-exception-chain-self
...
do not chain exceptions to themselves
2023-01-04 11:39:16 -05:00
Dan Halbert
4d33cf48a9
Merge pull request #7410 from jepler/unique-fat-volid
...
oofatfs: enable use of random volume IDs
2023-01-04 11:37:32 -05:00
Jeff Epler
cc16bd3d53
do not chain exceptions to themselves
...
cpython actually makes sure the newly chained exception doesn't create
a cycle (even indirectly); see _PyErr_SetObject use of "Floyd's cycle
detection algo". We'll go for the simpler solution of just checking
one level deep until it's clear we need to do more.
Closes : #7414
2023-01-04 08:40:20 -06:00
Jeff Epler
3d66ed27ce
oofatfs: enable use of random volume IDs
...
This may help address #7409 if the underlying cause is the deterministic
volume ID. However, not all boards have working urandom (samd21
at least does not) so a couple of fallbacks are attempted when it fails.
I verified that on a pico_w, each `storage.erase_filesystem()` gives
a distinct 32-bit volume ID (pico_w's urandom can never fail)
2023-01-03 17:18:29 -06:00
Dan Halbert
03b43b7b3f
complete rework for microcontroller.cpu.frequency and wifi.radio MAC addresses
2023-01-02 11:45:58 -05:00
Jeff Epler
ef8b297d7f
Avoid null pointer dereference when no kwargs
...
clang scan-build reports "Access to field 'table' results in a
dereference of a null pointer (loaded from variable 'kw_args')"
2023-01-01 16:56:53 -06:00
Dan Halbert
2f1476874a
Merge pull request #7368 from dhalbert/preserve-nlr_push-regs
...
Use returns_twice attribute to preserve regs in nlrthumb nlr_push()
2022-12-21 08:40:05 -05:00
Dan Halbert
8087887afd
Use returns_twice attribute to preserve regs in nlrthumb nlr_push()
2022-12-20 22:18:43 -05:00
Scott Shawcroft
f8ac1d9261
Rework the coproc API
...
It is now a generic `memorymap` API and an ESP specific `espulp` module.
Fixes #7218 . Fixes #3234 . Fixes #7300 .
2022-12-19 14:08:38 -05:00
Jeff Epler
5ac622a30d
get rid of nearly-empty getenv.c file
2022-12-13 13:13:01 -06:00
Jeff Epler
cc7d550407
Really finish renaming to getenv
2022-12-09 14:28:46 -06:00
Jeff Epler
3459fe322b
Withdraw the _environ module
...
This existed solely for testing, so expose it a different way during
the unix coverage build
Also turn off os.getenv support on samd21.
2022-12-08 15:33:10 -06:00
Jeff Epler
ef2bfdb5db
dotenv becomes settings.toml
2022-12-08 12:44:20 -06:00
Jeff Epler
7ceca0cbb2
fix display of the 'host not found' message
...
The conversion of characters like _space_ in qstrs is a bit
ad-hoc. Because "_not_" stands for the logical negation character ¬
the recently added message was displayed incorrectly:
```
>>> socket.getaddrinfo('does.not.exist', 0)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
gaierror: (-2, 'Name or service_space¬space_known')
```
I had noticed this, but evidently failed to include the fix in
the problem in #7269 .
2022-12-01 19:46:17 -06:00
Dan Halbert
082b0d1aed
Merge pull request #7191 from jepler/fastpixelmap
...
Add a fast PixelMap-like class
2022-12-01 11:43:00 -05:00
Jeff Epler
fb66a6bfe5
Don't use "offset" as an identifier
2022-11-30 14:39:54 -06:00
Jeff Epler
e5b83821f8
fr should fit in 8 bits
2022-11-30 14:39:53 -06:00
Jeff Epler
d16c9515b7
Compact the characters of certain translations, so they fit in uint8_t
...
This saves a few hundred bytes on the affected translations, such
as `el` which shrunk from 186152 to 185588 bytes (564 bytes saved).
2022-11-30 14:39:53 -06:00
Jeff Epler
6be0a425c7
Don't run maketranslationdata twice
2022-11-30 14:39:51 -06:00
Jeff Epler
9c11bb2ed9
Check that translations fit in expected character type
2022-11-30 14:39:50 -06:00
Jeff Epler
c46e219795
Having an input-only pin is rare, save a string on other ports
2022-11-30 14:39:49 -06:00
Jeff Epler
4158ddfc17
compile out terse mismatch message when not used
2022-11-30 14:39:49 -06:00
Jeff Epler
a94663b3c9
use a standard error message
2022-11-30 14:39:49 -06:00
Jeff Epler
d39d146352
Merge some messages
2022-11-30 14:39:47 -06:00
Jeff Epler
d61fde349d
re-use an error message
2022-11-30 14:39:34 -06:00
Jeff Epler
5fb191b51c
Use a standard validator
2022-11-30 14:39:33 -06:00
Jeff Epler
0e19fbb60f
Use a function to raise ZeroDivisionError, consistent string
2022-11-30 14:39:30 -06:00
Jeff Epler
7df21c9ecf
Combine a message
2022-11-30 12:06:17 -06:00
Jeff Epler
f652a898e7
merge two messages
2022-11-30 12:06:17 -06:00
Jeff Epler
2315b62bff
Remove unused static qstrs
...
These are turned into TRANSLATE() messages now, so the qstr version
would not be used.
2022-11-30 12:06:15 -06:00
Jeff Epler
10d92873c3
Don't generate QSTRs for wrong identifiers
...
MP_REGISTER_MODULE would use identifiers like
"MODULE_DEF_MP_QSTR___FUTURE__" which would in turn cause
a QSTR to be generated for it. This wasn't desirable, because the
qstr would never be used.
This clears out quite a bit of flash storage on the proxlight trinkey.
2022-11-30 12:06:15 -06:00
Dan Halbert
c8390a7918
Merge pull request #7069 from jepler/exception-chain
...
Implement chained exceptions
2022-11-30 11:13:57 -05:00
foamyguy
57d7f7f2ad
move to _pixelmap
2022-11-24 09:07:08 -06:00
Dan Halbert
6d022733b3
Merge pull request #7162 from rhooper/boards-list
...
add boards list to make error message
2022-11-21 23:18:37 -05:00