Jonathan 'theJPster' Pallant 4e2c632485 Add a lib that you can test.
2021-12-05 18:47:34 +00:00

20 lines
401 B
Rust

//! # Library Code for the rp2040-project-template application
//!
//! Code in this file can be tested on the host with `cargo
//! test --lib --target=<your PC's target>`
#[cfg_attr(not(test), no_std)]
/// LED on-period and off-period, in milliseconds
pub const LED_DELAY_MS: u32 = 500;
#[cfg(test)]
mod test {
#[test]
fn it_works() {
let sum = 2 + 2;
assert_eq!(4, sum);
}
}
// End of file