28 lines
550 B
Rust
28 lines
550 B
Rust
#![no_std]
|
|
#![no_main]
|
|
|
|
use lights_hal::{boot, entry};
|
|
|
|
pub use lights_hal::delay;
|
|
|
|
mod december_01_2019;
|
|
mod december_21_2019;
|
|
mod december_24_2019;
|
|
mod door_light;
|
|
|
|
#[entry]
|
|
fn main() -> ! {
|
|
let mut lights = boot();
|
|
|
|
#[cfg(feature = "december-01-2019")]
|
|
december_01_2019::run(&mut lights);
|
|
|
|
#[cfg(feature = "december-21-2019")]
|
|
december_21_2019::run(&mut lights);
|
|
|
|
#[cfg(feature = "december-24-2019")]
|
|
december_24_2019::run(&mut lights);
|
|
|
|
#[cfg(not(feature = "replace-default"))]
|
|
door_light::run(&mut lights);
|
|
}
|