Added multi-file support

This commit is contained in:
2026-04-10 17:19:14 -05:00
parent 8c40e111cd
commit 9d59fab9a6
8 changed files with 799 additions and 118 deletions

16
main.py
View File

@@ -1,8 +1,6 @@
from pybricks.hubs import PrimeHub
from pybricks.parameters import Color
from pybricks.tools import wait
import micropython
hub = PrimeHub()
hub.light.on(Color.RED)
wait(100)
@@ -15,4 +13,16 @@ print("This is the spike prime hub.")
print("\x1b[?PYN;99;hubReady;spike-prime~")
# Another test — event 6 (notify), level="info", message="Boot complete"
print("\x1b[?PYN;6;info;Boot complete~")
print("\x1b[?PYN;6;info;Boot complete~")
while True:
# This will stay here until you send a \n
answer = input("Type something: ")
# This will now show up in your [stdout] log
print("Hub received:", answer)
if answer == "stop":
break
print("--- Program Ended ---")