+
diff --git a/main.py b/main.py
index 723079f..b9b9cb1 100644
--- a/main.py
+++ b/main.py
@@ -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~")
\ No newline at end of file
+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 ---")
diff --git a/project/bundle.py b/project/bundle.py
new file mode 100644
index 0000000..e366a3f
--- /dev/null
+++ b/project/bundle.py
@@ -0,0 +1,11 @@
+# build.py
+import asyncio
+from pybricksdev.compile import compile_multi_file
+
+async def main():
+ result = await compile_multi_file("main.py", 5)
+ with open("main.bin", "wb") as f:
+ f.write(result)
+ print(f"Written {len(result)} bytes to main.bin")
+
+asyncio.run(main())
\ No newline at end of file
diff --git a/project/imported.py b/project/imported.py
new file mode 100644
index 0000000..38e193c
--- /dev/null
+++ b/project/imported.py
@@ -0,0 +1,3 @@
+def foo():
+ x = "importing works :D"
+ print(x)
\ No newline at end of file
diff --git a/project/main.bin b/project/main.bin
new file mode 100644
index 0000000..3a6f9c2
Binary files /dev/null and b/project/main.bin differ
diff --git a/project/main.py b/project/main.py
new file mode 100644
index 0000000..27d9246
--- /dev/null
+++ b/project/main.py
@@ -0,0 +1,29 @@
+from pybricks.hubs import PrimeHub
+from pybricks.parameters import Color
+from pybricks.tools import wait
+from imported import foo
+hub = PrimeHub()
+hub.light.on(Color.RED)
+wait(100)
+
+print("Hello, World!")
+print("This is the spike prime hub.")
+#print(micropython.mem_info())
+
+# Pynamics escape code test — event 99 (custom), name="hubReady", payload="spike-prime"
+print("\x1b[?PYN;99;hubReady;spike-prime~")
+
+# Another test — event 6 (notify), level="info", message="Boot complete"
+print("\x1b[?PYN;6;info;Boot complete~")
+foo()
+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 ---")