Commit Graph

24268 Commits

Author SHA1 Message Date
Jeff Epler
fd4a7fce91 add tool to parse out firmware sizes for comparison 2021-07-10 19:11:47 -05:00
Jeff Epler
52e75c645d makeqstrdata: Don't include strings that are a net loss! 2021-07-09 14:26:43 -05:00
Jeff Epler
8836198ff1 TextSplitter: don't mutate 'words'
I was puzzled by why the dictionary words were sorted by length.
It was because TextSplitter sorted its parameter, instead of a copy.

This doesn't affect encoding size, but does affect the encoding NUMBER
of the found words.  We'll deliberately restore sorting by length next,
for other reasons, but not by spooky action.
2021-07-09 14:02:31 -05:00
Jeff Epler
99abd03b7a makeqstrdata: use an extremely accurate dictionary heuristic
Try to accurately measure the costs of including a word in the dictionary
vs the gains from using it in messages.

This saves about 160 bytes on trinket_m0 ja, the fullest translation
for that board.  Other translations on the same board all have savings,
ranging from 24 to 228 bytes.

```
Translation     Before  After   Savings
ja              1164    1324    160
de_DE           1260    1396    136
fr              1424    1652    228
zh_Latn_pinyin  1448    1520    72
pt_BR           1584    1736    152
pl              1592    1640    48
es              1724    1816    92
ko              1724    1816    92
fil             1764    1800    36
it_IT           1896    2040    144
nl              1956    2136    180
ID              2072    2180    108
cs              2124    2148    24
sv              2340    2448    108
en_x_pirate     2644    2740    96
en_GB           2652    2752    100
el              2656    2768    112
en_US           2656    2768    112
hi              2656    2768    112
```
2021-07-09 12:45:49 -05:00
Dan Halbert
7c2fd270a2
Merge pull request #4976 from kattni/rainbow
Adding rainbow module.
2021-07-08 21:56:38 -04:00
Kattni Rembor
825a706135 Turn off MIDI on one build, fix name. 2021-07-08 17:31:10 -04:00
Kattni Rembor
289575a811 Adding rainbow module. 2021-07-08 15:55:13 -04:00
Dan Halbert
e51d5e4df2
Merge pull request #4974 from dhalbert/rp2040-audio-and-spi-fixes
Rp2040 audio fixes; disallow ctrl-C interrupts of SPI and PIO.
2021-07-08 14:42:37 -04:00
Scott Shawcroft
45ed2f4008
Merge pull request #4973 from lesamouraipourpre/patch-1
Minor docs fix in TileGrid.c
2021-07-08 11:23:13 -07:00
Dan Halbert
ab52a92704 Disallow ctrl-C interrupts of RP2040 SPI and PIO 2021-07-08 13:42:24 -04:00
Dan Halbert
a843b8a0d4 Merge remote-tracking branch 'adafruit/main' into rp2040-audio-and-spi-fixes 2021-07-08 08:22:21 -04:00
Dan Halbert
bd6826496c Fix various RP2040 audio dma things: (see detailed commit message)
1. Check for correct error values from dma_claim_unused_channel.
2. Introduce a .stereo flag for simplicity.
3. Clarify PWM carrier frequency choice.
4. Start introducing quiescent audio value. Still need to ramp up/down.
5. Redo audio stop logic a bit.
6. Fix (unrelated) displayio dependency things.

