Skip to content

Commit

Permalink
🎨 (spikes): Update lk_led_kit
Browse files Browse the repository at this point in the history
  • Loading branch information
HPezz committed Mar 8, 2022
1 parent 5c67e84 commit 4f26dee
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 "Waiting.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::Waiting animation_waiting(ears, belt);

HelloWorld hello;

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

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

ledkit.stop();
Expand Down

0 comments on commit 4f26dee

Please sign in to comment.