Skip to content

Commit

Permalink
🎨 (spikes): Update ld_led_kit
Browse files Browse the repository at this point in the history
  • Loading branch information
HPezz committed Mar 8, 2022
1 parent 202cad3 commit 1f35bb4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spikes/lk_led_kit/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "HelloWorld.h"
#include "LedKit.h"
#include "LogKit.h"
#include "WakeUp.h"

using namespace leka;
using namespace std::chrono;
Expand All @@ -26,6 +27,7 @@ auto animation_thread = rtos::Thread {};
auto animation_event_queue = events::EventQueue {};

auto ledkit = LedKit {animation_thread, animation_event_queue, ears, belt};
led::animation::WakeUp animation_wake_up(ears, belt);

HelloWorld hello;

Expand All @@ -38,6 +40,7 @@ auto main() -> int
hello.start();

while (true) {
ledkit.start(animation_wake_up);
rtos::ThisThread::sleep_for(40s);

ledkit.stop();
Expand Down

0 comments on commit 1f35bb4

Please sign in to comment.