Commit Graph

32496 Commits

Author SHA1 Message Date
Jeff Epler
91b98dc9d5
fix constness 2023-09-15 14:45:53 -05:00
Jeff Epler
cff65bbbe2
esp32 lcd ev: fix pin assignments 2023-09-15 14:10:32 -05:00
Jeff Epler
c7b7e22195
remove debug print 2023-09-15 11:16:43 -05:00
Jeff Epler
a8b81ce943
Enhance unexpected keyword argument detection
Before, incorrect use when calling a core function would just say
"extra keyword arguments given"; now, it will name the argument:

```python
>>> Synthesizer(bad_kwarg="boo")
TypeError: unexpected keyword argument 'bad_kwarg'
```
2023-09-15 10:39:14 -05:00
Jeff Epler
ef9f75ead1
Correct idle status of SCK pin 2023-09-14 14:56:39 -05:00
Jeff Epler
4b41fdb586
Fast(ish) special purpose bitbang spi over i2c
with the i2c bus operating at 400kHz this achieves a 4.8kHz SPI clock
rate which could be worse.

It accepts the same style of init sequence as displayio.

tested by scoping the pins on the espressif lcd dev kit with a dummy init sequence:
```python
dotclockframebuffer.ioexpander_send_init_sequence(
    bus=bus,
    i2c_address=expander_addr,
    gpio_address=1,
    gpio_data_len=1,
    gpio_data=0xff,
    cs_bit=1,
    mosi_bit=3,
    clk_bit=2,
    init_sequence=init_sequence)
```
2023-09-14 14:42:48 -05:00
Dan Halbert
843fca1874
Merge pull request #8388 from bill88t/espcam-deinit
[ESPCAMERA] Deinit all the pins.
2023-09-12 12:53:08 -04:00
Scott Shawcroft
4563c35908
Merge pull request #8385 from n3o59hf/add_m5stack_atoms3u
Add M5Stack AtomS3U
2023-09-11 13:46:03 -07:00
Scott Shawcroft
6961d92f61
Merge pull request #8387 from jepler/update-board-name-qualia
Rename the ESP32-S3 RGB TFT board
2023-09-11 13:45:52 -07:00
Scott Shawcroft
9d69aef811
Merge pull request #8383 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2023-09-11 13:45:16 -07:00
Bill Sideris
6e9c21baba
Deinit all the pins. 2023-09-11 23:35:54 +03:00
Jeff Epler
5a96696025
This board got a KICKIN marketing name 2023-09-11 13:46:08 -05:00
xXx
2003d237c4
Translated using Weblate (Russian)
Currently translated at 100.0% (1002 of 1002 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/ru/
2023-09-10 10:50:19 +02:00
Andi Chandler
485929bab9
Translated using Weblate (English (United Kingdom))
Currently translated at 100.0% (1002 of 1002 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/en_GB/
2023-09-10 10:50:18 +02:00
Jonny Bergdahl
b6c5858e96
Translated using Weblate (Swedish)
Currently translated at 100.0% (1002 of 1002 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2023-09-10 10:50:18 +02:00
Wellington Terumi Uemura
0391983c96
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (1002 of 1002 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2023-09-10 10:50:17 +02:00
Elviss Kustans
92eaf6236f Add M5Stack AtomS3U 2023-09-09 01:38:08 +00:00
Hosted Weblate
afff8e51eb
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/
2023-09-08 20:28:25 +02:00
Hosted Weblate
d61f303d91
Merge remote-tracking branch 'origin/main' 2023-09-08 20:28:21 +02:00
Wellington Terumi Uemura
756815d127
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (1000 of 1000 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2023-09-08 20:28:21 +02:00
Scott Shawcroft
885dbec599
Merge pull request #8357 from eightycc/memorymap
Add memorymap support to RP2 port
2023-09-08 11:28:11 -07:00
Scott Shawcroft
5f51853d44
Merge pull request #8378 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2023-09-08 11:18:56 -07:00
Jonny Bergdahl
34ccee686d
Translated using Weblate (Swedish)
Currently translated at 100.0% (1000 of 1000 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2023-09-08 14:22:11 +02:00
Bob Abeles
0e0941d6fd Review changes 2023-09-07 16:45:45 -07:00
Hosted Weblate
67843f6cfe
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/
2023-09-07 22:21:41 +02:00
Scott Shawcroft
0928a95bb2
Merge pull request #8351 from jepler/dotclockframebuffer
Dotclockframebuffer
2023-09-07 13:21:29 -07:00
Jeff Epler
0196401d08
reduce reserved psram 2023-09-07 13:01:16 -05:00
Jeff Epler
eb060184c2
Add hack tablet 2023-09-07 12:59:42 -05:00
Jeff Epler
c3c2b84584
fix typo, copyright notice 2023-09-07 12:57:45 -05:00
Bob Abeles
79edcbe97d second instance of misspelled 'unaligned' 2023-09-07 09:25:02 -07:00
Bob Abeles
65fc79e31f backout remaining changes to py 2023-09-06 20:25:39 -07:00
Bob Abeles
1e178318cf review update, add RP2040 example 2023-09-06 19:59:40 -07:00
Jeff Epler
54fe3b0235
Merge pull request #8358 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2023-09-06 10:12:08 -05:00
Jeff Epler
258141a9b3
Translated using Weblate (Russian)
Currently translated at 100.0% (999 of 999 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/ru/
2023-09-06 15:57:13 +02:00
Jeff Epler
6153d23ed8
Fix build with no psram
these are conditionally-defined identifiers so have to use if defined.
2023-09-05 21:30:35 -05:00
Hosted Weblate
2bc418fbc7
Merge remote-tracking branch 'origin/main' 2023-09-05 23:32:41 +02:00
Scott Shawcroft
b100041bf7
Merge pull request #8190 from makermelissa/arduino-nano-esp32s3
Added Arduino Nano ESP32-S3
2023-09-05 14:31:08 -07:00
Hosted Weblate
a75996a98c
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/
2023-09-05 23:29:27 +02:00
Hosted Weblate
0d58d9115b
Merge remote-tracking branch 'origin/main' 2023-09-05 23:29:24 +02:00
Scott Shawcroft
42b2b638e0
Merge pull request #8352 from tirtharajsinha/main
added new board - esp32 s3 pico
2023-09-05 14:29:18 -07:00
Hosted Weblate
45b697c53f
Merge remote-tracking branch 'origin/main' 2023-09-05 22:47:12 +02:00
Scott Shawcroft
e776f3840f
Merge pull request #8367 from bill88t/web_workflow_disable
Web workflow skip init when no password, freeing socket. Also reconnect wifi on reload.
2023-09-05 13:47:05 -07:00
Hosted Weblate
92d6391643
Merge remote-tracking branch 'origin/main' 2023-09-05 22:26:08 +02:00
Scott Shawcroft
aad6e74006
Merge pull request #8292 from tannewt/update_tinyusb_abort
Update TinyUSB to improve abort handling
2023-09-05 13:26:03 -07:00
Hosted Weblate
28e765aabb
Merge remote-tracking branch 'origin/main' 2023-09-05 22:12:24 +02:00
xXx
9d191b5223
Translated using Weblate (Russian)
Currently translated at 100.0% (1000 of 1000 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/ru/
2023-09-05 22:12:24 +02:00
Scott Shawcroft
e0fa155037
Merge pull request #8327 from jepler/translation-compression-qstr
Use qstrs to improve compression
2023-09-05 13:12:13 -07:00
Bill Sideris
5869af395e
Wifi fully seperate from web-workflow 2023-09-05 22:39:41 +03:00
Jeff Epler
5e26862b2c
Allow use of CONFIG_SPIRAM_USE_CAPS_ALLOC
.. and switch makerfabs tft7 over to it as a test.

We have our existing way of "reserving" PSRAM for esp-idf (we actually
control it all but add back the "reserved" part). However, this does
not work with off the shelf esp_lcd, which only will allocate a
framebuffer in PSRAM if CONFIG_SPIRAM_USE_CAPS_ALLOC (or CONFIG_SPIRAM_USE_ALLOC)
is defined, not if CONFIG_SPIRAM_USE_MEMMAP is.

This new way is possibly compatible with more esp-idf code, but it complicates
CircuitPython's initial startup since nothing until port_heap_init is
permitted to use the CP heap or supervisor allocator. In practice this
seems to be OK today.

Right now this doesn't change the setting across all boards with PSRAM and so
it does not revert esp-idf to its prior state. Instead, what I'm thinking is
that we can do it during or just after the IDF5 update when sdkconfig files
will be getting an overhaul anyway.
2023-09-05 12:43:22 -05:00
Jeff Epler
b7d1147f67
Bump the stack size of the uart task
With DEBUG build and a consle UART, this would occur early during startup on makerfabs tft7:
```
I (0) cpu_start: Starting scheduler on APP CPU.
I (10) uart: queue free spaces: 20

***ERROR*** A stack overflow in task uart_event_task has been detected.


Backtrace: 0x403786f2:0x3fce9f40 0x403820a9:0x3fce9f60 0x403850da:0x3fce9f80 0x40383a7d:0x3fcea000 0x40382158:0x3fcea030 0x4038214e:0xa5a5a5a5 |<-CORRUPTED
```

Decoded backtrace was not enlightening:
```
0x403786f2: panic_abort at /home/jepler/src/circuitpython/ports/espressif/build-makerfabs_tft7/esp-idf/../../esp-idf/components/esp_system/panic.c:408
0x403820a9: esp_system_abort at /home/jepler/src/circuitpython/ports/espressif/build-makerfabs_tft7/esp-idf/../../esp-idf/components/esp_system/esp_system.c:137
0x403850da: vApplicationStackOverflowHook at /home/jepler/src/circuitpython/ports/espressif/build-makerfabs_tft7/esp-idf/../../esp-idf/components/freertos/port/xtensa/port.c:407
0x40383a7d: vTaskSwitchContext at /home/jepler/src/circuitpython/ports/espressif/build-makerfabs_tft7/esp-idf/../../esp-idf/components/freertos/tasks.c:3505
0x40382158: _frxt_dispatch at /home/jepler/src/circuitpython/ports/espressif/build-makerfabs_tft7/esp-idf/../../esp-idf/components/freertos/port/xtensa/portasm.S:436
0x4038214e: _frxt_int_exit at /home/jepler/src/circuitpython/ports/espressif/build-makerfabs_tft7/esp-idf/../../esp-idf/components/freertos/port/xtensa/portasm.S:231
0x00000000: ?? ??:0
```

Adding an additional 512 bytes of stack allowed CircuitPython to start
successfully.
2023-09-05 12:07:09 -05:00