Commit graph

2801 commits

Author SHA1 Message Date
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
Jan Procházka
bcc357c0ca
fix(ci): Boards test set fail-fast to false (#10508) 2024-10-23 11:47:50 +03:00
Ludovic BOUÉ
1756bd567c
fix(zigbee): Enable internal pull-up resistor (#10491)
Enable the internal pull-up resistor for BUTTON_PIN
2024-10-23 11:46:04 +03:00
Lucas Saavedra Vaz
a0139bc37d
fix(tests): Add missing files to compilation tests (#10501)
* fix(tests): Add CMakeLists file to compilation tests

* fix(tests): Add variant files that are used in compilation

* fix(c2): Move C2 as it is only tested as component

---------

Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
2024-10-23 11:45:30 +03:00
Jan Procházka
0f5219df0e
fix(ci): Get correct file for the diff (#10507) 2024-10-23 10:24:36 +03:00
Me No Dev
4285912a46
fix(cmake): Use proper name for LittleFS component 2024-10-22 20:40:15 +03:00
clashman
4944dd0df3
fix(littlefs): Add missing dependency (#10496) 2024-10-22 20:22:15 +03:00
Jan Procházka
e509d33d27
fix(ci): Chnage approach in listing the changed boards (#10495) 2024-10-22 00:56:18 +03:00
Lucas Saavedra Vaz
01789a7a89
fix(formatting): Fix formatting and disable JSON hook (#10492) 2024-10-21 18:29:05 +03:00
Lucas Saavedra Vaz
9e643c08a7
fix(testing): Checkout proper branch for Wokwi tests and small QoL improvements (#10435)
* fix(tests): Add missing newlines to output

* fix(tests): Improve fibonacci test

* fix(tests): Remove redundant targets from json

* fix(wokwi): Checkout proper base branch for wokwi tests

* feat(logging): Add logging to some tests to improve debugging

* fix(ci): Make CI more permissive and improve messages

* fix(tests): Bump pytest-embedded version to support P4
2024-10-21 15:45:59 +03:00
Me No Dev
a7d9b670a8
Add missing versions to ISSUE_REPORT
Versions 3.0.5 and 3.0.6 were added
2024-10-21 11:56:01 +03:00
Lucas Saavedra Vaz
4ca635a3b6
ci(json): Add requires_any field and use QIO by default to match IDE (#10472)
* ci(FQBN): Use QIO as default as DIO can be used on demand now

* fix(indentation): Fix default indentation for bash files

* fix(compilation): Make errors appear on CI fail

* ci(json): Add requires_any field to JSON and fix comparison
2024-10-19 12:00:48 +03:00
Lucas Saavedra Vaz
064d1c4d97
fix(build): Fix sdkconfig copy for Arduino CLI (#10484) 2024-10-18 20:29:14 +03:00
二九
ee8931d151
Add the Waveshare ESP32-S3-Touch-LCD-1.85 board (#10477)
* Delete boards.txt

Delete old files

* Add files via upload

Add the Waveshare ESP32-S3-Touch-LCD-1.85 board

* Add files via upload

Add the Waveshare ESP32-S3-Touch-LCD-1.85 board

* Update pins_arduino.h

Modify the pin definition

* Add files via upload

Add the Waveshare ESP32-S3-Touch-LCD-1.85 board

* Update pins_arduino.h

Modify the pin definition

* feat(board): Add waweshare s3 rouch lcd 185

* 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: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2024-10-17 14:31:46 +03:00
Jan Procházka
955b277497
fix(example): print correct fade direction (#10450)
* fix(example): print correct fade direction

* fix(example): Change to fade in out

* fix(example): Codespell fix
2024-10-17 10:43:47 +03:00
Dogus Cendek
51b2fb356d
Add our new board "cezerio dev ESP32C6" (#10462)
* Add cezerio dev ESP32-C6

* Modify pin number of cezerio dev ESP32C6

Modify pin number of cezerio dev ESP32C6

* Update boards.txt

* Update USB_PID

Update USB_PID

* Update boards.txt

Deleted flash and partition options related in flash size bigger than 4MB

* Update pins_arduino.h

* Merge manually to solve conflicts

* Resolve Conflicts

* Add cezerio dev ESP32-C6

* Modify pin number of cezerio dev ESP32C6

Modify pin number of cezerio dev ESP32C6

* Update boards.txt

* Update USB_PID

Update USB_PID

* Update pins_arduino.h

* Add cezerio dev ESP32C6

* Update pins_arduino.h

* Update pins_arduino.h

* Update pins_arduino.h
2024-10-17 10:43:21 +03:00
Max
7849a79435
Add IOXESP32-C6 and ATD3.5-S3 board (#10471)
Co-authored-by: Max <7087907+maxpromer@users.noreply.github.com>
2024-10-17 02:44:47 +03:00
ws-hsw
bda8fcb457
addition(3rd_party_board): Add Waveshare-S3-touch-lcd (#10434)
* add waveshare_touch_lcd

* waveshare_touch_lcd

* waveshare_touch_lcd

* 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-17 02:39:23 +03:00
Mahesh Tupe
f8e03cfaac
Update esp-insights version (#10456) 2024-10-15 18:06:20 +03:00
Y_hsiao_ch'un
e27a050f5a
Added variant for Waveshare ESP32-S3-Touch-AMOLED-1.8 (#10433) 2024-10-11 16:35:58 +03:00
Hamza Hajeir
f083e2df8d
fix(asyncudp): Fixes and implements tcpip thread locking (#10415)
* fix(asyncudp): Fixes and implements tcpip thread locking

* fix(asyncudp): Adds missing unlock

* 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-07 19:15:42 +03:00
Lucas Saavedra Vaz
3445164e2d
test(psram): Add PSRAM test (#10409)
* test(psram): Add PSRAM test

* fix(test): Hide pointer arithmetic warning

* ci(pre-commit): Apply automatic fixes

* fix(json): Remove FQBNs for the test

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2024-10-07 15:56:41 +03:00
Rodrigo Garcia
0d5d50eb41
feat(uart): eliminates nonexistent functions (#10428)
loop() calls Serial Events functions when those are declared. The way it was declared was forcing to alway call avalable() to then call an empty function. This commit fixes it.
2024-10-07 15:56:04 +03:00
Bharat Pi
630377f7d3
feat(Variants): Add Arduino libraries for Lora 4G Module and Node Wifi o… (#10402)
* feat(esp32): Added support for BharatPi 4G, LoRa & NodeWifi Boards

* fix(variant): Fixed review comments for SPI and I2C Pins

* fix(variant): Fixed review comments and Lora build fix

* fix(variant): Fixed review comments for board name

* fix(review): Fixed review comment for CI

* 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-07 13:43:51 +03:00
Lucas Saavedra Vaz
8ce5f775fe
ci(compilation): Use default partition and add append to FQBN option (#10392)
* ci(partitions): Use default partition for compilation in CI

* fix(ci): Fix paths for sdkconfig

* Fix build of camera web server

* fix(ci): Fix test requirements check

* ci(append): Add option to append to all FQBNs

* fix(json): Fix JSON files to compile examples

* fix(example): Use requires instead of target in ci.json

fix(zigbee): Improve JSON files

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

* fix(regex): Trim argument before grep

* docs(ci): Add documentation about FQBNs in CI

* fix(json): Remove redundant FQBNs

* fix(json): Skip requirements if libs are not installed

* fix(partitions): Use rainmaker specific partitions

---------

Co-authored-by: me-no-dev <hristo@espressif.com>
Co-authored-by: Jan Prochazka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2024-10-04 16:57:08 +03:00
Jan Procházka
5fd7826d9f
fix(boards): Remove partition scheme from FlashSize (#10400) 2024-10-04 13:52:07 +03:00
Lucas Saavedra Vaz
13511a6b65
ci(tests): Add linpack FPU tests (#10389)
* ci(tests): Add linpack FPU tests

* fix(linpack): Change prints to log_d

* fix(linpack): Fix number of runs check

* ci(pre-commit): Apply automatic fixes

* fix(spelling): Correct spelling mistakes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2024-10-04 13:51:47 +03:00
sivar2311
5d873c0787
Add conditional compilation for second I2C interface based on SOC_I2C_NUM (#10408)
The ESP32, ESP32-S and ESP32-H series have two I2C interfaces, while the ESP32-C series has only one.
2024-10-04 13:49:55 +03:00
Rodrigo Garcia
733373a049
Update FreeRTOS Symbols in OThreadCLI (#10412)
* Update OThreadCLI.cpp

* feat(openthread): change FreeRTOS names and types

* feat(openthread): change FreeRTOS names and types

QueueHandle_t instead of xQueueHandle
2024-10-03 09:37:44 +03:00
Me No Dev
ea50cf6f5f
fix(spiram): Fix OPI PSRAM init (#10406) 2024-10-02 22:18:17 +03:00
Jan Procházka
473b8515ac
feat(zigbee): Add Zigbee library (#10265)
* Initial commit - light bulb + switch working

* Add Thermostat + fix enum

* Dev update: roles, cb removal, handlers

Fixed ep_thermostat to compile successfully
Removed cb from all EP, as it have been removed, virtual methods will be used instead.
Moved zigbee handlers out of Zigbee_core to Zigbee_handlers for better readability.
Fixed zigbeeInit to be bool and return status of initialization for begin function.
Updated examples with edited roles and custom method for on_off light

* Dev update: implement on/off light and switch methods

Implemented basic function calls of switch commands to on/off light:
  lightToggle, lightOn, lightOff, ...
Implemented virtual methods for on/off light that have to be override in user code:
  setOnOff, sceneControl, setOnOffTime, setOffWaitTime
APIs can be changed, still early development.

* Dev update: Factory reset, names, multiple EPs

Implemented Factory reset of Zigbee device, in order to connect to new network without reflashing/erasing flash
Implemented optional setting for Manufacturer and Model names
Added option to allow endpoint to have multiple endpoint connected -> switch - 2 lights (tested)
Minor sketches update

* Dev update: Device ID to string

Implemented easy transfer from device it to Device type (0x0000 = ESP_ZB_HA_ON_OFF_SWITCH_DEVICE_ID  -> "General On/Off switch".

* Implement cmd default response handler

* Remove unused _identify_cluster

* Dev Update: Color DImmable light + switch implemented

Implemeted color dimmable light and color dimmer switch HA devices + examples.
Removed unnecessary stored attribute cluster
Renamed on/off light and switch examples

* Implement Network Scanning

Implemented Zigbee network scanning (async) to mostly match WiFi scan APIs.
Added Zigbee_Scan_Networks example

* Dev Update: Thermostat and Temperature sensor EP

Implemeted thermostat and temperature sensor HA devices + examples.
Implemented configure report handler.
Updated READMEs and description of examples.
Minor code updates

* fix(): Replace deprecated function

* Remove ported IDF examples

* Update Zigbee examples with new APIs

* Dev Update: Version setting, Thermostat fix, ...

Simplified bounded device print as the structure is common for any EP type
Allowed setting custom app version for EP, default is 0
Small fixes and code updates

* Remove EP template + add lib to CMakeLists

* Rename classes to have proper naming

* Add check for SOC_IEEE802154_SUPPORTED

* Ignore false positive unused variable/function

* Fix compilation errors in examples

* Fill keyworkds.txt, remove unnecessary defines

* Rename methods, variables + make private/protected

* Remove unnecesary defaults defines

* Remove outdated comments

* Update Scan networks Readme

* fix(example): Use proper naming of func and variables

* Change virtual methods to callbacks (TODO)

* Refactor classes methods + implement Identify command

* Apply suggestions from code review by @lucasssvaz

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

* Update READMEs + add openNetwork fucntion

* Use [[maybe_unused]] instead of #pragma

* Use gpio calls for OnOff Light example

* ci(pre-commit): Apply automatic fixes

* fix(): Codespell issues

---------

Co-authored-by: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com>
2024-10-02 17:00:39 +03:00
Rodrigo Garcia
19f611d7ee fix(5.1): ESP32 redefinition to ESP32 2024-10-02 15:44:06 +03:00
Me No Dev
2ec5584d06
fix(hid): Fix OUTPUT report not received (#10398)
Fixes an issue where the keyboard LEDs will not trigger the proper event
2024-10-02 15:34:27 +03:00
Me No Dev
cd971319cb
Fix WPS example config initialization (#10399)
* fix(wps): fixes wps struct initialization

C99 complaint

* fix(wps): adds memset to 0

---------

Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>
2024-10-02 15:26:32 +03:00
Me No Dev
84ddf0ad28
fix(psram): Do not abort if PSRAM is not found (#10395)
Also add to heap in app_main
2024-10-01 16:34:41 +03:00
Me No Dev
5a06dd9e57
fix(psram): Init PSRAM before app_main to fix mmu_map (#10390)
* fix(psram): Init PSRAM before app_main to fix mmu_map

Makes sure that PSRAM is part of the map before app_main is called.

* 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-01 12:11:21 +03:00
Luca Burelli
a4cbdaf3a8
fix(HardwareSerial): fix pin remapping in begin() (#10379)
The pin remapping functions have to be called as early as possible in
the begin() function, to immediately convert the input parameters to the
GPIO numbers used everywhere in the core.

This issue has always been dormant since the introduction of pin
remapping in 2.x via 9b4622d, but was exposed by the proper pin muxing
support that is present in the 3.x core.

Move the pin remapping function calls earlier in the begin() function to
fix this issue.
2024-10-01 12:11:03 +03:00
Lucas Saavedra Vaz
e403f0b481
ci(json): Add configuration requirements to ci.json files (#10385)
* ci(json): Add support for checking sdkconfig before running tests

* docs(ci): Add explanation about requires field in JSON

* fix(json): Ignore comments when searching requirements

* feat(json): Add extended regex support to requires field

* change(json): Move to using requirements in JSON

* fix(json): Fix requirements for touch tests

* refactor(json): Fix formatting of JSON files

* fix(spi): Fix SPI example and JSON
2024-09-30 13:43:50 +03:00
Guil-T
1f1de2738b
Added Sparkfun ESP32-S3 Thing Plus board (#10382)
* Create pins_arduino.h

* added board Sparkfun ESP32-S3 Thing Plus

added board Sparkfun ESP32-S3 Thing Plus

* readded last line of hashes in boards.txt

* Update pins_arduino.h

re-added SS pin to pass test

* removed unapplicable flash configurations the sparkfun esp32-s3 thing plus

* added sparkfun esp32-s3 thing plus

removed commented 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-09-30 13:14:30 +03:00