Moved hardware config to a runtime config YAML file in home
This commit is contained in:
parent
7a58b4e95e
commit
3925ef8cfe
10 changed files with 182 additions and 146 deletions
|
|
@ -1,15 +1,16 @@
|
|||
#!/usr/bin/env python
|
||||
from openflexure_microscope.camera.pi import StreamingCamera
|
||||
from openflexure_stage import OpenFlexureStage
|
||||
from openflexure_microscope import Microscope
|
||||
from openflexure_microscope.plugins import PluginMount, load_plugin, search_plugin_paths
|
||||
from openflexure_microscope import Microscope, config
|
||||
|
||||
import atexit
|
||||
import logging, sys
|
||||
logging.basicConfig(stream=sys.stderr, level=logging.DEBUG)
|
||||
|
||||
if __name__ == '__main__':
|
||||
microscope = Microscope(StreamingCamera(), OpenFlexureStage("/dev/ttyUSB0"))
|
||||
openflexurerc = config.load_config()
|
||||
|
||||
microscope = Microscope(StreamingCamera(openflexurerc), OpenFlexureStage("/dev/ttyUSB0"))
|
||||
|
||||
microscope.find_plugins() # Automatically find microscope plugins
|
||||
|
||||
|
|
@ -18,4 +19,4 @@ if __name__ == '__main__':
|
|||
microscope.plugin.test1.run()
|
||||
microscope.plugin.test2.run()
|
||||
|
||||
microscope.close()
|
||||
microscope.close()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue