holiday_lights/harrogate/src/main.rs

69 lines
1.5 KiB
Rust
Raw Normal View History

#![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;
2020-12-03 04:41:00 +00:00
mod december_02_2020;
2021-12-03 02:13:14 +00:00
mod december_02_2021;
2020-02-13 23:55:33 +00:00
mod valentines_2020;
2020-03-17 04:08:23 +00:00
mod st_patricks_day;
2020-07-04 23:56:50 +00:00
mod july_4;
mod halloween_2020;
2021-10-31 23:20:10 +00:00
mod halloween_2021;
2022-10-05 23:57:17 +00:00
mod halloween_2022;
2020-11-01 23:57:33 +00:00
mod november_2020;
2020-12-31 19:15:09 +00:00
mod new_years_eve_2020;
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);
2020-12-03 04:41:00 +00:00
#[cfg(feature = "december-02-2020")]
december_02_2020::run(&mut lights);
2021-12-03 02:13:14 +00:00
#[cfg(feature = "december-02-2021")]
december_02_2021::run(&mut lights);
2020-02-13 23:55:33 +00:00
#[cfg(feature = "valentines-2020")]
valentines_2020::run(&mut lights);
2020-03-17 04:08:23 +00:00
#[cfg(feature = "st-patricks-day")]
st_patricks_day::run(&mut lights);
2020-07-04 23:56:50 +00:00
#[cfg(feature = "july-4")]
july_4::run(&mut lights);
#[cfg(feature = "halloween-2020")]
halloween_2020::run(&mut lights);
2021-10-31 23:20:10 +00:00
#[cfg(feature = "halloween-2021")]
halloween_2021::run(&mut lights);
2022-10-05 23:57:17 +00:00
#[cfg(feature = "halloween-2022")]
halloween_2022::run(&mut lights);
2020-12-31 19:15:09 +00:00
#[cfg(feature = "new-years-eve-2020")]
new_years_eve_2020::run(&mut lights);
2020-11-01 23:57:33 +00:00
#[cfg(feature = "november-2020")]
november_2020::run(&mut lights);
#[cfg(not(feature = "replace-default"))]
door_light::run(&mut lights);
}