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

11
project/bundle.py Normal file
View File

@@ -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())