Commit Graph

19551 Commits

Author SHA1 Message Date
Jeff Epler 2ae1e7de61 WIPrp2040: Implement IncrementalEncoder
Any two consecutive pins can be used for an IncrementalEncoder

Testing performed: Put a synthesized (few hundred counts per second) quadrature signal into GP2/3 and read the encoder out.  Performed filesystem operations at the same time to stress test it.

The reasons for not using common_hal_rp2pio_statemachine_readinto are commented on.
2021-03-05 10:31:29 -06:00
Jeff Epler 2ab13d6d1e bump xtensa cache timestamp again 2021-03-04 15:52:31 -06:00
Jeff Epler c9dea3d72d make translate 2021-03-04 14:23:06 -06:00
Jeff Epler bc14ed31f6 StateMachine.h: Add header for declaration of mcu_pin_obj_t typedef 2021-03-04 12:28:46 -06:00
Jeff Epler c023ec03ff PDMIn: Add missing deinit call 2021-03-04 12:28:06 -06:00
Jeff Epler bd01d31542 rp2pio: Add pins_are_sequential
This can be used where the standard API calls for a list of pins, to check that they satisfy the requirements of the rp2pio state machine, e.g.,
```python
    def __init__(self, pin_a, pin_b):
        if not rp2pio.pins_are_sequential([pin_a, pin_b]):
            raise ValueError("Pins must be sequential")
```
2021-03-04 11:26:33 -06:00
Jeff Epler ff62b0d2c0 StateMachine: Add pull up/down for inputs 2021-03-04 11:26:29 -06:00
Jeff Epler 68ac14b309 StateMachine: Add in_available property
I named the property `in_available` because it is similar to pyserial.
However, it indicates the number of words in the fifo, not the number
of bytes.
2021-03-04 11:14:09 -06:00
Dan Halbert 2ae8a44b2a
Merge pull request #4325 from microDev1/fix-wdt
ESP32S2: Fix watchdog deinit
2021-03-04 11:04:01 -05:00
Dan Halbert 627c5f5bd4
Merge pull request #4327 from hathach/fix-4066-rp2040-hanged-tud_disconnect
fix rp2040 use of tud_disconnect
2021-03-04 10:50:26 -05:00
hathach c26120a3ac update tinyusb 2021-03-04 21:29:04 +07:00
hathach 6f99026a64 rp2040 use normal usb_irq_handler() 2021-03-04 21:29:04 +07:00
microDev 13453d35c6
fix watchdog deinit 2021-03-04 13:23:34 +05:30
Dan Halbert dca2989df8
Merge pull request #4317 from weblate/weblate-circuitpython-main
Translations update from Weblate
2021-03-03 20:19:24 -05:00
Hosted Weblate cca7679146 Merge remote-tracking branch 'origin/main' into main 2021-03-04 00:55:58 +01:00
Dan Halbert b71f3e1385
Merge pull request #4322 from dhalbert/group-list-member-fix
use self->members in displayio_group_set()
2021-03-03 18:55:51 -05:00
Jeff Epler 2be302fa0b
Added translation using Weblate (English (United Kingdom)) 2021-03-04 00:19:09 +01:00
Dan Halbert 29575ee439 use self->members in displayio_group_set() 2021-03-03 17:36:48 -05:00
Hosted Weblate bd06992a37 Merge remote-tracking branch 'origin/main' into main 2021-03-03 22:46:05 +01:00
Dan Halbert 71c43ca2dd
Merge pull request #4319 from jepler/feather-default-uart
feather rp2040: enable default board.UART
2021-03-03 16:46:00 -05:00
Hosted Weblate 3babdf7c7e Merge remote-tracking branch 'origin/main' into main 2021-03-03 22:28:32 +01:00
Jonny Bergdahl ac308872d6
Translated using Weblate (Swedish)
Currently translated at 100.0% (974 of 974 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2021-03-03 22:28:31 +01:00
Jeff Epler c5feceeafc
Merge pull request #4318 from dhalbert/update-idf-cache-id
force a new idf-cache id to fix build issues
2021-03-03 15:28:25 -06:00
Jeff Epler b0fca4fcda feather rp2040: enable default board.UART 2021-03-03 13:13:06 -06:00
Dan Halbert d6836047a8 force a new idf-cache id to fix build issues 2021-03-03 14:04:56 -05:00
Hosted Weblate 66fd861b22 Merge remote-tracking branch 'origin/main' into main 2021-03-03 18:42:55 +01:00
Wellington Terumi Uemura 20d2088851
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (974 of 974 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2021-03-03 18:42:54 +01:00
Dan Halbert cd48c5ee83
Merge pull request #4315 from dhalbert/rp2040-i2c-short-writes
RP2040: Implement short I2C writes (2 bytes or less) using bitbangio
2021-03-03 12:42:47 -05:00
Hosted Weblate 6281a9024b
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-03-03 17:47:31 +01:00
Hosted Weblate 9dff2d8b29 Merge remote-tracking branch 'origin/main' into main 2021-03-03 17:47:29 +01:00
Jonny Bergdahl 8a23298bfe
Translated using Weblate (Swedish)
Currently translated at 100.0% (971 of 971 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2021-03-03 17:47:29 +01:00
Scott Shawcroft 514b73bcf8
Merge pull request #4254 from gamblor21/rp2040_countio
Rp2040 countio
2021-03-03 08:47:24 -08:00
Scott Shawcroft 1d8933dd05
Merge pull request #4265 from DavePutz/pio_soft_reset
Clear out PIOs and State Machines on RP2040 soft reset
2021-03-03 08:43:57 -08:00
Scott Shawcroft 55e41d43eb
Merge pull request #4313 from weblate/weblate-circuitpython-main
Translations update from Weblate
2021-03-03 08:38:07 -08:00
Dan Halbert fb7a0f7efc add 1sec timeouts for I2C read and write 2021-03-03 09:43:57 -05:00
gamblor21 98075c5255 Fixed merge 2021-03-02 22:32:59 -06:00
Dan Halbert e3ab394cd6 works on nearly all sensors 2021-03-02 23:27:37 -05:00
Hosted Weblate dd88904cc1 Merge remote-tracking branch 'origin/main' into main 2021-03-03 05:19:18 +01:00
Dan Halbert 4167778bbc
Merge pull request #4312 from jepler/feather-rp2040-led
feather rp2040: add board.LED
2021-03-02 23:19:14 -05:00
Mark 37ee18349f
Merge branch 'main' into rp2040_countio 2021-03-02 19:47:53 -06:00
gamblor21 4246cc3f6d Counter and PWMOut slice conflict check 2021-03-02 19:32:06 -06:00
Jeff Epler b27afad9cb move LED to the right spot in the file 2021-03-02 19:02:38 -06:00
Hosted Weblate 9a98f590e4 Merge remote-tracking branch 'origin/main' into main 2021-03-03 02:01:43 +01:00
Wellington Terumi Uemura e9bb215bc2
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (971 of 971 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2021-03-03 02:01:43 +01:00
Jeff Epler efc2667b5f
Merge pull request #4186 from jepler/update-protomatter-rp2
Enable protomatter on RP2040 builds
2021-03-02 19:01:37 -06:00
Hosted Weblate a8964c3bcd
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-03-02 23:11:52 +01:00
Hosted Weblate f50f276100 Merge remote-tracking branch 'origin/main' into main 2021-03-02 23:11:49 +01:00
Jonny Bergdahl 38f7f23803
Translated using Weblate (Swedish)
Currently translated at 100.0% (971 of 971 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2021-03-02 23:11:49 +01:00
Dan Halbert 15615effc2
Merge pull request #4276 from bergdahl/patch-1
Update StateMachine.c
2021-03-02 17:11:45 -05:00
Dan Halbert 0a58d451ad
Merge pull request #4306 from Neradoc/fix-reset-to-safe
press reset to safe mode on ports where reset reason is not implemented
2021-03-02 15:44:52 -05:00