Skip to content

Conversation

@SuGlider
Copy link
Collaborator

Description of Change

This PR fixes a misplaced example (Serial_All_CPU_Freqs.ino) to add it to the necessary folder with the same name in order to have it available in the example list in the Arduino IDE.

The PR also adds a new example that demonstrates using std::function for HardwareSerial::onReceive().
It also demonstrates using a single general callback function for any Serial port, using a lambda function.

Tests scenarios

Tested using ESP32 and ESP32-S3 with all 3 UARTs and also using USB CDC enaled.

Related links

None

@SuGlider SuGlider added the Peripheral: UART Related to the UART peripheral or its functionality. label Jul 13, 2023
@SuGlider SuGlider added this to the 2.0.10 milestone Jul 13, 2023
@SuGlider SuGlider self-assigned this Jul 13, 2023
@VojtechBartoska VojtechBartoska added the Type: Example Issue is related to specific example. label Jul 17, 2023
@me-no-dev me-no-dev merged commit 1945778 into espressif:master Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Peripheral: UART Related to the UART peripheral or its functionality. Type: Example Issue is related to specific example.

Projects

Development

Successfully merging this pull request may close these issues.

4 participants