From 8c40e111cd54b2e7cdde17f613b4b9d3828a25c8 Mon Sep 17 00:00:00 2001 From: Arcmyx Official Date: Thu, 26 Mar 2026 17:33:24 +0000 Subject: [PATCH] Test ANSI escape codes --- main.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 390e8d9..723079f 100644 --- a/main.py +++ b/main.py @@ -2,9 +2,17 @@ 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) + print("Hello, World!") print("This is the spike prime hub.") -print(micropython.mem_info()) \ No newline at end of file +#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~") \ No newline at end of file