Commit Graph

24463 Commits

Author SHA1 Message Date
Jeff Epler 7bee37e9c7
Merge pull request #4981 from DavePutz/issue_4939
Add LED and GP25 for Cytron Maker Pi Pico
2021-07-10 20:04:40 -05:00
Jeff Epler fd4a7fce91 add tool to parse out firmware sizes for comparison 2021-07-10 19:11:47 -05:00
DavePutz 25e799e51a
Add LED and GP25 for Cytron Maker Pi Pico 2021-07-09 20:49:59 -05:00
Radomir Dopieralski b2aa17a553 pewpew10 - use _pew.get_ticks() for time tracking
Somehow PR https://github.com/adafruit/circuitpython/pull/4200 got
reverted, repeating it, with a proper tag.
2021-07-10 01:50:43 +02:00
Jeff Epler 7302bc09a7 rename the type flag to EXTENDED for consistency 2021-07-09 14:59:37 -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
Scott Shawcroft 58fdf9e940
Merge pull request #4975 from DavePutz/issue_4945
Issue #4945 - handle multiple PulseIns
2021-07-09 11:03:16 -07:00
Scott Shawcroft 0e88b77b3e
Merge pull request #4977 from pewpew-game/samd21-filesystem-size
Allow changing size of the filesystem on samd21 per board
2021-07-09 11:00:13 -07: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
Jeff Epler 3191357807 Merge remote-tracking branch 'origin/main' into refine-stubs 2021-07-08 19:05:26 -05:00
Kattni Rembor 825a706135 Turn off MIDI on one build, fix name. 2021-07-08 17:31:10 -04:00
Radomir Dopieralski 92fa1055ef Allow changing size of the filesystem on samd21 per board
As the CircuitPython grows, it may at some point no longer be possible
to squeeze it on some of the flash-less SAMD21 boards, so it would be
good to have the option of shrinking the filesystem size on per-board
basis. This change allows to define CIRCUITPY_INTERNAL_FLASH_FILESYSTEM_SIZE
inside the board's mpconfigborard.h file.
2021-07-08 22:19:54 +02:00
Kattni Rembor 289575a811 Adding rainbow module. 2021-07-08 15:55:13 -04:00
root 4046b0fb0a Issue #4945 - handle multiple PulseIns 2021-07-08 14:09:21 -05: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
Jeff Epler a19a48f4b6 make translate 2021-07-07 09:08:04 -05:00
Jeff Epler 66155ff539 Exclude files inside ulab from translation
.. These files can be created if the developer runs
"./build.sh" or "./build-cp.sh" inside extmod/ulab.
2021-07-07 09:07:21 -05:00
Jeff Epler 317483785f Fix esp32 build errors 2021-07-07 09:07:00 -05:00
Jeff Epler 21e2dfaee2 Fix type checking against struct time 2021-07-07 08:43:18 -05:00
Jeff Epler 26ae1c7705 Move & comment the field access macros 2021-07-07 08:32:59 -05:00
Jeff Epler 44a3da55e6 Fix EXTENDED_FIELDS macro to work with clang
This appears to work with clang versions at least since 3.0.
2021-07-07 08:32:33 -05:00
Jeff Epler 2997113e73 obj.h: Make mp_obj_is_type work between full & non-full types
By comparing the address of the initial 'name' field instead of the
addresses of the objects themselves, a small amount of type safety is
added back, vs just casting to void.

In the event that some other kind of object is passed in as 't',
which happens to have a 'name' field of the right type, the construct
would be (undesirably) accepted but it would almost certainly evaluate
to false at runtime.
2021-07-07 08:31:54 -05: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
root f98ec0cfd6 Fix formatting 2021-07-06 14:43:46 -05:00
root 211ba6f3cc Merge branch 'issue_4937' of https://github.com/DavePutz/circuitpython into issue_4937 2021-07-06 14:38:59 -05:00
root bfa777c55a Add check for timer success 2021-07-06 14:34:15 -05:00
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
Jeff Epler f2878320af incorporate ulab changes 2021-07-06 11:20:40 -05:00
Jeff Epler d37f8a1a5a milestone: a selection of builds succeed 2021-07-06 10:57:44 -05:00
Jeff Epler 0d756066e8 milestone: coverage make test_full passes 2021-07-06 10:37:32 -05:00
Jeff Epler df56ba207f WIP 2021-07-06 09:25:56 -05:00
Jeff Epler cd119ca3ec Introduce, use getters for fields which will be optional in types 2021-07-06 09:15:01 -05: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
root b2e72b2912 fix formatting 2021-07-05 23:13:18 -05:00
DavePutz 5fa15493df
Update PulseOut.c
Fix formatting
2021-07-05 14:44:13 -05:00
root 6e4613f1a1 Fix formatting 2021-07-05 12:30:26 -05:00
DavePutz 65f652c7e2
Update PulseOut.c
Fixed formatting issue
2021-07-05 12:29:22 -05:00
root 9814386d2e Fix for issue #4937 - Implement minimum pulseout time 2021-07-05 11:38:05 -05: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