Skip to content

Commit

Permalink
🎨 (spikes): Upgrade lk_led_kit
Browse files Browse the repository at this point in the history
  • Loading branch information
HPezz committed Mar 9, 2022
1 parent bdd793b commit e9b5342
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 @@ -7,6 +7,7 @@
#include "drivers/HighResClock.h"
#include "rtos/ThisThread.h"

#include "AngryShort.h"
#include "CoreLED.h"
#include "CoreSPI.h"
#include "HelloWorld.h"
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::AngryShort animation_angry_short(ears, belt);

HelloWorld hello;

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

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

ledkit.stop();
Expand Down

0 comments on commit e9b5342

Please sign in to comment.