There is still an interference problem between other DMA users and audio. Still debugging this.
2021-07-08 08:14:49 -04:00
James Carr
2e068d0384
Minor docs fix in TileGrid.c 2021-07-07 22:30:30 +01:00
Dan Halbert
53c01176e9
Merge pull request #4972 from microDev1/patch
Delete ports/nrf/examples directory
2021-07-07 08:32:14 -04:00
Dan Halbert
94428305ca
Merge pull request #4967 from weblate/weblate-circuitpython-main
Translations update from Weblate
2021-07-07 08:31:01 -04:00
microDev
b4e763613a
delete ports/nrf/examples directory 2021-07-07 15:13:26 +05:30
hexthat
d660d229ab
Translated using Weblate (Chinese (Pinyin))
Currently translated at 100.0% (1007 of 1007 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/zh_Latn/
2021-07-06 18:32:14 +02:00
microDev
23baa02c11
Merge pull request #4966 from dgriswo/RP2040-SPI-Fix
Adafruit Macropad RP2040: Fix SPI definition
2021-07-06 14:46:49 +05:30
Daniel Griswold
2519b06478 fix spi definition 2021-07-06 01:15:32 -04:00
microDev
cece6492a5
Merge pull request #4963 from rsbohn/main
Enable audiomixer for esp32s2.
2021-07-03 22:48:12 +05:30
Randall Bohn
6bb44674a5
Enable audiomixer for esp32s2.
Allows playing sounds via Mixer on I2SOut. Tested on the feathers2.
2021-07-03 04:34:55 -06:00
Dan Halbert
c37f354d2d
Merge pull request #4958 from dhalbert/rp2040-audio-fixes
RP2040 PWMAudioOut: Release DMA channels after play has finished
2021-07-02 10:03:54 -04:00
Dan Halbert
9190436a0a
Merge pull request #4953 from weblate/weblate-circuitpython-main
Translations update from Weblate
2021-07-02 09:08:17 -04:00
Hosted Weblate
1a0529c5d2
Merge remote-tracking branch 'origin/main' into main 2021-07-02 13:34:40 +02:00
Dan Halbert
5756ddd2ed
Merge pull request #4960 from microDev1/fix-spi
ESP32S2: Fix spi_never_reset()
2021-07-02 07:34:28 -04:00
microDev
a4bd4e916b
esp32s2 - fix spi_never_reset() 2021-07-02 14:40:41 +05:30
Hosted Weblate
3d5457049e
Merge remote-tracking branch 'origin/main' into main 2021-07-02 05:05:28 +02:00
Dan Halbert
c7ffc2c10b
Merge pull request #4957 from tannewt/ble_serial
Add serial over BLE
2021-07-01 23:05:18 -04:00
Dan Halbert
d886e8041d Turn off pwmio on meow meow for space reasons 2021-07-01 22:14:37 -04:00
Dan Halbert
33bbb8b1f4 RP2040 PWMAudioOut: Release DMA channels after play has finished. 2021-07-01 17:36:29 -04:00
Scott Shawcroft
3940878695
Shrink builds and handle 0-length writes 2021-07-01 12:49:11 -07:00
Hosted Weblate
22f336ef16
Merge remote-tracking branch 'origin/main' into main 2021-07-01 16:40:15 +02:00
Dan Halbert
37c52110c5
Merge pull request #4943 from jepler/double-wide-colon
remove 'double-wide' characters not in the font
2021-07-01 10:40:08 -04:00
Hosted Weblate
e7d3c5efe2
Merge remote-tracking branch 'origin/main' into main 2021-07-01 04:59:51 +02:00
Dan Halbert
7f39779f45
Merge pull request #4931 from jepler/struct-time-construct
Allow construction of struct_time from another struct_time
2021-06-30 22:59:46 -04:00
Dan Halbert
4d953dcbdd
Fix missing quote in locale/zh_Latn_pinyin.po
Co-authored-by: microDev <70126934+microDev1@users.noreply.github.com>
2021-06-30 22:54:03 -04:00
Hosted Weblate
b6c8098671
Merge remote-tracking branch 'origin/main' into main 2021-07-01 04:50:54 +02:00
Dan Halbert
98002cf0ab
Merge pull request #4947 from microDev1/input-validation
Fix bytes() and bytearray() input validation
2021-06-30 22:50:46 -04:00
Hosted Weblate
0bd181c4d0
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-06-30 19:19:33 +02:00
Hosted Weblate
f3cde244e8
Merge remote-tracking branch 'origin/main' into main 2021-06-30 19:19:30 +02:00
Wellington Terumi Uemura
be206b7ba0
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (1008 of 1008 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2021-06-30 19:19:30 +02:00
Scott Shawcroft
54cadb96ec
Merge pull request #4952 from jepler/colorconverter-bgr
ColorConverter: Add "BGR" color modes.
2021-06-30 10:19:25 -07:00
Scott Shawcroft
59a0dda9c5
Merge pull request #4950 from ajs256/issue-forms
Convert to using issue forms
2021-06-30 10:18:01 -07:00
Scott Shawcroft
aca1314a3e
Merge pull request #4948 from dmcomm/pulsein-len-docs
Fix pulseio.PulseIn __len__() documentation
2021-06-30 10:17:12 -07:00
Jeff Epler
d83a21b984 ColorConverter: Add "BGR" color modes.
The BGR565_SWAPPED mode is needed for OV2640 cameras.
2021-06-30 10:29:31 -05:00
microDev
d99d818bf8
update issue form and template 2021-06-30 15:42:22 +05:30
ajs256
89678f79a7 Convert to using issue forms 2021-06-29 21:32:32 -07:00
Scott Shawcroft
f2ef586331
clean up 2021-06-29 11:54:15 -07:00
Scott Shawcroft
826e25989c
Merge pull request #4949 from pewpew-game/macropad-oled
MacroPad RP2040: Add initialization for the OLED display
2021-06-29 11:08:14 -07:00
Limor "Ladyada" Fried
176c5c5cd5
Merge pull request #4942 from pewpew-game/main
PewPew M4: use keypad instead of gamepad
2021-06-29 11:54:01 -04:00