Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! fix: keyword-spotting
  • Loading branch information
lucarin91 committed Nov 6, 2025
commit d72db04efd0e319bfe2a3481a14810277f32a26a
8 changes: 6 additions & 2 deletions examples/keyword-spotting/sketch/heart_frames.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
* SPDX-License-Identifier: MPL-2.0
*/

const uint32_t HeartStatic[4] = {0x00006c04, 0x90208088, 0x02800800,
0x00000000};
const uint32_t HeartStatic[4] = {
0x00006c04,
0x90208088,
0x02800800,
0x00000000,
};

const uint32_t HeartAnim[][5] = {
{0x1dc11108, 0x08404104, 0x04401400, 0x40000000, 55}, // 1
Expand Down
22 changes: 9 additions & 13 deletions examples/keyword-spotting/sketch/sketch.ino
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,22 @@

Arduino_LED_Matrix matrix;

bool awake = false;

void setup() {
matrix.begin();
matrix.clear();

matrix.loadFrame(HeartStatic);

Bridge.begin();
Bridge.provide("keyword_detected", wake_up);
}

void loop() {
if (awake) {
matrix.loadSequence(HeartAnim);
matrix.playSequence();
delay(1000);
matrix.loadFrame(HeartStatic);
awake = false;
}
}
void loop() {}

void wake_up() {
matrix.loadSequence(HeartAnim);
matrix.playSequence();

void wake_up() { awake = true; }
delay(1000);

matrix.loadFrame(HeartStatic);
}