Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes Serial Example and Adds a new std:func Serial Example #8409

Merged
merged 3 commits into from
Jul 17, 2023

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 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 Type: Example Issue is related to specific example.
Projects
Development

Successfully merging this pull request may close these issues.

4 participants