11 lines
284 B
Python
11 lines
284 B
Python
# 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()) |