Пример #1
0
 def configureTempSensor(self):
     syslog.syslog(LOG_STSW_PRI, "> HVControlBoard:configureTempSensor")
     PBBDevices.selectSPISlave(TSENSOR_ID, SPI_MODE_3)
     PBBDevices.configureTSensor(SPI_MODE_3)
     PBBDevices.deSelectSPISlaves(SPI_MODE_3)
     syslog.syslog(LOG_STSW_PRI, "< HVControlBoard:configureTempSensor")
Пример #2
0
	def configureTempSensor(self):
		syslog.syslog(LOG_STSW_PRI,"> HVControlBoard:configureTempSensor")
		PBBDevices.selectSPISlave(TSENSOR_ID,SPI_MODE_3) 
		PBBDevices.configureTSensor(SPI_MODE_3)
		PBBDevices.deSelectSPISlaves(SPI_MODE_3)
		syslog.syslog(LOG_STSW_PRI,"< HVControlBoard:configureTempSensor")