Commit graph

2855 commits

Author SHA1 Message Date
ladyada
f4621b9304 add sparkle motion board (w/esp32 mini module) 2024-12-30 21:04:29 -05:00
Limor "Ladyada" Fried
cdc6841386
Merge branch 'espressif:master' into master 2024-12-17 17:41:01 -05:00
Me No Dev
0515264aa6
Merge pull request #10737 from TD-er/patch-2
[NetworkClient] Init members of NetworkClient
2024-12-16 19:12:24 +02:00
TD-er
8479b4cd9f
[NetworkClient] Init members of NetworkClient
Fixes: #10736
2024-12-16 16:25:53 +01:00
Me No Dev
6005b15947
Merge pull request #10730 from leochen4891/patch-1
Use INPUT_PULLUP instead of INPUT
2024-12-16 13:09:19 +02:00
Lei Chen
2c7b76aea8
Use INPUT_PULLUP instead of INPUT
Tested on some of the popular S3 board bought from Amazon, the digitalRead of an INPUT pin is LOW, which stops the timer right after start.
Setting it to INPUT_PULLUP will fix it.
2024-12-15 12:19:49 -05:00
Me No Dev
64b62dc45b
Merge pull request #10724 from socram8888/fix-web-raw-timeout
Cap size of last chunk in raw read in WebServer
2024-12-14 17:50:39 +02:00
pre-commit-ci-lite[bot]
8b77d91b69
ci(pre-commit): Apply automatic fixes 2024-12-13 13:45:07 +00:00
Marcos Del Sol Vives
c562aeceda
Update libraries/WebServer/src/Parsing.cpp
Co-authored-by: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com>
2024-12-13 14:32:32 +01:00
Me No Dev
740fc0b78e
Merge pull request #10725 from mathieucarbou/issue-10526
fix(sntp): Lock / Unlock LWIP if CONFIG_LWIP_TCPIP_CORE_LOCKING is set
2024-12-13 15:31:47 +02:00
Mathieu Carbou
71396de822
fix(sntp): Lock / Unlock LWIP if CONFIG_LWIP_TCPIP_CORE_LOCKING is set
- Fixes: #10526
- Completes old PR #10529
2024-12-13 09:09:09 +01:00
Marcos Del Sol Vives
784ef0f286
fix(webserver): Cap size of last chunk in raw read in WebServer
Before, the raw read would time out if the content length was not a multiple
of HTTP_RAW_BUFLEN, as it tried to read HTTP_RAW_BUFLEN bytes even if the
last chunk should actually contain less.
2024-12-13 03:08:16 +01:00
Me No Dev
fb6e977aa8
Merge pull request #10715 from SuGlider/remove_while_not_serial_in_examples
feat(arduino): remove all while(not serial) in examples
2024-12-11 20:39:37 +02:00
Rodrigo Garcia
029a57ff36
Merge branch 'master' into remove_while_not_serial_in_examples 2024-12-11 11:07:32 -03:00
Me No Dev
237523ee2b
Merge pull request #10699 from yellobyte/master
feat(board): Add custom boards YB-ESP32-S3-AMP-V2 & YB-ESP32-S3-AMP-V3
2024-12-11 15:49:22 +02:00
pre-commit-ci-lite[bot]
9c169fac8b
ci(pre-commit): Apply automatic fixes 2024-12-11 13:43:04 +00:00
Rodrigo Garcia
68cafb460d feat(arduino): remove all while(not serial) in examples 2024-12-11 10:35:46 -03:00
Thomas Jentzsch
9b9e6afdc6 Update boards.txt
mixed line endings fixed, pre-commit succssful
2024-12-10 01:29:19 +01:00
Thomas Jentzsch
2f21d6482b add custom boards yb_esp32s3_amp v2 & v3 2024-12-09 18:26:43 +01:00
Michael Stegen
19e4d0db4a
fix ESP32-U4WDH chip detection by ESP.getChipModel() (#10696)
* fixes chip detection for ESP32-U4WDH
2024-12-09 12:59:52 -03:00
PCB CUPID
77c69c38d6
feat (Variants) Added custom boards variants GLYPH C3, GLYPHC6 & GLYPHH2 (#10671)
* Added custom boards GLYPH C3, GLYPHC6 & GLYPHH2 based on ESP32C3, ESP32C6 & ESP32H2

* feat(Variants) : Added custom boards GLYPH C3, GLYPHC6 & GLYPHH2

Added custom boards variants from PCBCUPID - GLYPH C3, GLYPHC6 & GLYPHH2 based on ESP32C3, ESP32C6 & ESP32H2

* added required fix : moved the variants to end and fixed build.board

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: srini <srinivasanm329@gmail.com>
Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2024-12-09 11:41:30 +02:00
Rodrigo Garcia
c7022caeda
Remove 3rd party references in code and documentation (#10666)
* feat(support): documentation adjustment
* feat(support): readme files, commentaries and examples
* fix(template): Fix Issue Report Template
-----------------------------
Co-authored-by: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com>
2024-12-03 14:35:13 -03:00
Sylvain Quendez
6ce43695d2
BLECharacteristic optimization (#10665)
* BLECharacteristic::notify() optimization

GeneralUtils::hexDump() doesn't output anything if the log level is not "VERBOSE". Additionally, it is very CPU intensive, even when it doesn't output anything. So it is much better to *not* call it at all if not needed. 

In a simple program which calls BLECharacteristic::notify() every 50 ms, the performance gain of this little optimization is 37% in release mode (-O3) and 57% in debug mode. 

Of course, the "#if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_VERBOSE" guard could also be put inside the GeneralUtils::hexDump() function itself. But it's better to put it here also, as it is clearer (indicating a verbose log thing) and it allows to remove the "m_value.getValue().c_str()" call, which is in itself quite CPU intensive.

* BLECharacteristic optimization

Calls to BLEUtils::buildHexData() don't output anything when the log level is not "VERBOSE" or "DEBUG". As this function is quite CPU intensive, it is better to not call it when not needed.
2024-12-03 11:10:51 -03:00
Dogus Cendek
98da424de6
Add our new development board "cezerio mini dev ESP32C6" (#10648) 2024-11-26 14:46:22 +02:00
Rodrigo Garcia
4fc8abfafe
AsyncUdp license and keyword update (#10637)
* feat(asyncudp): add all current keywords to the list

* feat(asyncudp): add license information to the source code

* feat(asyncudp): add license information to the source code

* feat(asyncudp): add license information to the source code

* feat(asyncudp): add license information to the source code

* feat(asyncudp): add license information to the source code

* feat(asyncudp): revert license information to the source code

* feat(asyncudp): revert license information to the source code

* feat(asyncudp): revert license information to the source code

* feat(asyncudp): revert license information to the source code

* feat(asyncudp): revert license information to the source code

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2024-11-25 14:04:20 +02:00
Lucas Saavedra Vaz
1712fb5eee
fix(network): Avoid returning zero if connection is not dropped (#10640)
Co-authored-by: NPaolini <75562717+NPaolini@users.noreply.github.com>
2024-11-25 12:17:38 +02:00
Rodrigo Garcia
3dd4b0d112
feat(openthread): add license declaration to all soure code and examples (#10631) 2024-11-22 11:57:08 -03:00
Rodrigo Garcia
f0ded24b3f
OTA Library adjust (#10627)
* feat(ota): library revision

* feat(ota): license

* feat(ota): license addtion

* feat(ota): license addition into example
2024-11-20 10:47:46 +02:00
Unexpected Maker
1cdd8e8ce0
Fixed incorrect Flash size for UM FeatherS3 Neo build flash size (#10614)
Signed-off-by: Seon Rozenblum <seon@unexpectedmaker.com>
2024-11-18 14:43:28 +02:00
Mikey Sklar
02b03286a2
Feather V2 and Qt PY Pico PartitionScheme (#10604)
Default stays the same, additional option for larger SPIFFS area. Using existing partition CSV.

Tested on Feather V2
Arduino 2.3.3
ESP32 BSP 3.0.7
2024-11-18 09:44:22 +02:00
Cellie
9c25cef93f
Update pins_arduino.h (#10610)
The correct pin is GPIO4.
2024-11-18 09:43:31 +02:00
Rodrigo Garcia
e99f1fdc6d
fix(wifi): fixes isconnected() to return true when it has ip addr (#10595) 2024-11-12 01:00:26 +02:00
Rodrigo Garcia
54a7a3ee9a
feat(usb_hid_keyboard): Adds Keyboard Layout and Sends reports just for Modifier Keys (#10591)
* feat(usb_kb): add keyboard layouts. new pt_br layout

* feat(usb_kb): add kb layout and fixes modifier key press

* feat(usb_kb): update cmakelists.txt to add new kb layout code

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2024-11-12 00:56:06 +02:00
Jerzy Stusiński
1a8e53fe47
fix(typo): Fix typo in CDC DFU flash tutorial (#10584)
* Update cdc_dfu_flash.rst

* Update docs/en/tutorials/cdc_dfu_flash.rst

Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>

* Update docs/en/tutorials/cdc_dfu_flash.rst

Co-authored-by: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com>

---------

Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
Co-authored-by: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com>
2024-11-11 15:22:32 +02:00
Lucas Saavedra Vaz
09a6770320
fix(tests): Fix wrong selection of tests and add debug flag for testing (#10583)
Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
2024-11-08 11:17:55 +02:00
Ludovic BOUÉ
f66ba37d1f
fix(Zigbee): Fix typo in Zigbee_Temp_Hum_Sensor_Sleepy.ino (#10581) 2024-11-08 11:10:54 +02:00
Lucas Saavedra Vaz
9f3010f214
ci(json): Improve requirement checking (#10554)
* ci(json): Change requirements for sketches that use WiFi

* ci(checks): Optimize requirement checking

* fix(tests): Additional checks before running tests

---------

Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2024-11-06 18:08:16 +02:00
Jan Procházka
d1df696cd0
feat(Zigbee): Support for sleepy device + Power Source and battery level + Humidity sensor cluster (#10551)
* feat(zigbee): Add power source and battery level

* fix(zigbee): Make sure Indentify callback in not null

* fix(zigbee): Remove leftovers and use workaround for mac capabilities

* feat(zigbee) Add humidity optional cluster + fixes

* feat(zigbee): Add common Zigbee.h header file

* fix(zigbee): remove leftover code

* ci(pre-commit): Apply automatic fixes

* fix(zigbee): Fix codespell issues

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2024-11-06 11:40:31 +02:00
Lucas Saavedra Vaz
b170e87d41
fix(wokwi): Delete generated diagram to avoid issues running locally (#10567) 2024-11-06 00:57:19 +02:00
Lucas Saavedra Vaz
11f3cff53f
fix(get.py): Check if win32 tools also exist when running on win64 (#10565)
* fix(get.py): Check if win32 tools also exist when running on win64

* change(tools): Push generated binaries to PR

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-11-04 23:49:40 +02:00
ASDosjani
870468bb25
Update BLE5_periodic_advertising.ino (#10538) 2024-11-04 23:43:07 +02:00
wurongmin
57d0deef2d
feat(boards): add Waveshare ESP32-S3-Touch-AMOLED boards (#10549)
* Add files via upload

* Add files via upload

* feat(boards): add Waveshare ESP32-S3-Touch-AMOLED boards

Added three micro snow development boards to boards

* feat(boards): add Waveshare ESP32-S3-Touch-AMOLED variants

A trio of micro-snow variants have been added to the variants

* Delete variants/waveshare_esp32_s3_touch_amoled_143/pins_arduino.h

* Delete variants/waveshare_esp32_s3_touch_amoled_164 directory

* Delete variants/waveshare_esp32_s3_touch_amoled_191 directory

* feat(boards): Three variants of the development board were added

waveshare_esp32_s3_touch_amoled_143 waveshare_esp32_s3_touch_amoled_164 waveshare_esp32_s3_touch_amoled_191

* feat(boards): Add three boards to boards

* feat(boards): Add the variants

* feat(boards): Fixed the boards file

To ensure that each plate type only one

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2024-11-04 23:42:19 +02:00
Lucas Saavedra Vaz
eeecf844a7
ci(workflows): General improvements and fixes (#10544)
* ci(triggers): Improve workflow triggering and bump versions

* ci(runtime): Improve runtime tests triggers

* fix(push): Fix push chunks script indentation and lib detection
2024-11-04 23:12:20 +02:00
Lucas Saavedra Vaz
05102fe853
docs(lib-builder): Improve UI and Docker image sections (#10535)
* docs(lib-builder): Improve UI and Docker image sections

* docs(lib-builder): Apply review suggestions
2024-10-31 13:13:08 +02:00
Mathieu Carbou
d47771f2cc
fix(sntp): Lock / Unlock LWIP if CONFIG_LWIP_TCPIP_CORE_LOCKING is set (#10529)
* fix(sntp): Lock / Unlock LWIP if CONFIG_LWIP_TCPIP_CORE_LOCKING is set
Fixes: https://github.com/espressif/arduino-esp32/issues/10526

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2024-10-29 13:10:40 +02:00
Rodrigo Garcia
74e4a744ce
feat(uart): uart break example improvement (#10525)
prints the HEXA and CHAR in order to allow the user to see why there is 1 extra char (0x00) when BREAK is received.
2024-10-25 20:48:35 +03:00
vortigont
07c510e3ad
fix (NetworkEvents lib) remove checks for duplicated event handlers (#10376)
* lib Network: add cpp syntax to structs

* [Network] deprecate NetworkEvents::removeEvent() for std::function callbacks

removing event callback via std::function pointer does not work as expected for lambdas (issue #10365)
here mark NetworkEvents::removeEvent(NetworkEventFuncCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX)
as deprecated in favor of removing by callback's id

for NetworkEvents::onEvent remove checking for dublicate event handler, this does not work for lambdas too

remove NetworkEvents::find methods as unnecessary

move cbEventList container inside the class

declare NetworkEventCbList_t as a cpp struct with constructor, allows using std::vector.emplace() when adding new items to container

optimize NetworkEvents::remove() calls to use erase-remove idiom for std::vector

* [Network] hide event task under private member of NetworkEvents class

prevent checkForEvent loop to be callable from outside the task's thread

* refactor(NetworkEvents) code polishing and comments

- rename NetworkEvents::cbEventList as private member NetworkEvents_cbEventList
- NetworkEvents::getStatusBits() add const qualifier
- turn statics into constexpr
- add indexes to enum::arduino_event_id_t to make events indexing consistent for SOCs with/without WiFi
  also leave some index gaps to minimize renumbering on adding new events
- add doxygen help to NetworkEvents:: methods
- declare NetworkEvents::eventName() as static, that could be used without creating class scope
- potential mem leak in postEvent

* refactor(NetworkEvents) add (optional) mutex lock for container operations

provide thread safety for dual core SoCs
since std::mutex brings additional componetns of libstdc++ lib it impacts resulting image size significantly (around 50k)
Might be enabled on-demand if thread-safety is required

* ci(pre-commit): Apply automatic fixes

* fix(spelling): Fix spelling mistakes

---------

Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com>
2024-10-24 15:15:13 +03:00
zinkett
330beb40a5
Update lib - User can choose if calc MD5 from encrypted or decrypted file (#10510)
* User can choose if calc MD5 from decrypted file

At the present moment, if user want use OTA, the function calculate MD5 of the decrypted file, but if file is encrypted from source, could be more useful to know the MD5 of the encrypted file.

* md5

* Update Updater.cpp

* Update libraries/Update/src/Update.h

Co-authored-by: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com>

* Update libraries/Update/src/Update.h

Co-authored-by: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com>

* Update libraries/Update/src/Updater.cpp

Co-authored-by: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com>

* Update libraries/Update/src/Updater.cpp

Co-authored-by: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com>

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2024-10-24 14:31:54 +03:00
Thomas Weller
cb83cda06a
Fix comments for AD types in advertising (#10512) 2024-10-23 20:39:12 +03:00
二九
3502b9c7a9
Add multiple boards of the Waveshare ESP32-S3-Touch-LCD-1.46 type (#10482)
* Delete boards.txt

Delete old files

* Add files via upload

Add new board

* Add files via upload

Add new board

* Delete boards.txt

Delete old files, modify the definition of the case error

* Add files via upload

Modify the definition of the case error

* ci(pre-commit): Apply automatic fixes

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com>
2024-10-23 15:16:12 +03:00