Commit Graph

31244 Commits

Author SHA1 Message Date
anecdata 104cf0bb3a raspberrypi: start AP before set IPv4 2023-07-23 12:10:02 -04:00
anecdata 3d212f70eb mdns: can't use web workflow port 2023-07-23 12:10:02 -04:00
anecdata 6d45f4504c web workflow: uses an mdns port service slot 2023-07-23 12:10:02 -04:00
Scott Shawcroft 98bd9e50d9
Merge pull request #8185 from jepler/document-optional-types-functions
Document optional types & functions
2023-07-20 10:31:28 -07:00
Jeff Epler f41e314f48
document builtins.pow3 availability
this makes it show up in the support matrix
2023-07-20 11:16:49 -05:00
Jeff Epler f15eceb24c
Document more classes that can be separately enabled 2023-07-20 11:16:49 -05:00
Jeff Epler aca93d0ebb
MODULES_NOT_IN_BINDINGS can skip listing things in ADDITIONAL_MODULES 2023-07-20 11:16:49 -05:00
Jeff Epler 6a2499227a
render the board support list within the docs of os.getenv 2023-07-20 11:16:48 -05:00
Jeff Epler 9593ec44b1
add os.getenv to the support matrix 2023-07-20 11:16:48 -05:00
Jeff Epler d7ff56b00e
sort a block of items 2023-07-20 11:16:48 -05:00
Jeff Epler 8ea0835ff6
Allow any files to be rendered as jinja templates
by including a comment ".. jinja" anywhere in the file. By convention,
this should be at the top.

os.getenv will use this so it can render a 'supported boards' list.
2023-07-20 11:16:48 -05:00
Dan Halbert 4a21e05ab6
Merge pull request #8170 from tannewt/fix_rp2_safe_mode
Fix rp2 safe mode via reset press
2023-07-15 17:13:18 -04:00
Scott Shawcroft 4e01674cbd
Fix rp2 safe mode via reset press
The picodvi PR #7880 switched the saved word to the watchdog
register since it reworked the RAM layout. This works for
reset_into_safe_mode because the watchdog scratch registers are
preserved by soft resets. They *aren't* preserved for pressing the
reset button. So it broken manual safe mode. Switch back to using
RAM to store the saved word but use the pico-sdks "uninitialized"
designation instead of a fixed location.

Also fixes USB host feather status neopixel by setting the power
pin.
2023-07-13 14:49:08 -07:00
Scott Shawcroft 5dc2b168d7
Merge pull request #8123 from jepler/issue8121-workaround
rp2040: Avoid screeches due to audio underflow during flash writes
2023-06-27 09:09:03 -07:00
Jeff Epler 385366128f
Don't use "cookie" variable/function name 2023-06-27 09:59:02 -05:00
Jeff Epler 324ecc2611
Merge pull request #8114 from FoamyGuy/displayio_shape_fix
fix shape.set_boundary()
2023-06-27 06:27:10 -05:00
Scott Shawcroft c116aa004c
Merge pull request #8112 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2023-06-26 10:36:30 -07:00
Hosted Weblate 4bc18f8133
Merge remote-tracking branch 'origin/main' 2023-06-26 19:20:40 +02:00
Scott Shawcroft f7efc9c980
Merge pull request #8116 from Neradoc/fix-button-espressif_esp32c3_devkitm_1_n4
fix board.BUTTON on espressif_esp32c3_devkitm_1_n4
2023-06-26 10:20:33 -07:00
Jeff Epler b4be2317cb
rp2040: Avoid screeches due to audio underflow during flash writes
By pausing audio during flash writes, the worst screeching of #8121
is avoided. I don't consider this a full fix, but it greatly improves
the by far most common scenario in which the problem occurs.

Tested on rp2040 prop feather with a midi synth playing arpeggios. When
writing to the flash e.g., with
```
dd bs=512 count=32 if=/dev/zero of=/media/jepler/CIRCUITPY/boop
```
the audio goes "tap tap tap tap" during the flash write instead of the
squawking.

