title: This constructor takes no arguments lcd
body: <p>This is the code that I am trying to display humidity sensor data
  to my lcd...</p>
  
  <p>When I run this program,</p>
  
  <blockquote>
    <p>Traceback(most recent call last):    File "lcd.py", line 7 in
    
         lcd = CharLCD(cols=16, rows=2, pin_rs=37, pin_e=35, pins_data=[33, 31, 29, 23]) TypeErrir: this constructor takes no
    arguments</p>
  </blockquote>
  
  <pre><code>import sys
  import Adafruit_DHT
  
  from RPLCD import CharLCD
  
  lcd = CharLCD(cols=16, rows=2, pin_rs=37, pin_e=35, pins_data=[33, 31, 29, 23])
  
  
  while True:
      humidity, temperature = Adafruit_DHT.read_retry(11, 4)
  
      lcd.cursor_pos = (0, 0)
      lcd.write_string("Temp: %d C" % temperature)
      lcd.cursor_pos = (1, 0)
      lcd.write_string("Humidity: %d %%" % humidity)
  </code></pre>
  
  <p>I have put all the pins right but i am not sure what i did wrong.</p>