用于与SportIdentit主站通信的Python模块
sportident的Python项目详细描述
SportIdentit阅读器
在运动标识.py是一个python模块,用于与SportIdent主站通信以读取SportIdent卡。 SportIdent是一种电子打孔系统,主要用于定向运动项目。在
fromtimeimportsleepfromsportidentimportSIReaderReadout# connect to base station, the station is automatically detected,# if this does not work, give the path to the port as an argument# see the pyserial documentation for further information.si=SIReaderReadout()# wait for a card to be inserted into the readerwhilenotsi.poll_sicard():sleep(1)# some properties are now setcard_number=si.sicardcard_type=si.cardtype# read out card datacard_data=si.read_sicard()# beepsi.ack_sicard()
- 项目
标签: