pyMonitor.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:pyMonitor 作者: ahmedalkabir 项目源码 文件源码
def __init__(self, port, baud_rate, byte_size=serial.EIGHTBITS, parity=serial.PARITY_NONE, stop_bit=serial.STOPBITS_ONE):

                # initialize the connection and if anything ok open the port
                self.__main_conn = serial.Serial(port, baud_rate, bytesize=byte_size, parity=parity, stopbits=stop_bit)

                # Queue
                self.dataQueue = queue.Queue()
                self.checkStatusQueue = queue.Queue()

                # Define Variables
                self.out = ''
                self.__flag_out = True
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号