목록QtSerialPort (1)
YOGYUI
PyQt Serial Port List
- requires: PyQt5 PyQt5의 QtSerialPort 모듈로 현재 장비에서 접근 가능한 시리얼 포트를 리스트업해보자 공식 API 문서는 다음을 참고 https://doc.qt.io/qt-5/qtserialport-index.html https://doc.qt.io/qt-5/qserialportinfo.html from typing import List, Dict, Union from PyQt5 import QtSerialPort def list_serial() -> List[Dict[str, Union[str, int, bool]]]: available = QtSerialPort.QSerialPortInfo().availablePorts() lst = [{ 'port': x.portName..
Software/Python
2021. 1. 7. 01:04