Changes

Jump to navigation Jump to search
593 bytes added ,  16:56, 18 January 2016
no edit summary
Line 23: Line 23:  
  import temperaturehumidity
 
  import temperaturehumidity
 
  th = temperaturehumidity.TemperatureHumidity()
 
  th = temperaturehumidity.TemperatureHumidity()
 +
print(th.waitString())
 +
</code>
 +
 +
== Potential problems ==
 +
The temperaturehumidity device identifies as a bttonbox. Lab computer are set up in a way that makes the second buttonbox behave different from all other devices. If you are using both the buttonbox and the temperaturehumidity device, please look up the portname of the temperaturehumidity device in the windows device manager and if it is for instance 'COM3' then change the code above into:
 +
<code>
 +
#!/usr/bin/env python
 +
# -*- coding: utf-8 -*-
 +
import temperaturehumidity
 +
th = temperaturehumidity.TemperatureHumidity(port='COM3')
 
  print(th.waitString())
 
  print(th.waitString())
 
</code>
 
</code>

Navigation menu