Changes

Jump to navigation Jump to search
24 bytes removed ,  09:50, 11 October 2022
Line 29: Line 29:  
The temperaturehumidity device identifies as a buttonbox. 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 port name of the temperaturehumidity device in the windows device manager and if it is for instance 'COM3' then change the code above into:
 
The temperaturehumidity device identifies as a buttonbox. 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 port name of the temperaturehumidity device in the windows device manager and if it is for instance 'COM3' then change the code above into:
 
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
  #!/usr/bin/env python
+
  #!/usr/bin/env python3
# -*- coding: utf-8 -*-
   
  import temperaturehumidity
 
  import temperaturehumidity
 
  th = temperaturehumidity.TemperatureHumidity(port='COM3')
 
  th = temperaturehumidity.TemperatureHumidity(port='COM3')
 
  print(th.waitString())
 
  print(th.waitString())
 
</syntaxhighlight>
 
</syntaxhighlight>

Navigation menu