Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/w/s/ws-28xx-HEAD/CHistoryDataSet.py   ws-28xx(Download)
		self.m_OutdoorHumidity = USBHardware.ToHumidity(buf, pos + 11, 0);
		self.m_RainCounterRaw = USBHardware.ByteToFloat(buf, pos + 12, 0, 16, 3);
		self.m_WindSpeed = USBHardware.ToWindspeedRingBuffer(buf, pos + 14);
		self.m_WindDirection = (buf[0][pos + 15] >> 4) & 0xF;
		if ( self.m_WindSpeed == CWeatherTraits.WindNP() ):
			self.m_WindDirection = 16
		if ( self.m_WindDirection < 0 and self.m_WindDirection > 16 ):
			self.m_WindDirection = 16
		self.m_Gust = USBHardware.ToWindspeedRingBuffer(buf, pos + 16)