Commit Graph

16677 Commits

Author SHA1 Message Date
Lucian Copeland
2acd173e14 Implement core requested changes 2020-05-19 13:54:47 -04:00
Hosted Weblate
dbb304f4cf
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: CircuitPython/master
Translate-URL: https://hosted.weblate.org/projects/circuitpython/master/
2020-05-19 19:40:03 +02:00
Scott Shawcroft
1d77000c19
Update doc deps 2020-05-19 10:30:47 -07:00
Dustin Watts
f874e21ad7 Translated using Weblate (Dutch)
Currently translated at 52.5% (392 of 746 strings)

Translation: CircuitPython/master
Translate-URL: https://hosted.weblate.org/projects/circuitpython/master/nl/
2020-05-19 19:08:30 +02:00
Dustin Watts
bbe6ed5319 Translated using Weblate (Dutch)
Currently translated at 5.3% (40 of 746 strings)

Translation: CircuitPython/master
Translate-URL: https://hosted.weblate.org/projects/circuitpython/master/nl/
2020-05-19 19:08:30 +02:00
Dustin Watts
ebea4d158d Translated using Weblate (Dutch)
Currently translated at 4.9% (37 of 746 strings)

Translation: CircuitPython/master
Translate-URL: https://hosted.weblate.org/projects/circuitpython/master/nl/
2020-05-19 19:08:30 +02:00
Jeff Epler
2f3a6773fc Added translation using Weblate (Dutch) 2020-05-19 19:08:30 +02:00
Scott Shawcroft
4e5df0e36d
Merge pull request #2919 from simmel-project/bleio-anonymous-advertising
_bleio: support anonymous advertising
2020-05-19 10:08:18 -07:00
DavePutz
7fa5009674
Merge pull request #4 from adafruit/master
merge from adafruit
2020-05-19 10:32:32 -05:00
Sean Cross
c1bcc25b88 nrf: _bleio: clean up timeout calculation
The timeout value is calculated by the common-hal layer now, so we don't
need to be quite so clever about calculating it here.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-19 21:56:39 +08:00
Sean Cross
f56188c261 locale: regenerate translations for new bleio msg
There is now an adapter timeout message.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-19 15:01:38 +08:00
Sean Cross
34f91f01c6 bleio: adapter: add advertising timeout and status
Add a field to allow specifying a timeout when initiating advertising.
As part of this, add a new property to determine if the device is still
advertising.

Additionally, have the `anonymous` property require a timeout, and set
the timeout to the maximum possible value if no timeout is specified.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-19 15:01:19 +08:00
Sean Cross
cfe65742a3 _bleio: support anonymous advertising
Add a new parameter to the `start_advertising()` function to enable
anonymous advertising.  This forces a call to `sd_ble_gap_privacy_set()`
with `privacy_mode` set to `BLE_GAP_PRIVACY_MODE_DEVICE_PRIVACY` and
`private_addr_type` set to
`BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_RESOLVABLE`.

With this, addresses will cycle at a predefined rate (currently once
every 15 minutes).

Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-19 15:01:18 +08:00
Scott Shawcroft
2c2b53303d
Merge pull request #2837 from k0d/serial-debug
Add support for a debug console, such as ST-Link VCP.
2020-05-18 18:13:31 -07:00
Scott Shawcroft
03b6f7b87b
Add commend about FreeRTOS stack canary 2020-05-18 17:28:13 -07:00
Scott Shawcroft
164628282d
Update TinyUSB and shorten USB task delay 2020-05-18 17:27:49 -07:00
Mark Olsson
007c92ee6a Enable showing the console on a debug uart 2020-05-19 02:02:52 +02:00
Scott Shawcroft
cf690bd390
Merge remote-tracking branch 'adafruit/master' into esp32s2 2020-05-18 16:46:41 -07:00
Scott Shawcroft
1e9436519b
Fix ReadTheDocs after switching to stubs + autoapi. 2020-05-18 16:29:15 -07:00
dherrada
0fa5f6a0dd Merge branch 'extract-types' of https://github.com/dherrada/circuitpython into extract-types 2020-05-18 19:01:50 -04:00
dherrada
cf524cb6b1 extract_pyi no longer raises a TypeError for missing types 2020-05-18 18:59:14 -04:00
Scott Shawcroft
32617d5f2f
Merge pull request #2925 from arturo182/imx-spi
mimxrt1010: Increase max SPI speed
2020-05-18 15:22:42 -07:00
Scott Shawcroft
ebfc1f2599
Merge pull request #2926 from arturo182/imx-temperature-fix
mimxrt10xx: Fix cpu.temperature crash
2020-05-18 15:20:21 -07:00
Scott Shawcroft
962c320adf
Merge pull request #2917 from jepler/weblate-readme
add weblate status badge in readme
2020-05-18 15:17:00 -07:00
Scott Shawcroft
af68ddebef
Merge pull request #2924 from simmel-project/nrf-rtc-persist
NRF: Persist RTC offset across reboots
2020-05-18 15:06:42 -07:00
Scott Shawcroft
9811c1fe4b
Merge pull request #2896 from theacodes/add-bytearray-decode
Add bytearray.decode() for CPython compatibility
2020-05-18 14:38:45 -07:00
Scott Shawcroft
2e950a059c
Merge pull request #2888 from WarriorOfWire/vectorio-polygon-speed
vectorio: speed up polygon
2020-05-18 14:37:05 -07:00
warriorofwire
a78f245ea6 translations for polygon 2020-05-18 13:33:16 -07:00
warriorofwire
dde66cadde remove a duplication in polygon.c 2020-05-18 13:32:06 -07:00
warriorofwire
4bbb80e31a vectorio: speed up polygon
This change takes polygon from 126k pixels per second fill to 240k pps fill
  on a reference 5 point star 50x66px polygon, updating both location and shape
  at 10hz.  Tested on an m4 express feather.

