/* Copyright 2022, Savanni D'Gerinel This file is part of Savanni's AVR library. This AVR library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This AVR library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this AVR library. If not, see . */ #ifndef __LANTERN_H__ #define __LANTERN_H__ #include typedef struct { sk9822_t lights; color_scheme_e color_scheme; animation_t animations[LIGHT_COUNT]; } lantern_t; lantern_t lantern_new(sk9822_t lights) { void lantern_set_mode(lantern_t *self, color_scheme_e scheme); void lantern_step(lantern_t *self, display_t *display, rng_t *rng, rgb_t colors[LIGHT_COUNT]); void lantern_show(lantern_t *lantern, display_t *display); #endif