This isn't a 100% fix; it will still glitch out, including during USB
enumeration which must be taking a long time without servicing background
tasks. Add a delay if not usb-connected at startup ameliorates this
greatly.
2023-06-26 10:34:29 -05:00
Neradoc 232e096f93 fix board.BUTTON on espressif_esp32c3_devkitm_1_n4 2023-06-25 17:05:49 +02:00
foamyguy c4b57dc2fe fix shape.set_boundary() 2023-06-24 12:42:00 -05:00
Wellington Terumi Uemura 25498ee562
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (997 of 997 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2023-06-23 22:35:34 +02:00
Dan Halbert 7e6825daf6
Merge pull request #8111 from adafruit/revert-8094-fix_i2c_hangs
Revert "nrf: prevent I2C hangs"
2023-06-23 13:24:33 -04:00
Dan Halbert fde6342705
Revert "nrf: prevent I2C hangs" 2023-06-23 13:20:41 -04:00
Dan Halbert ffebb5af8a
Merge pull request #8094 from furbrain/fix_i2c_hangs
Fix for #8093
2023-06-23 13:12:24 -04:00
Dan Halbert a84551afb7
Merge pull request #8105 from dhalbert/authmode-doc
improve start_ap() doc; make "authmode" use consistent internally
2023-06-23 12:51:26 -04:00
Dan Halbert dc13a8036b
Merge pull request #8104 from dhalbert/rp2040-countio-doc
note RP2040 countio limitations
2023-06-22 18:37:49 -04:00
Dan Halbert c7c5d6099a
Merge pull request #8102 from dhalbert/OnDiskGif-width-and-doc
Improve OnDiskGif doc; check image width
2023-06-22 18:36:34 -04:00
Dan Halbert 540bf58102 improve start_ap() doc; make "authmode" use consistent internally 2023-06-22 16:24:18 -04:00
Dan Halbert 8acc8581df note RP2040 countio limitations 2023-06-22 14:56:46 -04:00
Dan Halbert 1f2a1a6e78 Improve OnDiskGif doc; check image width 2023-06-22 14:24:48 -04:00
Scott Shawcroft 0da62416a5
Merge pull request #8050 from FoamyGuy/hidden_refresh_areas
don't consider refresh areas for hidden groups or tilegrids
2023-06-21 09:56:27 -07:00
Scott Shawcroft 28b0e34d76
Merge pull request #8099 from strid3r21/main
added bee data logger
2023-06-21 09:52:26 -07:00
Dan Halbert 60adfa4e6b
Merge pull request #8089 from furbrain/main
Reset UART on deinit, reduces power consumption on nRF
2023-06-20 19:48:37 -04:00
paul 9a2e9f7e41 added bee data logger 2023-06-20 18:50:15 -04:00
Phil Underwood a753490899 Refactor out test for bus sanity state 2023-06-20 23:32:00 +01:00
Scott Shawcroft 4789508629
Merge pull request #8087 from anecdata/ap_chan
validate wifi Access Point channel
2023-06-20 13:14:04 -07:00
Scott Shawcroft 9bce4ac30c
Merge pull request #8090 from kamtom480/sdk3.0.1
spresense: update SDK to 3.0.1
2023-06-20 13:11:45 -07:00
Dan Halbert 4c55dc2445
Merge pull request #8096 from jepler/lto-parallel
Speed LTO builds by using multiple threads
2023-06-20 13:32:47 -04:00
Dan Halbert b0e6a98cef
Merge pull request #8097 from dhalbert/aesio-ctx-typo
fix typos: "CTX mode" -> "CTR mode" in aesio
2023-06-20 13:17:43 -04:00
Dan Halbert f5c03e64e5 fix typos: "CTX mode" -> "CTR mode" 2023-06-20 12:50:36 -04:00
Jeff Epler cae02f1cdf
Speed LTO builds by using multiple threads
On my i5-1235U laptop this speeds LTO "partition=balanced" builds
substantially, because each "partition" can be run on a separate
CPU thread. I used "pygamer" as my test build with a parallelism of
`-j4`, and took the best elapsed time reported over 4 builds.

The improvement was from 34.6s to 24.0s (-30%).

A link-only build (rm build-pygamer/firmware.elf; make -j...) improved
from1 17.4s to 5.1s (-70%)

The size of the resulting firmware is unchanged.

Boards that are nearly full use "-flto-partition=one" to improve code
size optimization. When LTO partition is "one", this feature doesn't help
but it doesn't seem to negatively affect anything either (tested
building trinket_m0)
2023-06-20 11:01:46 -05:00
Phil Underwood 028a81922b
Remove unneeded #define from I2C.c 2023-06-20 13:36:12 +01:00
Phil Underwood fae14cc55b Fix for #8093
This adds a check to make sure that SDA and SCL are in a sane condition
before starting any I2C operation. If they are not it tries to rectify it,
and then returns an error code if unable to do so.
2023-06-19 22:20:46 +01:00
Phil Underwood 4bb475b930 formatting 2023-06-17 22:49:47 +01:00
Phil Underwood ec1e7a03b3 Reset UART on deinit, reduces power consumption 2023-06-17 22:42:12 +01:00
foamyguy 4bf4d148c1 always set rendered_hidden false when hidden changes 2023-06-16 18:05:39 -05:00
foamyguy 074c13488b revert whitespace change. handle hidden by parent 2023-06-16 16:57:37 -05:00
foamyguy 3222cdf847 revert indention change 2023-06-16 16:50:01 -05:00