2019-11-23 22:48:16 +00:00
|
|
|
#![no_std]
|
|
|
|
#![no_main]
|
|
|
|
|
|
|
|
use lights_hal::{boot, entry};
|
|
|
|
|
|
|
|
pub use lights_hal::delay;
|
|
|
|
|
2019-11-23 23:55:21 +00:00
|
|
|
mod december_2019;
|
2019-11-23 22:48:16 +00:00
|
|
|
mod door_light;
|
|
|
|
|
|
|
|
#[entry]
|
|
|
|
fn main() -> ! {
|
|
|
|
let mut lights = boot();
|
|
|
|
|
2019-11-23 23:55:21 +00:00
|
|
|
#[cfg(feature = "december-2019")]
|
|
|
|
december_2019::run(&mut lights);
|
|
|
|
|
2019-11-23 22:48:16 +00:00
|
|
|
#[cfg(not(feature = "replace-default"))]
|
|
|
|
door_light::run(&mut lights);
|
|
|
|
}
|