Commit Graph

2076 Commits

Author SHA1 Message Date
Boran Roni 1e34fc110a
Translated using Weblate (Turkish)
Currently translated at 26.7% (264 of 987 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/tr/
2022-12-05 22:48:20 +01:00
Wellington Terumi Uemura d080f81ffe
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (987 of 987 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2022-12-05 22:48:19 +01: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
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
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 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
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
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
Jeff Epler 08d372aedc
Merge remote-tracking branch 'origin/main' into merge-weblate-manually 2022-11-30 21:09:31 -06:00
Jeff Epler 9916b39b65
update nl translation to fit in uint8_t 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 4671658c63
Use ASCII apostrophe in french translation, it saves flash space
.. it makes mchar_t, the type of storage needed for all the code points
in all translation messages, be an 8-bit type instead of a 16-bit type
2022-11-30 14:39:50 -06:00
Jeff Epler d39d146352
Merge some messages 2022-11-30 14:39:47 -06:00
Jeff Epler 0e19fbb60f
Use a function to raise ZeroDivisionError, consistent string 2022-11-30 14:39:30 -06:00
Jonny Bergdahl 2e9954e43d
Translated using Weblate (Swedish)
Currently translated at 100.0% (997 of 997 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2022-11-30 21:18:36 +01:00
Bill Sideris 362018dcca
Merge branch 'main' into picow-ap 2022-11-30 19:11:03 +02:00
Hosted Weblate eb1913576e
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-11-30 17:14:26 +01:00
Hosted Weblate 8b7b23f9dc
Merge remote-tracking branch 'origin/main' 2022-11-30 17:14:19 +01:00
hexthat 1711cce52b
Translated using Weblate (Chinese (Pinyin))
Currently translated at 100.0% (996 of 996 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/zh_Latn/
2022-11-30 17:14:18 +01:00
Jonny Bergdahl 7c336c51a8
Translated using Weblate (Swedish)
Currently translated at 100.0% (996 of 996 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2022-11-30 17:14:17 +01:00
Dan Halbert c8390a7918
Merge pull request #7069 from jepler/exception-chain
Implement chained exceptions
2022-11-30 11:13:57 -05:00
Hosted Weblate eaf0d04a25
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-11-29 16:09:32 +01:00
Dan Halbert 1bcfff3716
Merge pull request #7272 from tannewt/picow_mdns
Add MDNS support to Pico W
2022-11-29 10:09:24 -05:00
Clay f3100af6ac
Translated using Weblate (Russian)
Currently translated at 35.2% (351 of 995 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/ru/
2022-11-29 02:02:58 +01:00
Scott Shawcroft c13ca95da1
Add MDNS support to Pico W
This adds both cpy-MAC.local and circuitpython.local support.

Fixes #7214
2022-11-28 16:15:28 -08:00
Clay 54f37c3e5a
Translated using Weblate (Russian)
Currently translated at 31.9% (318 of 995 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/ru/
2022-11-26 05:48:31 +01:00
foamyguy 19f1119994 Merge branch 'main' into fastpixelmap
# Conflicts:
#	shared-module/adafruit_pixelbuf/PixelBuf.c
2022-11-21 20:25:58 -06:00
Bill Sideris b40facd0b4
Error msg changes 2022-11-22 01:00:34 +02:00
hexthat 4856f42f84
Translated using Weblate (Chinese (Pinyin))
Currently translated at 100.0% (995 of 995 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/zh_Latn/
2022-11-19 19:48:17 +01:00
Bill Sideris 88bd9ef6b8
just change the ap error 2022-11-18 22:51:05 +02:00
Bill Sideris b8cd6c093f
picow-ap progress 2022-11-17 21:47:39 +02:00
River Wang a4dd1b2341
Translated using Weblate (Chinese (Pinyin))
Currently translated at 99.4% (990 of 995 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/zh_Latn/
2022-11-15 05:35:35 +01:00
River Wang ce22a3293d
Translated using Weblate (Chinese (Pinyin))
Currently translated at 99.6% (992 of 995 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/zh_Latn/
2022-11-14 23:15:34 +01:00
hexthat 63ad2b763e
Translated using Weblate (Chinese (Pinyin))
Currently translated at 99.6% (992 of 995 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/zh_Latn/
2022-11-14 23:15:34 +01:00
River Wang e53bbb1bd2
Translated using Weblate (Chinese (Pinyin))
Currently translated at 97.3% (969 of 995 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/zh_Latn/
2022-11-14 16:47:28 +01:00
Jeff Epler b6f86e1e73
Recursively print chained exceptions 2022-11-13 19:53:21 -06:00
Jonny Bergdahl b9ce2867a0
Translated using Weblate (Swedish)
Currently translated at 100.0% (995 of 995 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2022-11-11 19:49:47 +01:00
Wellington Terumi Uemura d5ea4d8f2f
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (995 of 995 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2022-11-11 19:49:47 +01:00
Jeff Epler f5c637dc10
Add adafruit_pixelmap.PixelMap
.. a fast helper for animations. It is similar to and inspired by the
PixelMap helper in Adafruit LED Animation library, but with an extremely
fast 'paste' method for setting a series of pixels. This is a common
operation for many animations, and can give a substantial speed improvement.

It's named `adafruit_pixelmap` so that we can package a compatible version
in pure Python for systems that can't fit it in C in flash, or for
Blinka.

This is a proof of concept and can make a very fast comet animation:
```python
import time
import adafruit_pixelbuf
import adafruti_pixelmap
import board
import neopixel
from supervisor import ticks_ms
from adafruit_led_animation.animation.solid import Solid
from adafruit_led_animation import color

pixel_pin = board.GP0
pixel_num = 96

pixels = neopixel.NeoPixel(pixel_pin, pixel_num, brightness=1, auto_write=False, pixel_order="RGB")

evens = adafruit_pixelmap.PixelMap(pixels, tuple(range(0, pixel_num, 2)))
odd_indices = tuple((i, i+2) for i in range(1, pixel_num, 4))
print(odd_indices)
odds = adafruit_pixelbuf.PixelMap(pixels, odd_indices)
assert len(odds) == len(odd_indices)


comet_length = 16

comet1 = [color.calculate_intensity(color.GREEN, ((1+i) / comet_length) ** 2.4)
        for i in range(comet_length)]
comet2 = [color.calculate_intensity(color.PURPLE, ((1+i) / comet_length) ** 2.4)
        for i in range(comet_length)]

pos1 = 0
pos2 = 96//4

while True:
    evens.paste(comet1, pos1, wrap=True, reverse=False, others=0)
    pos1 = (pos1 + 1) % len(evens)

    odds.paste(comet2, pos2, wrap=True, reverse=True, others=0)
    pos2 = (pos2 - 1) % len(odds)
    pixels.show()

    m = ticks_ms()
    if m % 2000 > 1000:
        time.sleep(.02)
```
2022-11-11 07:54:33 -06:00
Hosted Weblate 3910557605
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-11-09 20:20:06 +01:00
Hosted Weblate 2be3f26508
Merge remote-tracking branch 'origin/main' 2022-11-09 20:20:04 +01:00
Deleted User 98ee03259c
Translated using Weblate (French)
Currently translated at 99.2% (986 of 993 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/fr/
2022-11-09 20:20:04 +01:00