diff options
| author | Yuval Adam <_@yuv.al> | 2025-08-29 20:06:55 +0200 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2025-08-29 20:06:55 +0200 |
| commit | d096f707822967aa99d37605198fc9acd5f6a90d (patch) | |
| tree | dd22876cbde04b2ae27b21817622a2fe5f163204 /build_and_program.py | |
| parent | 4f9dc0d6456ff9da22b44ff46d4ac52500fbeb27 (diff) | |
Blinky works
Diffstat (limited to 'build_and_program.py')
| -rw-r--r-- | build_and_program.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/build_and_program.py b/build_and_program.py new file mode 100644 index 0000000..ba6c139 --- /dev/null +++ b/build_and_program.py @@ -0,0 +1,16 @@ +#!/usr/bin/env python3 + +import os +import sys + +# Add Vivado to PATH +vivado_bin = os.path.expanduser("~/Xilinx/2025.1/Vivado/bin") +os.environ["PATH"] = vivado_bin + ":" + os.environ.get("PATH", "") + +# Now run the original blinky script +from blinky import Blinky +from platform_alchitry_pt import AlchitryPtPlatform + +if __name__ == "__main__": + platform = AlchitryPtPlatform() + platform.build(Blinky(), do_program=True)
\ No newline at end of file |
