Commit Graph

19708 Commits

Author SHA1 Message Date
Kevin Matocha 0c012da080 refactor displayio set_pixel for use in bitmap_tools 2021-03-07 11:22:30 -06:00
Hosted Weblate baeb3e91a6 Merge remote-tracking branch 'origin/main' into main 2021-03-07 17:09:58 +01:00
Jeff Epler a4133c4545
Merge pull request #4344 from jepler/vm-size-optimizations
Vm size optimizations: Get back 1500 bytes for 3.2% VM speed decrease
2021-03-07 10:09:51 -06:00
Jose David M 1c2a1a672f
Translated using Weblate (Spanish)
Currently translated at 100.0% (974 of 974 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/es/
2021-03-07 16:50:47 +01:00
Jeff Epler 156ee4833a circuitpy_mpconfig: Disable flash multi-partition
This adds some additional code in mkfs which doesn't seem necessary, and
Disabling it saves 172 bytes flash.

Testing performed: Using a Feather M0 Adalogger, checked that
 * an sdcard could still be mounted (using adafruit_sdcard)
 * os.listdir() of "/" and "/sd" worked
 * CIRCUITPY still mounted
2021-03-07 09:37:18 -06:00
Artyom Skrobov 1d33353ed3
[readme] minor clarification / deduplication 2021-03-07 09:19:49 +02:00
nitz 8e8368d594
Add sparkfun_nrf52840_micromod to `build.yml` 2021-03-07 01:25:31 -05:00
nitz 3b76299f39
Add new nRF port for SF MicroMod nRF52840. 2021-03-07 01:06:50 -05:00
FBSeletronica 17aa9ae3f6 Update vendor ID for Espressif ESP32S2 Modules 2021-03-06 18:43:34 -03:00
FBSeletronica 4a50f1dd6f Update Vendor ID for Espressif 2021-03-06 18:36:53 -03:00
FBSeletronica e68ab5ae2a Fix build.yml wifi Franzininho WIFI wrover Board 2021-03-06 18:33:24 -03:00
FBSeletronica 67e598a863 Fix build.yml wifi Franzininho WIFI wroom Board 2021-03-06 18:26:13 -03:00
FBSeletronica 48e727f7d6 adding port for Franzininho WIFI board ESP32S2 w/Wrover 2021-03-06 17:47:27 -03:00
FBSeletronica 6cf9c5158c adding port for Franzininho WIFI board 2021-03-06 17:15:54 -03:00
Jeff Epler 08e1f926fe
Merge pull request #4346 from jepler/fix-nvm-doc
nvm: fix doc markup
2021-03-06 13:32:09 -06:00
Jeff Epler b23c5b2d68 nvm: fix doc markup
closes #4336
2021-03-06 07:54:54 -06:00
Jeff Epler 4f040af481 vm: Make the speed-size trade-off compile time settable
.. and enable for all samd21 boards
2021-03-05 18:29:27 -06:00
Jeff Epler 67fb3054b4
Merge pull request #4342 from jamesbowman/main
Enable EVE low-level for Teensy 4.0 and 4.1
2021-03-05 17:25:00 -06:00
Jeff Epler 7b359d7a8a vm: Consolodate all dispatch instructions
Flash savings: 1268 bytes
Performance: 10,000 iteration loop .665 -> .676s (+1.7%)
2021-03-05 16:52:35 -06:00
Jeff Epler 28638df589 vm: cut vmentrytable size
This also adds a bit of code everywhere we DISPATCH(), but the net is
+232 bytes free on Feather M0 Adalogger.

Key assumption: All of the offsets in mp_execute_bytecode fit in 16 bits;
it is not clear whether the compiler will verify this assumption (e.g.,
by warning that a constant will be truncated)
2021-03-05 16:52:35 -06:00
Jeff Epler d2056a46ee
Merge pull request #4335 from tyomitch/main
[nrf] No need to store `buffer_length` as part of `audiopwmio_pwmaudioout_obj_t`
2021-03-05 15:54:10 -06:00
Jeff Epler bed96a98d2
Merge pull request #4337 from tyomitch/patch-1
[stm] `curr_pulseout` can be `STATIC`
2021-03-05 15:53:31 -06:00
Jeff Epler 2881699cf9
Merge pull request #4338 from tyomitch/patch-2
[audiocore] `buffer_read` was never used
2021-03-05 15:52:39 -06:00
Dan Halbert dfcc9c6d8b
Merge pull request #4340 from jepler/fix-ci-failure-info
build.yml: Fix 'Print failure info' to not error
2021-03-05 15:00:50 -05:00
James Bowman bff585ffd2 Enable EVE low-level for Teensy 4.0 and 4.1 2021-03-05 11:32:58 -08:00
Jeff Epler cd1f19020f raspberrypi: move landmine Makefile comments 2021-03-05 12:59:55 -06:00
Jeff Epler f7e42bfebc build.yml: Fix 'Print failure info' to not error
Print Failure Info is for printing differences detected by 'Test all'.  When some other step fails, then "*.exp" doesn't match any files at all, and _this_ step fails too.

We will assume that Github Actions always runs with bash as the shell (as it does today). In this case, we can set the  "nullglob" shell option, so that a non-existent glob expands to nothing, instead of to itself.
2021-03-05 12:50:15 -06:00
Jeff Epler 3c50918adc
Merge pull request #4333 from dhalbert/compile-options-shrink-builds
Shrink the smallest builds with compile options
2021-03-05 10:36:41 -06:00
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
Artyom Skrobov 915a5eddeb [audiocore] `buffer_read` was never used 2021-03-05 10:25:09 -05:00
Dan Halbert 4cf6579e22 remove general changes; not consistent across builds 2021-03-05 10:10:50 -05:00
Artyom Skrobov e0b96c0f43 [nrf] No need to store `buffer_length` as part of `audiopwmio_pwmaudioout_obj_t` 2021-03-05 06:01:58 -05:00
Artyom Skrobov 4720dc179a
[stm] `curr_pulseout` can be `STATIC`
Not used outside of PulseOut.c
2021-03-05 12:52:13 +02:00
Dan Halbert c97721455a Shrink the smallest builds with compile options 2021-03-04 23:07:06 -05:00
Dan Halbert c68073e12b
Merge pull request #4331 from dhalbert/tilegrid-transpose-fix
Tilegrid transpose fix
2021-03-04 21:53:21 -05:00
Jeff Epler 2ab13d6d1e bump xtensa cache timestamp again 2021-03-04 15:52:31 -06:00
DavePutz a4dda3a5ba
Merge branch 'main' into issue_4111 2021-03-04 14:38:00 -06:00
Jeff Epler c9dea3d72d make translate 2021-03-04 14:23:06 -06:00
Dan Halbert b1268107af change esp build cache key (again) 2021-03-04 15:22:56 -05:00
Dan Halbert 68552e90e8 Merge remote-tracking branch 'adafruit/main' into tilegrid-transpose-fix 2021-03-04 15:04:38 -05:00
DavePutz c5c297d2c0
Update PulseOut.c 2021-03-04 13:53:19 -06:00
DavePutz b7f03f9487
Update PulseOut.h 2021-03-04 13:52:40 -06:00
DavePutz 2d941b070f
Changed interrupt to per-word basis; cleaned up other small items 2021-03-04 13:51:46 -06:00
Dan Halbert d1184e7e94 Be cognizant of null transform for .transpose_xy 2021-03-04 14:40:50 -05: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
Scott Shawcroft 7970c882a6
Merge pull request #4316 from microDev1/issue-template
Add issue templates
2021-03-04 10:16:09 -08:00
Scott Shawcroft 3698d4bc5d
Merge pull request #4287 from pewpew-game/displayio-transpose-uint
Use uint16 for temporary variables in displayio.TileGrid
2021-03-04 10:01:07 -08: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