Commit Graph

26506 Commits

Author SHA1 Message Date
Jeff Epler 0553561975
Merge pull request #5078 from rpavlik/patch-1
Update ter-u12n.bdf
2021-08-15 19:57:35 -05:00
foamyguy 029150ac3b validate initial point is in-bounds 2021-08-15 19:46:20 -05:00
foamyguy 6f783060c2 ignore points outside of bitmap 2021-08-15 19:11:15 -05:00
Seth Kerr 4f52528a3f replaced circuitpython.pot with text from adafruit main 2021-08-15 14:08:39 -06:00
Seth Kerr 8058736338 temporary new circuitpython.pot file 2021-08-15 14:07:08 -06:00
Seth Kerr 201883dcc1 removed bread 2040 from commit 2021-08-15 14:02:43 -06:00
Seth Kerr 3b491ac0f3 ran pre-commit locally 2021-08-15 14:02:43 -06:00
Seth Kerr 2ebeeb5daf add ODT PixelWing ESP32S2 2021-08-15 14:02:43 -06:00
Ryan Pavlik 08f43d6766 Fix number of chars in default font to make it valid bdf. 2021-08-15 14:31:58 -05:00
Dan Halbert 498755af01
Merge pull request #5149 from espboy/main
add ai_thinker_esp_12k_nodemcu
2021-08-15 10:35:11 -04:00
codetyphon fd8fe6f013
Update ports/esp32s2/boards/ai_thinker_esp_12k_nodemcu/mpconfigboard.h
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2021-08-15 20:39:53 +08:00
Dan Halbert 6e885c8610
Merge pull request #5152 from microDev1/traceback
Fix crash on raise of reload exception
2021-08-15 08:25:17 -04:00
microDev 27563936ed
fix crash on raise of reload exception 2021-08-15 11:11:11 +05:30
codetyphon 7a48fc05b4 fix ai-tinker-esp-12k path 2021-08-15 13:29:42 +08:00
codetyphon e29346b79a ai_thinker_esp_12k_nodemcu 2021-08-15 10:18:40 +08:00
Dan Halbert f37e1d7bf5 squeeze a couple of boards 2021-08-14 17:36:05 -04:00
Dan Halbert 3dc2b4c2d3 at least original functionality with new API 2021-08-14 12:36:40 -04:00
Dan Halbert 4f8ff12afa wip 2021-08-14 12:36:40 -04:00
codetyphon 8945d17aa2
Update mpconfigboard.mk 2021-08-14 23:32:40 +08:00
codetyphon 605236505a
alphabetical order 2021-08-14 23:27:58 +08:00
Jim Mussared c70930fb24 tests/multi_bluetooth/ble_subscribe.py: Add test for subscription.
This tests both sending indications/notifications from a server to
subscribed clients via gatts_write(...,send_update=True) and subscribing
from a client.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2021-08-14 22:44:47 +10:00
codetyphon c577d3b6a4
add ai_thinker_esp_12k 2021-08-14 20:29:33 +08:00
codetyphon 221d66c603
Create board.c 2021-08-14 20:27:51 +08:00
codetyphon cd20e3d398
add ai_thinker_esp_12k 2021-08-14 20:26:20 +08:00
Jim Mussared 1d9e489af3 extmod/modbluetooth: Add send_update arg to gatts_write.
This allows the write to trigger a notification or indication, but only to
subscribed clients. This is different to gatts_notify/gatts_indicate,
which will unconditionally notify/indicate.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2021-08-14 22:21:55 +10:00
Jim Mussared 5733c49174 stm32,esp32,rp2: Enable MICROPY_PY_FSTRINGS by default.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2021-08-14 16:58:40 +10:00
Jim Mussared 692d36d779 py: Implement partial PEP-498 (f-string) support.
This implements (most of) the PEP-498 spec for f-strings and is based on
https://github.com/micropython/micropython/pull/4998 by @klardotsh.

It is implemented in the lexer as a syntax translation to `str.format`:
  f"{a}" --> "{}".format(a)

It also supports:
  f"{a=}" --> "a={}".format(a)

This is done by extracting the arguments into a temporary vstr buffer,
then after the string has been tokenized, the lexer input queue is saved
and the contents of the temporary vstr buffer are injected into the lexer
instead.

There are four main limitations:
- raw f-strings (`fr` or `rf` prefixes) are not supported and will raise
  `SyntaxError: raw f-strings are not supported`.

- literal concatenation of f-strings with adjacent strings will fail
    "{}" f"{a}" --> "{}{}".format(a)    (str.format will incorrectly use
                                         the braces from the non-f-string)
    f"{a}" f"{a}" --> "{}".format(a) "{}".format(a) (cannot concatenate)

