-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
90c5026
commit f94913c
Showing
11 changed files
with
984 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,5 @@ Gateware/open_beam_interface.bin | |
*.png | ||
*.pyc | ||
*.tif | ||
*.kicad_prl | ||
*.kicad_prl | ||
*.pdm-python |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
obi_applet/glasgowcontrib/applet/open_beam_interface/base_commands/pyproject.toml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,41 @@ | ||
from glasgowcontrib.applet.open_beam_interface.base_commands import * | ||
import sys | ||
print(sys.path) | ||
from obi_applet.base_commands import * | ||
|
||
seq = CommandSequence(output=OutputMode.NoOutput, raster=False) | ||
## seq.add(Command()) | ||
## ... | ||
seq.add(BlankCommand()) | ||
seq.add(EnableExtCtrlCommand()) | ||
seq.add(ExternalCtrlCommand(enable=True)) | ||
seq.add(DelayCommand(5760)) | ||
seq.add(SelectIbeamCommand()) | ||
seq.add(UnblankInlineCommand()) | ||
seq.add(BeamSelectCommand(beam_type=BeamType.Ion)) | ||
seq.add(BlankCommand(enable=False, inline=True)) | ||
|
||
|
||
dwell = 65536 | ||
|
||
|
||
print("generating commands") | ||
def box(x_start, y_start, x_width, y_height): | ||
## start ______ x = x_start + x_width, y = y_start | ||
## | | | ||
## ------ x = x_start + x_width, y = y_start + y_height | ||
for x in range(x_start, x_start+x_width): | ||
seq.add(VectorPixelCommand(x_coord=x, y_coord = y_start, dwell = dwell)) | ||
print(f"{x=}") | ||
#print(f"{x=}") | ||
for y in range(y_start, y_start+y_height): | ||
seq.add(VectorPixelCommand(x_coord=x_start+x_width, y_coord = y, dwell = dwell)) | ||
print(f"{y=}") | ||
#print(f"{y=}") | ||
for x in range(x_start+x_width, x_start, -1): | ||
seq.add(VectorPixelCommand(x_coord=x, y_coord = y_start+y_height, dwell = dwell)) | ||
print(f"{x=}") | ||
#print(f"{x=}") | ||
for y in range(y_start+y_height, y_start, -1): | ||
seq.add(VectorPixelCommand(x_coord=x_start, y_coord = y, dwell = dwell)) | ||
print(f"{y=}") | ||
#print(f"{y=}") | ||
|
||
|
||
box(5000, 5000, 5000, 5000) | ||
|
||
seq.add(DisableExtCtrlCommand()) | ||
|
||
|
||
seq.add(ExternalCtrlCommand(enable=False)) | ||
print("commands generated") | ||
print("writing") | ||
await iface.write(seq.message) | ||
await iface.flush() | ||
print("done writing") |
Oops, something went wrong.