Commit Graph

29733 Commits

Author SHA1 Message Date
evildave666 eaf39b4c10
Update pins.c 2022-12-05 16:40:36 +09:00
evildave666 14b430ed35
Fix pre-commit issues 2022-12-05 16:35:48 +09:00
evildave666 5b6f06d84c
Add additional files 2022-12-05 16:08:12 +09:00
evildave666 05a8bf8c38
Create board.c 2022-12-05 16:06:50 +09:00
Jonny Bergdahl 51df14896b
Translated using Weblate (Swedish)
Currently translated at 100.0% (987 of 987 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2022-12-04 18:47:22 +01:00
MicroDev a50b0a2a56
Merge pull request #7298 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2022-12-03 11:12:00 +05:30
BooleanMattock afb5301cef Fix to Issue #7224 - tested 2022-12-02 20:21:40 -05:00
Hosted Weblate 248c17d8bf
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/
2022-12-02 23:53:24 +01:00
Hosted Weblate c9edac7532
Merge remote-tracking branch 'origin/main' 2022-12-02 23:53:21 +01:00
Jonny Bergdahl 54831ae692
Translated using Weblate (Swedish)
Currently translated at 100.0% (986 of 986 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2022-12-02 23:53:21 +01:00
Scott Shawcroft 4c064c263e
Merge pull request #7294 from tannewt/analogbufio_rework
Rework the analogbufio API.
2022-12-02 14:53:16 -08:00
Scott Shawcroft d6c3dfb461
Merge pull request #7297 from jepler/chain-exception-doc
Implement the chain= argument of traceback.print_exception
2022-12-02 14:53:03 -08:00
Scott Shawcroft f7504ff857
Tweaks based on review comments 2022-12-02 10:19:31 -08:00
Jeff Epler b83c42e41a
Implement the chain= argument of traceback.print_exception 2022-12-02 10:50:31 -06:00
Scott Shawcroft 9e104c04ae
Merge pull request #7215 from FoamyGuy/set_root_group
displayio.show() API change
2022-12-02 08:45:20 -08:00
Dan Halbert 6e40949f6e
Merge pull request #7295 from tannewt/fix_mdns_conflict
Fix MDNS hostname mangling
2022-12-02 11:13:07 -05:00
Dan Halbert b7d9268e8f
Merge pull request #7290 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2022-12-02 11:12:32 -05:00
Hosted Weblate 6a34f51465
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/
2022-12-02 02:55:28 +01:00
Hosted Weblate 96ac6bdc17
Merge remote-tracking branch 'origin/main' 2022-12-02 02:55:25 +01:00
Jonny Bergdahl 42e7981b4f
Translated using Weblate (Swedish)
Currently translated at 100.0% (982 of 982 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2022-12-02 02:55:25 +01:00
Jeff Epler ddc56f5fdf
Merge pull request #7101 from bill88t/picow-ap
Attempt at pi cow ap
2022-12-01 19:55:17 -06:00
Scott Shawcroft ded0ee4816
Fix MDNS hostname mangling
cpy-MAC hostnames were being mangled on circuitpython.local
conflicts.

Fixes #6869
2022-12-01 17:54:41 -08: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
Scott Shawcroft 255e997345
Rework the analogbufio API.
* read() is now readinto() and takes the buffer to write into.
* readinto() returns the number of valid samples.
* readinto() can be interrupted by ctrl-c.
* readinto() API doesn't support signed numbers because it never did.
* sample_rate is now required in the constructor because supported
  values will vary per-port.
* 16 bit values are full range. 12 bit samples from RP2040 are stretched
  in the same way they are for AnalogIn.

Fixes #7226
2022-12-01 17:46:07 -08:00
Jeff Epler 7583ccad2a
Ensure orderly shutdown of ssl socket
A crash would occur if an SSL socket was not shut down before
`gc_deinit()`.

I do not fully understand the root cause, but some object deinitialization
/ deallocation prior to `gc_deinit` leaves the SSL object in an
inconsistent state.

Rather than resolve the root cause, instead ensure that the closing of
the user socket also closes the SSL socket.

Closes: #6502
2022-12-01 19:29:20 -06:00
foamyguy 57462092b5 return None instead of NULL for framebuffer and epaper 2022-12-01 17:34:43 -06:00
foamyguy 42f1d50acc remove extra function call. handle show(None) for framebuffer and epaper 2022-12-01 17:25:36 -06:00
Hosted Weblate 91b47d435d
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/
2022-12-01 17:43:18 +01: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 9c6c25ae57
Merge pull request #7286 from tannewt/fix_web_workflow_write
Fix writing files from web workflow
2022-12-01 08:30:47 -06:00
Jeff Epler e468746b0b
Merge pull request #7289 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2022-12-01 08:13:35 -06:00
Hosted Weblate 4f471dbd08
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/
2022-12-01 07:55:39 +01:00
MicroDev 33e8a9759c
Merge pull request #7287 from jepler/merge-weblate-manually
Merge weblate manually
2022-12-01 12:25:30 +05:30
Jeff Epler 08d372aedc
Merge remote-tracking branch 'origin/main' into merge-weblate-manually 2022-11-30 21:09:31 -06:00
Dan Halbert b41f7460b7
Merge pull request #7181 from jepler/more-string-qstr-savings
More space savings
2022-11-30 21:36:07 -05:00
foamyguy ae8fb279ce Merge remote-tracking branch 'jepler/fastpixelmap' into fastpixelmap 2022-11-30 19:18:01 -06:00
foamyguy 0563487433 get slicing 2022-11-30 19:16:20 -06:00
Scott Shawcroft 65e913ecd6
Fix writing files from web workflow
Pico W changes assumed that f_write could handle a NULL fourth
argument. It can't.
2022-11-30 14:22:46 -08:00
Bill Sideris 3fb4fd81e9
Revert "debug_dhcp to follow general debug" 2022-11-30 22:44:18 +02:00
Jeff Epler d2e2a61075
Reworking how "run list" works saves a dozen bytes 2022-11-30 14:39:54 -06: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 9916b39b65
update nl translation to fit in uint8_t 2022-11-30 14:39:52 -06:00
Jeff Epler ed33f65fd9
move define to proper place 2022-11-30 14:39:52 -06:00
Jeff Epler 0f6091cc73
update fil translation to fit in uint8_t 2022-11-30 14:39:52 -06:00
Jeff Epler 19a3893d40
update translations again 2022-11-30 14:39:51 -06:00
Jeff Epler 530e5a1df2
Use standard validation function 2022-11-30 14:39:51 -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