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 0001d1d commit 6251042
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 6251042

Please sign in to comment.