We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, i tryed your: Python_DHT with Python 3.4.2. Did not work.
python3 AdafruitDHT.py File "AdafruitDHT.py", line 35 print 'usage: sudo ./Adafruit_DHT.py [11|22|2302] GPIOpin#' ^ SyntaxError: Missing parentheses in call to 'print'
It work with python2
Here is my mod
AdafruitDHT.zip
24c24 < import Adafruit_DHT --- > import Python_DHT 28,30c28,30 < sensor_args = { '11': Adafruit_DHT.DHT11, < '22': Adafruit_DHT.DHT22, < '2302': Adafruit_DHT.AM2302 } --- > sensor_args = { '11': Python_DHT.DHT11, > '22': Python_DHT.DHT22, > '2302': Python_DHT.AM2302 } 35,36c35,36 < print 'usage: sudo ./Adafruit_DHT.py [11|22|2302] GPIOpin#' < print 'example: sudo ./Adafruit_DHT.py 2302 4 - Read from an AM2302 connected to GPIO #4' --- > print ("usage: sudo ./Adafruit_DHT.py [11|22|2302] GPIOpin#") > print ("example: sudo ./Adafruit_DHT.py 2302 4 - Read from an AM2302 connected to GPIO #4") 41c41 < humidity, temperature = Adafruit_DHT.read_retry(sensor, pin) --- > humidity, temperature = Python_DHT.read_retry(sensor, pin) 48c48 < print 'Temp={0:0.1f}*C Humidity={1:0.1f}%'.format(temperature, humidity) --- > print ('Temp={0:0.1f}*C Humidity={1:0.1f}%'.format(temperature, humidity)) 50c50 < print 'Failed to get reading. Try again!' --- > print ('Failed to get reading. Try again!')
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
i tryed your: Python_DHT with Python 3.4.2.
Did not work.
python3 AdafruitDHT.py
File "AdafruitDHT.py", line 35
print 'usage: sudo ./Adafruit_DHT.py [11|22|2302] GPIOpin#'
^
SyntaxError: Missing parentheses in call to 'print'
It work with python2
Here is my mod
AdafruitDHT.zip
The text was updated successfully, but these errors were encountered: