Commit Graph

30780 Commits

Author SHA1 Message Date
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
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
Jeff Epler 375a9cd4c5
add Synthesizer.release 2023-04-25 12:05:50 -05:00
Jeff Epler ca6ea83ff5
Fix `non_negative` validator to allow 0.0 2023-04-24 22:19:38 -05:00
Jeff Epler c4104898ce
add additional float validators 2023-04-24 22:19:38 -05:00
Jeff Epler 8e3c28e97d
Fix `memoryview.cast` in micropython-coverage
`locals_dict` and `attr` are incompatible, so just use circuitpython-style
properties so that a property and a method are both available.

this makes no difference in circuitpython, where
`MICROPY_PY_BUILTINS_MEMORYVIEW_ITEMSIZE` is never enabled
2023-04-23 09:41:26 -05:00
Scott Shawcroft d078bc3ae1
Merge pull request #7882 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2023-04-21 09:13:28 -07:00
Hosted Weblate 74f42afc50
Merge remote-tracking branch 'origin/main' 2023-04-20 20:55:40 +02:00
Dan Halbert 5014ddb43c
Merge pull request #7854 from CDarius/m5stack_core2
Add M5Stack Core2
2023-04-20 14:55:33 -04:00
Hosted Weblate d6b66b1854
Merge remote-tracking branch 'origin/main' 2023-04-20 20:52:30 +02:00
Dan Halbert 81c5a37e2d
Merge pull request #7867 from RetiredWizard/DispIOSizeValid
displayio arg validation tweaking
2023-04-20 14:52:24 -04:00
Hosted Weblate 8cc44f2b90
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/
2023-04-20 20:50:34 +02:00
Dan Halbert 7d02bff6b8
Merge pull request #7880 from tannewt/feather_dvi
Add PicoDVI support
2023-04-20 14:50:10 -04:00
Dan Halbert df7f348e9c
Merge pull request #7881 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2023-04-20 10:57:58 -04:00
Hosted Weblate 6f71e81c86
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/
2023-04-20 16:23:03 +02:00
Dan Halbert 4b41a49200
Merge pull request #7866 from rich123/allow-64-char-wifi-passwords
Allow 64 char WiFi passwords in wifi.radio.connect
2023-04-20 10:22:44 -04:00
Dan Halbert df41bd9ead change hex radio password validation; add password length doc 2023-04-20 09:47:25 -04:00
Scott Shawcroft f38d59be2c
Fix windows CI 2023-04-19 16:02:01 -07:00
Scott Shawcroft 13bb801211
Fix docs and windows 2023-04-19 15:42:02 -07:00
Scott Shawcroft 66edcf5d03
Add PicoDVI support
PicoDVI in CP support 640x480 and 800x480 on Feather DVI, Pico and
Pico W. 1 and 2 bit grayscale are full resolution. 8 and 16 bit
color are half resolution.

Memory layout is modified to give the top most 4k of ram to the
second core. Its MPU is used to prevent flash access after startup.

The port saved word is moved to a watchdog scratch register so that
it doesn't get overwritten by other things in RAM.

Right align status bar and scroll area. This normally gives a few
pixels of padding on the left hand side and improves the odds it is
readable in a case. Fixes #7562

Fixes c stack checking. The length was correct but the top was being
set to the current stack pointer instead of the correct top.
Fixes #7643

This makes Bitmap subscr raise IndexError instead of ValueError
when the index arguments are wrong.
2023-04-19 15:14:02 -07:00
Scott Shawcroft 09c2c5ef0e
Merge pull request #7876 from thess/CORS-update
Simplify CORS checks and don't restrict host names.
2023-04-19 11:07:34 -07:00
Dan Halbert e105bf1690
Merge pull request #7879 from milindmovasha/espressif_analogbufio_fix
Bug fixes for analogbufio espressif implementation
2023-04-19 13:17:59 -04:00
Milind fd1e9cf8f1
1. Changed attenuation from ADC_ATTEN_DB_0 to ADC_ATTEN_DB_11
2. Scaling the 12-bit values received from DMA engine to 16-bit value
2023-04-19 21:46:08 +05:30
CDarius 14ecc44fbc Merge branch 'main' into m5stack_core2 2023-04-19 08:22:10 +00:00
CDarius e5a5a348fd Fixed wrong GPIO number for touch screen interrupt 2023-04-19 08:17:10 +00:00
Ted Hess 8980ebfa16 Simplify CORS checks and don't restrict host names.
Minor socket cleanup.
2023-04-18 22:09:48 -04:00
silabs-BelaV 4e25a4f6b3
Silabs' new Pull Request for submoduling the ports/silabs/tools/slc_cli_linux/ (#7874)
Doing a squash merge to avoid having the `slc_cli_linux` .zip files in the history. They were added in one commit and removed and replaced with a submodule in another.

* Initial commit for xg24

* Fix SLC issue

* Fix SLC extract fail

* Change board's name

* Correct spelling of code

Build immediately after slc generate

* Remove VID and PID

* Change creator and creation id

* Apply new creator_id and creation_id

* Update makefile, error message, mcu_processor function

* Update mpconfigboard.mk

* Update Board extensions, PORT_DEPS

* Update makefile

* Add exclude_patterns

* Show java, jinja2 version

* Show path for debugging CI

* Add requirements-dev for slc

* Add PATH slc_cli

* Update background function

* Add jinja2 PATH

* Show PATH

* Update jinja2 path

* Update jinja2 path

* Update jinja2 path

* Update jinja2 path

* Change slc folder

* Change markupsafe folder

* Add symbolic link for slc

* Update makefile

* Update makefile

* Update MX25R3235F.toml from submodule nvm.toml

* alphabetize the list

* Remove slc_cli_linux folder

* Update slc_cli submodule

---------

Co-authored-by: Chat Nguyen <cvnguyen@silabs.com>
Co-authored-by: silabs-ChatNguyen <chat.nguyen@silabs.com>
Co-authored-by: silabs-ChatNguyen <126220343+silabs-ChatNguyen@users.noreply.github.com>
2023-04-18 12:42:16 -04:00
Scott Shawcroft ebfde5c3fa
Merge pull request #7865 from CanyonCasa/reset
Reset stuck low detection
2023-04-18 08:42:23 -07:00
MicroDev 4b2578cd96
Merge pull request #7870 from CanyonCasa/onewire_doc
Fixed outdated reference link
2023-04-18 19:58:45 +05:30
MicroDev 5820748127
Merge pull request #7873 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2023-04-18 19:57:06 +05:30
Jeff Epler 7186235fa2
Translated using Weblate (French)
Currently translated at 97.9% (979 of 1000 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/fr/
2023-04-18 15:22:14 +02:00
Dan Halbert 3871501b5f
Merge pull request #7872 from dhalbert/apt-get-update
Add 'sudo apt-get update' before any 'sudo apt-get install'
2023-04-17 21:19:29 -04:00
Dan Halbert d1df7e9cff Add 'sudo apt-get update' before any 'sudo apt-get install' 2023-04-17 19:51:02 -04:00
Debian 304134c6a4 Fixed outdated reference link 2023-04-17 12:54:59 -06:00
CanyonCasa 61f868a14e
Update shared-module/onewireio/OneWire.c
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2023-04-17 12:02:45 -06:00
Scott Shawcroft 3cd6dff1d2
Merge pull request #7869 from thess/static-web-pages
Some improvements to Web Workflow static web pages
2023-04-17 09:22:25 -07:00
RetiredWizard a4cb73a567
Add MAX(0,xxx-1) to prevent potential display wrap 2023-04-16 18:42:00 -04:00
Ted Hess 27a97dec16 Static web pages:
- Move loading .js scripts from <head> to <body> for faster rendering
   - Enable back-button support for file system/editor navigation
   - Close WebSocket when navigating away from /cp/serial
   - Use better looking Blinka icon.
2023-04-16 15:53:07 -04:00
Dan Halbert 4d7e54310c
Merge pull request #7868 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2023-04-16 10:35:46 -04:00
Andi Chandler bf548efd85
Translated using Weblate (English (United Kingdom))
Currently translated at 100.0% (1000 of 1000 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/en_GB/
2023-04-16 15:51:48 +02:00
RetiredWizard a8c78d8d2e displayio arg validation tweaking 2023-04-15 23:44:30 -04:00
Richard Ellis ec78a23a56 Code changes to allow 64 character hex WiFi passwords to be used with
wifi.radio.connect.

Fixes adafruit/circuitpython#7677.
2023-04-15 22:54:57 -04:00
Debian 8927e41180 Reset stuck low detection 2023-04-15 17:05:12 -06:00
Dan Halbert 15f1bcaa90
Merge pull request #7864 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2023-04-15 08:45:50 -04:00
Andi Chandler 5828a9852f
Translated using Weblate (English (United Kingdom))
Currently translated at 86.4% (864 of 1000 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/en_GB/
2023-04-15 13:47:58 +02:00
CDarius d765efd71c Moved EXTEN and DCDC2 on register 0x12 2023-04-14 13:08:52 +00:00