As a curiosity, the flat-out fill rate of a shape whose get_pixel is `return 0;`
  fills just shy of 375k pixels per second.
2020-05-18 13:32:06 -07:00
arturo182
058a73128c mimxrt10xx: Fix cpu.temperature crash
Fixes #2514
2020-05-18 22:30:50 +02:00
arturo182
f92d53eaab mimxrt1010: Increase max SPI speed 2020-05-18 22:07:38 +02:00
Sean Cross
9f7c26c60d nrf: port: call common_hal_rtc_init() during init
Call the new function to set the RTC, or reset it if the offset is not
valid.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-18 11:52:30 +08:00
Sean Cross
83680c41db nrf: rtc: persist rtc offset across reboots
Store the RTC value in the .uninitialized section, but make sure to
flank it with some known values.  That way we can determine if the RTC
value has been initialized, or if it's random uninitialized garbage.

As part of this, add a `common_hal_rtc_init()` routine to determine if
the value is correct, or reset it to 0 if it is not valid.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-18 11:52:27 +08:00
Sean Cross
3b5f5ddaa6 nrf: port: move saved word into .uninitialized section
Circuit Python supports saving a single word of data across reboots.
Previously, this data was placed immediately following the .bss.

However, this appeared to not work, as Circuit Python zeroes out the
heap when it starts up, and the heap begins immediately after the .bss.

Switch to using the new .uninitialized section in order to store this
word across resets.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-18 11:52:25 +08:00
Sean Cross
192bb155fa nrf: port: move the heap after .uninitialized
Previously, it was placed following .bss.  However, now that there is a
new section after .bss, the heap must be moved forward.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-18 11:52:20 +08:00
Sean Cross
f002c784c0 nrf: linker: add a new .uninitialized section
This section immediately follows the .bss section, and is designed to
contain uninitialized variables that should persist across reboots.

The section is placed directly after .bss, under the theory that the
size of Circuit Python's .bss + .data is bigger than the bootloader's
.bss + .data, so there is less likely to be a conflict.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-18 11:52:17 +08:00
Jeff Epler
2314f988b1
Merge pull request #2921 from weblate/weblate-circuitpython-master
Translations update from Weblate
2020-05-17 22:23:38 -05:00
Jeff Epler
66b79c994e
Translated using Weblate (German)
Currently translated at 66.6% (497 of 746 strings)

Translation: CircuitPython/master
Translate-URL: https://hosted.weblate.org/projects/circuitpython/master/de/
2020-05-18 04:48:01 +02:00
Anonymous
cb3c8f1423
Translated using Weblate (German)
Currently translated at 66.6% (497 of 746 strings)

Translation: CircuitPython/master
Translate-URL: https://hosted.weblate.org/projects/circuitpython/master/de/
2020-05-18 04:47:39 +02:00
Anonymous
f362ee1e75 Translated using Weblate (Swedish)
Currently translated at 100.0% (746 of 746 strings)

Translation: CircuitPython/master
Translate-URL: https://hosted.weblate.org/projects/circuitpython/master/sv/
2020-05-18 04:23:28 +02:00
Anonymous
4d1cbf3d63 Translated using Weblate (French)
Currently translated at 100.0% (746 of 746 strings)

Translation: CircuitPython/master
Translate-URL: https://hosted.weblate.org/projects/circuitpython/master/fr/
2020-05-18 04:23:28 +02:00
Jeff Epler
bc64b8b358 Translated using Weblate (French)
Currently translated at 100.0% (746 of 746 strings)

Translation: CircuitPython/master
Translate-URL: https://hosted.weblate.org/projects/circuitpython/master/fr/
2020-05-18 04:23:28 +02:00
Jeff Epler
5454877fb8 Translated using Weblate (Spanish)
Currently translated at 68.9% (514 of 746 strings)

Translation: CircuitPython/master
Translate-URL: https://hosted.weblate.org/projects/circuitpython/master/es/
2020-05-18 04:23:28 +02:00
Jonny Bergdahl
5506765db5 Translated using Weblate (Swedish)
Currently translated at 100.0% (746 of 746 strings)

Translation: CircuitPython/master
Translate-URL: https://hosted.weblate.org/projects/circuitpython/master/sv/
2020-05-18 04:23:28 +02:00
Anonymous
b7292a3c34 Translated using Weblate (French)
Currently translated at 92.8% (693 of 746 strings)

Translation: CircuitPython/master
Translate-URL: https://hosted.weblate.org/projects/circuitpython/master/fr/
2020-05-18 04:23:28 +02:00
Jeff Epler
a04d453e5c Translated using Weblate (French)
Currently translated at 92.8% (693 of 746 strings)

Translation: CircuitPython/master
Translate-URL: https://hosted.weblate.org/projects/circuitpython/master/fr/
2020-05-18 04:23:28 +02:00
Anonymous
85fb231639 Translated using Weblate (French)
Currently translated at 92.3% (689 of 746 strings)

Translation: CircuitPython/master
Translate-URL: https://hosted.weblate.org/projects/circuitpython/master/fr/
2020-05-18 04:23:28 +02:00
Jeff Epler
2c4e18be60 Translated using Weblate (French)
Currently translated at 92.3% (689 of 746 strings)

Translation: CircuitPython/master
Translate-URL: https://hosted.weblate.org/projects/circuitpython/master/fr/
2020-05-18 04:23:28 +02:00
Anonymous
a543f9fd71 Translated using Weblate (French)
Currently translated at 92.0% (687 of 746 strings)

Translation: CircuitPython/master
Translate-URL: https://hosted.weblate.org/projects/circuitpython/master/fr/
2020-05-18 04:23:28 +02:00