Commit Graph

30870 Commits

Author SHA1 Message Date
Jeff Epler
66411fdd38
espressif: check return value from esp_ping_new_session
esp_ping_new_session can fail, particularly if ping is called quickly
many times in succession.

This is because `esp_ping_new_session` has to do a bunch of stuff
including creating a task and a socket. Calling `esp_ping_delete_session`
doesn't clean up these resources immediately. Instead, it signals the
task to clean up resources and exit 'soon', but 'soon' is defined as 1
second.

When the calls are frequent, the in-use sockets and tasks fill up
available slots—I didn't actually check which resource gets used
up first.

With this change, the ping call will raise an exception instead of
continuing with a call to esp_ping_start that crashes.

Closes #5980 based on my testing on an ESP32S3-N8R2.
2023-05-05 17:11:03 -05:00
Jeff Epler
bd9aca2526
Merge pull request #7862 from jepler/synthio-envelope
Synthio envelope
2023-05-03 12:42:56 -05:00
Jeff Epler
b33c9f6b4b
synthio: put license notice on copied files 2023-05-03 09:37:12 -05:00
Jeff Epler
1fafa4dc24
synthio: improve Envelope constructor 2023-05-03 09:37:04 -05:00
Jeff Epler
eea9b62978
synthio: MidiTrack: sample_rate is always available 2023-05-03 09:37:02 -05:00
Jeff Epler
dd262258e0
synthio: Add MidiTrack.error_location to record errors
.. instead of just printing the unraiseable error on the repl
2023-05-03 09:37:02 -05:00
Jeff Epler
d8550f4e7c
synthio: fix offset in default square waveform 2023-05-03 09:37:02 -05:00
Jeff Epler
b2f32a5397
Apply suggestions from code review
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2023-05-02 19:22:10 -05:00
Jeff Epler
c369527ace
remove line added while debugging failed doc builds
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2023-05-02 19:17:51 -05:00
Mark
2b17fda028
Merge pull request #7927 from adafruit/thinkink_update
Feather RP2040 ThinkInk update
2023-05-02 17:48:01 -05:00
Liz
480c4f1081
Update pins.c 2023-05-02 17:27:53 -04:00
Liz
facd3a4e78 Updating directory name 2023-05-02 17:07:49 -04:00
Liz
cba7a812fc Minor update for Feather RP2040 ThinkInk
hihi - updating board name from EPD to ThinkInk and adding pin def for board.BUTTON
2023-05-02 17:02:59 -04:00
Scott Shawcroft
750615f2da
Merge pull request #7430 from Lanzaa/rp2040_cpu_frequency
Add frequency setting for RP2040 boards.
2023-05-02 09:52:28 -07:00
Scott Shawcroft
488dca565f
Merge pull request #7922 from tannewt/dvi320
Take in framebuffer resolution, not output res
2023-05-02 09:22:51 -07:00
Jeff Epler
80e1418c01
Merge pull request #7921 from tannewt/imx_evks
Add additional iMX RT support
2023-05-02 07:09:50 -05:00
Scott Shawcroft
051540f8da
Fix broadcom NAN 2023-05-01 11:38:13 -07:00
Scott Shawcroft
0aa71ed6e6
Tweak the picodvi docs and arg checking 2023-05-01 11:30:04 -07:00
Dan Halbert
fdf436526c
Merge pull request #7924 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2023-05-01 10:24:47 -04:00
Yutaro Urata
a7c3955c41
Translated using Weblate (Japanese)
Currently translated at 40.8% (408 of 999 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/ja/
2023-04-29 19:47:37 +02:00
Scott Shawcroft
b08714bb8f
Take in framebuffer resolution, not output res
Fixes #7911
2023-04-28 17:13:17 -07:00
Scott Shawcroft
1a4e1d114c
Merge pull request #7916 from bablokb/badger_2040_w
Add support for Pimoroni Badger2040W
2023-04-28 16:42:03 -07:00
Scott Shawcroft
c5d3de2a17
Merge pull request #7920 from bablokb/plasma2040w
Add support for Plasma2040w
2023-04-28 16:39:13 -07:00
Scott Shawcroft
8104b824e0
Standardize CPU temp and voltage. Add autogen warning 2023-04-28 16:19:43 -07:00
Scott Shawcroft
18207cd547
Guard GCC13 pragma 2023-04-28 11:28:48 -07:00
Scott Shawcroft
f837f2438a
Update USB PIDs 2023-04-28 11:16:45 -07:00
Scott Shawcroft
a9dc31a881
Add additional iMX RT support
This adds a script to generate the peripherals files (except clock).

It adds support for the 1015, 1020, 1040, and 1050 EVKs.

Some work was started on 1176 but it isn't working. So, the board
def is in a separate branch.

Fixes #3521. Fixes #2477.
2023-04-28 11:01:13 -07:00
Bernhard Bablok
14c17224a1 update product-id 2023-04-28 08:57:22 +02:00
Bernhard Bablok
4f8ae14c18 update to upstream version 2023-04-28 08:56:52 +02:00
Bernhard Bablok
a86c5f7310 Merge branch 'main' into plasma2040w 2023-04-28 08:41:02 +02:00
Scott Shawcroft
f1ebd90ad4
Merge pull request #7913 from ChenxiXiao/main
Update zh_Latn_pinyin.py
2023-04-27 10:27:37 -07:00
Bernhard Bablok
ec6fde91ad integrate latest changes from upstream 2023-04-27 18:14:46 +02:00
Bernhard Bablok
cc3d61eb49 fixed merge conflicts 2023-04-27 13:23:34 +02:00
Dan Halbert
8e00f77928
Merge pull request #7914 from adafruit/anecdata-patch-1
Note limitation of next_stack_limit on espressif boards
2023-04-26 17:38:02 -04:00
Dan Halbert
c333e61681
small wording change 2023-04-26 14:58:45 -04:00
anecdata
6e8031faf8
Note limitation of next_stack_limit on espressif boards
Open to better wording.
2023-04-26 13:53:33 -05:00
Chenxi Xiao
c24a616df3
Merge branch 'adafruit:main' into main 2023-04-26 11:46:46 -06:00
Chenxi Xiao
47a901da9f
Merge pull request #1 from ChenxiXiao/ChenxiXiao-ZH_PINYIN
Update zh_Latn_pinyin.po
2023-04-26 11:46:21 -06:00
Chenxi Xiao
9f38304c20
Update zh_Latn_pinyin.po 2023-04-26 11:45:57 -06:00
Scott Shawcroft
5116c01735
Merge pull request #7909 from mjsir911/msirabella/shallow_setup
Update shallow tag update
2023-04-26 10:12:00 -07:00
Dan Halbert
34f565dd89
Merge pull request #7891 from tannewt/fix_epd_uc
Add address_little_endian and fix display memory reuse
2023-04-26 00:27:59 -04:00
Dan Halbert
be6e90c0ed
Merge pull request #7877 from dhalbert/rp2040-propmaker
Add Adafruit Feather RP2040 Prop-Maker
2023-04-26 00:23:49 -04:00
Marco Sirabella
863042dfd0 Move git command to update necessary tags to submodule
I ran into this one since I did an initial shallow clone due to slow
pycon 2023 wifi.
2023-04-25 16:05:20 -06:00
Marco Sirabella
6c85034952 Bump recommended shallow-since 1.5 years forward 2023-04-25 15:42:01 -06:00
Scott Shawcroft
75046b3a58
Save space with consolidated errors 2023-04-25 13:26:48 -07:00
Scott Shawcroft
eab202aa53
Fix SH110x 2023-04-25 10:36:34 -07:00
Dan Halbert
95acec0f55 Improve pin names 2023-04-25 13:22:42 -04:00
Jeff Epler
38fd6aea02
Disable synthio on two boards where it doesn't fit 2023-04-25 12:05:54 -05:00
Jeff Epler
b5c33a4c03
Add a manual test of synthio
this allows to test how the midi synthesizer is working, without access
to hardware. Run `micropython-coverage midi2wav.py` and it will create
`tune.wav` as an output.
2023-04-25 12:05:53 -05:00
Jeff Epler
12c1a72f03
synthio: implement envelope
This works for me (tested playing midi to raw files on host computer, as
well as a variant of the nunchuk instrument on pygamer)

it has to re-factor how/when MIDI reading occurs, because reasons.

endorse new test results

.. and allow `-1` to specify a note with no sustain (plucked)
2023-04-25 12:05:53 -05:00