Quadcube
Posts: 14
Joined: Fri Nov 30, 2012 6:03 am

Adafruit 16x2 LCD problem

Thu May 09, 2013 4:47 pm

followed the tutorial and met these errors...

Code: Select all

pi@raspberrypi ~ $ cd Adafruit-Raspberry-Pi-Python-Code
pi@raspberrypi ~/Adafruit-Raspberry-Pi-Python-Code $ cd Adafruit_CharLCD
pi@raspberrypi ~/Adafruit-Raspberry-Pi-Python-Code/Adafruit_CharLCD $ nano Adafruit_CharLCD.py
pi@raspberrypi ~/Adafruit-Raspberry-Pi-Python-Code/Adafruit_CharLCD $ chmod +x Adafruit_CharLCD.py
pi@raspberrypi ~/Adafruit-Raspberry-Pi-Python-Code/Adafruit_CharLCD $ sudo ./Adafruit_CharLCD.py
./Adafruit_CharLCD.py:68: RuntimeWarning: This channel is already in use, continuing anyway.  Use GPIO.setwarnings(False) to disable warnings.
  self.GPIO.setup(self.pin_e, GPIO.OUT)
./Adafruit_CharLCD.py:69: RuntimeWarning: This channel is already in use, continuing anyway.  Use GPIO.setwarnings(False) to disable warnings.
  self.GPIO.setup(self.pin_rs, GPIO.OUT)
./Adafruit_CharLCD.py:72: RuntimeWarning: This channel is already in use, continuing anyway.  Use GPIO.setwarnings(False) to disable warnings.
  self.GPIO.setup(pin, GPIO.OUT)
any ideas?o.0

Quadcube
Posts: 14
Joined: Fri Nov 30, 2012 6:03 am

Re: Adafruit 16x2 LCD problem

Sun May 12, 2013 6:38 am

any help please? :(

texy
Forum Moderator
Forum Moderator
Posts: 5161
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: Adafruit 16x2 LCD problem

Sun May 12, 2013 9:12 am

Hi,
they are not error messages, but just warning messages. The warning tells you how to cure the messages - "Use GPIO.setwarnings(False) to disable warnings."
That just hides the warning, a better solution is to stop the condition that produces the warnings. You should be able to find the solution if you search.
If you've connected up the LCD correctly, it should still work.

Hope this helps,
Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

Quadcube
Posts: 14
Joined: Fri Nov 30, 2012 6:03 am

Re: Adafruit 16x2 LCD problem

Mon May 13, 2013 11:13 am

thanks,shall try this out soon..my lcd wiring should be wrong

Return to “Other projects”