Crates.io | esp-fast-serial |
lib.rs | esp-fast-serial |
version | 0.3.0 |
source | src |
created_at | 2024-08-24 00:00:29.176994 |
updated_at | 2024-10-12 17:53:51.328366 |
description | Fast USB serial library for ESP32-S3 and similar chips with the USB-Serial-JTAG peripheral. |
homepage | |
repository | https://github.com/ProfFan/esp-fast-serial |
max_upload_size | |
id | 1349733 |
size | 21,435 |
esp-fast-serial
Fast serial communication for ESP32-S3 and similar microcontrollers that has a built-in USB Serial JTAG interface.
esp-println
implementation.defmt
printer.defmt
logging.defmt
messages that are less than 2048 bytes.
defmt
messages cannot be interleaved, we have to make a global buffer to store the full message.Add the following to your Cargo.toml
:
[dependencies]
esp-fast-serial = { version = "0.2.3", features = ["esp32s3"] }
Then, in your main.rs
:
spawner.spawn(esp_fast_serial::serial_comm_task(peripherals.USB_DEVICE));
// After the task created the serial I/O, you can get the handle to the RX queue
let reader = esp_fast_serial::reader_take();
MIT OR Apache-2.0