codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
x = 1 while 1: humidity, temperature=Adafruit_DHT.read_retry(sensor, pin) lcd_send_byte(LCD_LINE_1, LCD_CMD) lcd_message("Temp: {0:0.1f}\337C".format(temperature)) lcd_send_byte(LCD_LINE_2, LCD_CMD) lcd_message("Humidity: {0:0.1f}%".format(humidity)) time.sleep(5) x += 1 while 2: lcd_send_byte(LCD_LINE_1, LCD_CMD) lcd_message("Temp: {0:0.1f}\337C".format(sensor.read_temperature())) lcd_send_byte(LCD_LINE_2, LCD_CMD) lcd_message("Druck: {0:0.0f} hPa".format(sensor.read_pressure()/100)) time.sleep(5) x -= 1
Private
[
?
]
Run code
Submit