Skip to content

Commit 63ae5b1

Browse files
committed
add license, code format, add link to original code this was adapted from.
1 parent a7c82a6 commit 63ae5b1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Raspberry_Pi/Raspberry_Pi5_Moonshine_VoiceControl_NeoPixels/voice_control_lights.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# SPDX-FileCopyrightText: 2026 Tim Cocks for Adafruit Industries
2+
#
3+
# SPDX-License-Identifier: MIT
4+
"""
5+
Adapted from Moonshine my-dalek example:
6+
https://github.com/moonshine-ai/moonshine/blob/main/examples/raspberry-pi/my-dalek/my-dalek.py
7+
"""
18
import argparse
29
import sys
310
import time
@@ -11,6 +18,7 @@
1118
get_embedding_model,
1219
)
1320
from adafruit_led_animation.animation.colorcycle import ColorCycle
21+
1422
# pylint: disable=global-statement
1523

1624
# NeoPixels setup
@@ -63,7 +71,7 @@ def update_last_terminal_line(self, new_text: str):
6371
print(f"{' ' * diff}", end="", flush=True)
6472
self.last_line_text_length = len(new_text)
6573

66-
def on_line_started(self, event): #pylint: disable=unused-argument
74+
def on_line_started(self, event): # pylint: disable=unused-argument
6775
self.last_line_text_length = 0
6876

6977
def on_line_text_changed(self, event):

0 commit comments

Comments
 (0)