Skip to content

Commit

Permalink
✨ Add PicoScope instrument detection
Browse files Browse the repository at this point in the history
  • Loading branch information
NoaSecond committed May 27, 2024
1 parent 442bc2c commit 9aec201
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from PySide6.QtCore import QTimer
from scripts.settings import Settings
from scripts.logger import log_values
from scripts.serialLink import list_available_ports
from scripts.devicesLink import list_available_ports


def loadUiWidget(uifilename, parent=None):
Expand Down
7 changes: 7 additions & 0 deletions scripts/serialLink.py → scripts/devicesLink.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,12 @@ def list_available_ports():

for port in ports:
available_ports.append(port.device)

# Add PicoScope devices
from pico_sdk import PicoDevice
found = PicoDevice.enumerate()
for device in found:
available_ports.append("PicoScope " + device.variant + " with serial " + device.serial)


return available_ports

0 comments on commit 9aec201

Please sign in to comment.