| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 |
- 배당
- raspberry pi
- ConnectedHomeIP
- esp32
- 파이썬
- homebridge
- 코스피
- Python
- 미국주식
- 애플
- 국내주식
- 홈네트워크
- MQTT
- 해외주식
- Bestin
- 취미생활
- matter
- Home Assistant
- 티스토리챌린지
- 나스닥
- 삼성전자
- 월패드
- 매터
- 현대통신
- 엔비디아
- Apple
- 오블완
- 힐스테이트 광교산
- RS-485
- 스타벅스
- Today
- Total
목록Software/Python (32)
YOGYUI
- 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..
나중에 시간날때 Git에 올려야겠다... [Structure] ---- -------- Define.py -------- Threads.py -------- SerialComm.py # Define.py import datetime import threading def checkAgrumentType(obj, arg): if type(obj) == arg: return True if arg == object: return True if arg in obj.__class__.__bases__: return True return False class Callback(object): _args = None _callback = None def __init__(self, *args): self._args = a..