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