geode-piano/vendor/embassy-usb-logger
dogeystamp cb80b0976a
get basics working
jumbled a bunch of boilerplate together
- midi
- serial logger
- button
2024-04-07 21:50:56 -04:00
..
src get basics working 2024-04-07 21:50:56 -04:00
Cargo.lock get basics working 2024-04-07 21:50:56 -04:00
Cargo.toml get basics working 2024-04-07 21:50:56 -04:00
LICENSE get basics working 2024-04-07 21:50:56 -04:00
README.md get basics working 2024-04-07 21:50:56 -04:00

embassy-usb-logger

USB implementation of the log crate. This logger can be used by any device that implements embassy-usb. When running, it will output all logging done through the log facade to the USB serial peripheral.

Usage

Add the following embassy task to your application. The Driver type is different depending on which HAL you use.

#[embassy_executor::task]
async fn logger_task(driver: Driver<'static, USB>) {
   embassy_usb_logger::run!(1024, log::LevelFilter::Info, driver);
}