Commit Graph

26465 Commits

Author SHA1 Message Date
Dan Halbert
4822c4592d
Merge pull request #5808 from unwiredben/add-mp3decoder-decoded-samples
audiomp3: reset decoded_samples when file resets
2022-01-03 23:27:52 -05:00
Jonny Bergdahl
fd80d0d8cb
Translated using Weblate (Swedish)
Currently translated at 100.0% (1031 of 1031 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2022-01-03 06:53:26 +01:00
Wellington Terumi Uemura
d3de8aa79b
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (1031 of 1031 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2022-01-03 06:53:26 +01:00
Ben Combee
db545dcba6
Merge branch 'adafruit:main' into add-mp3decoder-decoded-samples 2022-01-02 20:28:44 -06:00
Ben Combee
131b94540e audiomp3: reset decoded_samples when file resets
In testing, I saw that the decoded_samples value kept increasing when I
stopped and restarted playback, as I'd missed setting it back to zero
during the reset operation.
2022-01-02 15:19:25 -06:00
Jeff Epler
f2f38c7df9
Merge pull request #5807 from unwiredben/add-mp3decoder-decoded-samples
audiomp3: add decoded_samples property
2022-01-02 07:14:33 -07:00
Ben Combee
98b0029a29 audiomp3: add decoded_samples property
In my testing, there is no way to accurately know how far into a MP3 file
you're currently playing. You can use monotonic time, but that can have
drift versus the audio playback system, which may not be running at exactly
the expected sample rate.

To allow syncing animation with timestamps in a MP3 file, this presents a
new property, decoded_samples, that records the number of audio samples
sent out of the decoder. While this may not be a completely accurate time,
due to mixer delays, it's much better position that the monotonic clock
difference.

Implementation is keeping track of this value in the mp3file structure and
adding to it whenever data is sent out of the decoder. The property
implementation was a copy/paste from current properties in the audiomp3
files.
2022-01-01 23:28:43 -06:00
Dan Halbert
6f8c9deda8
Merge pull request #5804 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2022-01-01 10:01:30 -05:00
Hosted Weblate
4f3c50aa17
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-01-01 05:46:11 +01:00
Dan Halbert
d166834e09
Merge pull request #5803 from dhalbert/countio-enhancements
countio: add selectable rise and fall detection, pulls
2021-12-31 23:45:59 -05:00
Jeff Epler
8a94d9a255
Merge pull request #5784 from WarriorOfWire/vectorio_contains
vectorio contains(x, y)
2021-12-31 16:11:24 -07:00
Dan Halbert
9d2a32d07e countio: add selectable rise and fall detection, pulls 2021-12-31 16:34:58 -05:00
MicroDev
7cea858b79
Merge pull request #5795 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2021-12-31 11:02:42 +05:30
Scott Shawcroft
756b9f6dfa
Initial Pi Zero support
Both SD card and USB don't work. REPL works over UART.

Progress on #5631
2021-12-30 18:32:59 -08:00
jerryneedell
14815f6de7 fix typo in comment 2021-12-30 14:12:37 -05:00
jerryneedell
9dea49516e update logic for JTAG pull downs 2021-12-30 14:09:43 -05:00
jerryneedell
fc97f1d940
Merge branch 'adafruit:main' into jerryn_gpio 2021-12-30 13:02:08 -05:00
Hosted Weblate
95bbe26976
Merge remote-tracking branch 'origin/main' 2021-12-30 18:36:09 +01:00
Scott Shawcroft
1e925c56ae
Merge pull request #5796 from microDev1/espressif
Update espressif port
2021-12-30 09:36:02 -08:00
microDev
4daa7b5180
update espressif port
- enable rgbmatrix for all esp soc
- bump idf to latest commit on v4.4 branch
2021-12-30 19:23:41 +05:30
Jonny Bergdahl
878f011077
Translated using Weblate (Swedish)
Currently translated at 100.0% (1030 of 1030 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2021-12-30 12:53:39 +01:00
Wellington Terumi Uemura
e6b7dcaea4
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (1030 of 1030 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2021-12-30 12:53:39 +01:00
jerryneedell
7cdffba09f Merge remote-tracking branch 'upstream/main' into jerryn_gpio 2021-12-29 12:58:41 -05:00
Jeff Epler
cd7e879f30
Merge pull request #5791 from prplz/dont-freeze-utils
Don't freeze utils directories
2021-12-29 07:11:59 -07:00
Michael Himing
ad63150e6d Don't freeze utils directories 2021-12-29 11:56:30 +11:00
Dan Halbert
8aafc734a4
Merge pull request #5789 from adafruit/7.1.x
Merge latest changes from 7.1.x
2021-12-28 18:12:29 -05:00
Dan Halbert
044dcb4a87
Merge pull request #5788 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2021-12-28 16:18:23 -05:00
Scott Shawcroft
08d09ac493
Merge pull request #5613 from jepler/issue5418
clear out interrupt when freeing the timer
2021-12-28 10:57:58 -08:00
Hosted Weblate
6316dcf24c
Merge remote-tracking branch 'origin/main' 2021-12-28 18:55:32 +01:00
Dan Halbert
3bc48802b1
Merge pull request #5783 from jepler/longint-config
Centralize LONGINT_IMPL handling
2021-12-28 12:55:26 -05:00
jerryneedell
ed3ddea2da set pulldown for broadcom jtag pins 2021-12-28 11:26:47 -05:00
Hosted Weblate
509a3c0ff9
Merge remote-tracking branch 'origin/main' 2021-12-28 16:43:57 +01:00
Dan Halbert
2c4e3aa880
Merge pull request #5786 from prplz/fix-busdevice-stub-path
Fix busdevice stub path
2021-12-28 10:43:54 -05:00
Hosted Weblate
52786f4e38
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/
2021-12-28 16:40:54 +01:00
Dan Halbert
6ca957e5ba
Merge pull request #5785 from dhalbert/report-no-CIRCUITPY
go into safe mode with a useful message if no CIRCUITPY
2021-12-28 10:40:48 -05:00
Dan Halbert
9ef8bce7bd
Merge pull request #5759 from jepler/font-protocol
Add a font protocol
2021-12-28 10:36:24 -05:00
Michael Himing
fe71ee0812 Fix busdevice stub path 2021-12-28 19:31:40 +11:00
Dan Halbert
3c9f7f6ae9 address review comments 2021-12-27 19:36:11 -05:00
Dan Halbert
41d494df0b go into safe mode if not CIRCUITPY available 2021-12-27 18:58:24 -05:00
Jeff Epler
1986d2ee71
clear out interrupt flags when disabling timer too 2021-12-27 16:42:41 -06:00
Jeff Epler
ea638c0401
Merge pull request #5753 from 0hotpotman0/main
Add new board Seeed_XIAO_nRF52840
2021-12-27 15:41:14 -07:00
Jeff Epler
1a152187d7
Merge pull request #5780 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2021-12-27 15:40:54 -07:00
Jeff Epler
9cf2baf68e
remove unneeded LONGINT_IMPL logic 2021-12-27 16:39:33 -06:00
Jeff Epler
34e8bfd09e
explicitly use mpz long ints on this board 2021-12-27 16:39:04 -06:00
Kenny
8de5f90086 vectorio contains(x, y)
new utility function for all vectorio shape specializations for testing
whether a screen-space x,y point falls within a shape's x,y.

This respects the current orientation of the screen in the manner of
displayio and vectorio - so your x,y requests are in the same coordinate
domain as your x,y locations and your width/height etc. properties that
ou set on other shapes. I.e., if you're using this for touch points then
you will need to make sure the touch events are in the same x,y domain as
your display.

```
contains(2, 4) -> true
------------------
|                |
|                |
| --             |
| | \            |
| |. \           |
| |   \          |
| |____\         |
|                |
------------------

contains(5, 4) -> false
------------------
|                |
|                |
| --             |
| | \            |
| |  \.          |
| |   \          |
| |____\         |
|                |
------------------
```

This helps provide low overhead introspection of shape coverage on screen.
It's envisioned that this will be used for things like touch-and-drag
widget controls, touch "areas" and may help with random ornament placement
on toy Christmas trees.
2021-12-27 12:01:19 -10:00
Hosted Weblate
4603846919
Merge remote-tracking branch 'origin/main' 2021-12-27 17:41:52 +01:00
Jeff Epler
f5fa4ae237
Merge pull request #5764 from dannystaple/patch-1
Fix RST formatting for readthedocs
2021-12-27 09:41:46 -07:00
Jeff Epler
75857ce141
Install setuptool_scm for make check-stubs
This fixes the lengthy build-time message

> setuptools_scm-6.3.2-py3.9.egg/setuptools_scm/integration.py:16: RuntimeWarning:
> ERROR: setuptools==44.1.1 is used in combination with setuptools_scm>=6.x
>
> Your build configuration is incomplete and previously worked by accident!
>
>
> This happens as setuptools is unable to replace itself when a activated build dependency requires a more recent setuptools version (it does not respect "setuptools>X" in setup_requires).
>
>
> setuptools>=31 is required for setup.cfg metadata support
> setuptools>=42 is required for pyproject.toml configuration support
>
> Suggested workarounds if applicable:
>  - preinstalling build dependencies like setuptools_scm before running setup.py
>  - installing setuptools_scm using the system package manager to ensure consistency
>  - migrating from the deprecated setup_requires mechanism to pep517/518 and using a pyproject.toml to declare build dependencies which are reliably pre-installed before running the build tools
2021-12-27 10:36:56 -06:00
Jeff Epler
316c25303d
Provide a protocol for Fonts 2021-12-27 10:31:35 -06:00
Jeff Epler
1d13c4ccd1
Centralize LONGINT_IMPL handling
This closes #5782
2021-12-27 10:21:47 -06:00