- PEP-498 requires the full parser to understand the interpolated
  argument, however because this entirely runs in the lexer it cannot
  resolve nested braces in expressions like
    f"{'}'}"

- The !r, !s, and !a conversions are not supported.

Includes tests and cpydiffs.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2021-08-14 16:58:40 +10:00
microDev 82a952b6aa
Merge pull request #5127 from tannewt/fix_samd_timer_leak
Reset timers separate from pwmio
2021-08-14 11:26:18 +05:30
Scott Shawcroft 3ffab36cdc
Merge remote-tracking branch 'adafruit/main' into fix_samd_timer_leak 2021-08-13 15:20:25 -07:00
Dan Halbert ffb9ecfeca
Merge pull request #5139 from tannewt/onewireio
Move OneWire to `onewireio`
2021-08-13 18:10:04 -04:00
Scott Shawcroft af823cce07
Merge pull request #5137 from jepler/codeformat-error-checking
Codeformat version checking
2021-08-13 14:53:51 -07:00
Mark 9deba6b3f8
Merge pull request #5147 from tannewt/tweak_tx_power
Increase tx power for BLE workflow pairing
2021-08-13 16:49:41 -05:00
Scott Shawcroft d528386d4e
Merge pull request #5143 from tylercrumpton/add-crumps2
Add CrumpS2 ESP32-S2 board
2021-08-13 12:03:42 -07:00
Scott Shawcroft bc23140392
Merge pull request #5144 from rpavlik/patch-2
Update README.rst
2021-08-13 11:34:26 -07:00
Scott Shawcroft 49dcdef512
Fix copy pasta 2021-08-13 11:32:26 -07:00
Scott Shawcroft fdf49a4b2f
Increase tx power for BLE workflow pairing 2021-08-13 11:30:09 -07:00
Scott Shawcroft bfbd954240
Merge pull request #5142 from weblate/weblate-circuitpython-main
Translations update from Weblate
2021-08-13 11:21:27 -07:00
Ryan A. Pavlik 69d995aa4d
Update README.rst
Fix typo in URL text: the actual link was fine.
2021-08-13 10:57:09 -05:00
foamyguy 4d8494f1cd fix stubs 2021-08-13 10:42:21 -05:00
foamyguy ec8b31e7b4 code format and translations 2021-08-13 10:13:38 -05:00
foamyguy c1e164e1ff rename to boundary_fill and clean up comments 2021-08-13 09:52:51 -05:00
foamyguy 0bbb0f1d06 Merge branch 'adafruit_main' into bitmaptools_paint_fill 2021-08-13 09:49:24 -05:00
Damien George 162bf3c5d8 tools/mpremote: Add "devs" shortcut for "connect list".
See issue #7480.

Signed-off-by: Damien George <damien@micropython.org>
2021-08-14 00:13:35 +10:00
Damien George 1f48934312 tools/mpremote: Fix connect-list in case VID/PID are None.
Which can be the case on Windows and macOS for certain serial devices.

Fixes issue #7636.

Signed-off-by: Damien George <damien@micropython.org>
2021-08-14 00:13:35 +10:00
Damien George 8fcdb5490c extmod/modlwip: Fix close and clean up of UDP and raw sockets.
The correct callback-deregister functions must be called dependent on the
socket type, otherwise resources may not be freed correctly.

Signed-off-by: Damien George <damien@micropython.org>
2021-08-13 23:46:11 +10:00
Damien George 90d47ee34d tests/run-multitests.py: Add broadcast and wait facility.
Test instances can now use the following methods to synchronise their
execution:

    multitest.broadcast("sync message")
    multitest.wait("sync message")

Signed-off-by: Damien George <damien@micropython.org>
2021-08-13 23:26:34 +10:00
Patrick Van Oosterwijck e49f609186 tools/autobuild: Add auto build for Silicognition wESP32. 2021-08-13 23:25:24 +10:00
Daniel Mizyrycki 8f45f5ee4f nrf: Set .mpy features consistent with documentation and other ports.
This allows nrf devices to load .mpy files.  And nrf52840 and nrf9160 based
boards also support compiling and loading native code.
2021-08-13 23:22:54 +10:00
Jim Mussared d7fbc755dc docs/library/index.rst: Clarify module naming and purpose.
Adds section about extending built-in modules from Python.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2021-08-13 23:14:08 +10:00
Jim Mussared ee549d725a tools/gen-cpydiff.py: Don't rename foo to ufoo in diff output.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2021-08-13 23:14:08 +10:00