Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding laser base and voltran stradus laser module #148

Merged
merged 21 commits into from
Mar 13, 2023
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
4 changes: 4 additions & 0 deletions copylot/hardware/lights/abstract_light.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import abc

class AbstractLight(metaclass=abc.ABCMeta):
pass
Empty file.
Empty file.
23 changes: 23 additions & 0 deletions copylot/hardware/lights/voltran/test/test_voltran.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#%%
from copylot.hardware.lights.voltran import voltran

def demo_get_laser():
laser_list = voltran.get_lasers()
print(laser_list)

def demo_voltran():
laser_list = voltran.get_lasers()
laser = voltran.VoltranLaser(port=laser_list[0][0])
laser.disconnect()

def demo_send_cmd():
laser_list = voltran.get_lasers()
print(laser_list[0][0])
with voltran.VoltranLaser(port=laser_list[0][0]) as laser:
print(laser.laser_power)

if __name__ == '__main__':
demo_get_laser()
demo_voltran()
demo_send_cmd()
# %%
Loading