distinguish decembers
This commit is contained in:
parent
b9689fddb9
commit
f75473b532
3 changed files with 5 additions and 4 deletions
|
@ -13,7 +13,7 @@ debug = true
|
||||||
|
|
||||||
replace-default = []
|
replace-default = []
|
||||||
|
|
||||||
december-2019 = ["replace-default"]
|
december-01-2019 = ["replace-default"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
house = { path = "../house" }
|
house = { path = "../house" }
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//! Streamers of white on a shifting color backdrop
|
||||||
use super::delay;
|
use super::delay;
|
||||||
use house::Harrogate;
|
use house::Harrogate;
|
||||||
use lights::rgb::{blend, blend_steps, linear_gradient, Rgb};
|
use lights::rgb::{blend, blend_steps, linear_gradient, Rgb};
|
|
@ -5,15 +5,15 @@ use lights_hal::{boot, entry};
|
||||||
|
|
||||||
pub use lights_hal::delay;
|
pub use lights_hal::delay;
|
||||||
|
|
||||||
mod december_2019;
|
mod december_01_2019;
|
||||||
mod door_light;
|
mod door_light;
|
||||||
|
|
||||||
#[entry]
|
#[entry]
|
||||||
fn main() -> ! {
|
fn main() -> ! {
|
||||||
let mut lights = boot();
|
let mut lights = boot();
|
||||||
|
|
||||||
#[cfg(feature = "december-2019")]
|
#[cfg(feature = "december-01-2019")]
|
||||||
december_2019::run(&mut lights);
|
december_01_2019::run(&mut lights);
|
||||||
|
|
||||||
#[cfg(not(feature = "replace-default"))]
|
#[cfg(not(feature = "replace-default"))]
|
||||||
door_light::run(&mut lights);
|
door_light::run(&mut lights);
|
||||||
|
|
Loading…
Reference in a new issue