I am working on a simplest project of driving LCD display with raw GPIO pins without the use of any I2C interface. The Tutorial I followed is given in the link below. https://www.youtube.com/watch?v=cVdSc8VYVBM
I have a Rpi model B+ and a 16x2 LCD module.
The pin connections are exactly the same as described in the video. The code is given here : http://pastebin.com/bYM1DtpF
I am accessing Rpi with ssh. Whenever I try to run the program it gives these strings of warning messages.
pi@raspberrypi ~/lcd $ sudo python lcd.py
lcd.py:98: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.
GPIO.setup(LCD_E, GPIO.OUT) # E
lcd.py:99: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.
GPIO.setup(LCD_RS, GPIO.OUT) # RS
lcd.py:100: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.
GPIO.setup(LCD_D4, GPIO.OUT) # DB4
lcd.py:101: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.
GPIO.setup(LCD_D5, GPIO.OUT) # DB5
lcd.py:102: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.
GPIO.setup(LCD_D6, GPIO.OUT) # DB6
lcd.py:103: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.
GPIO.setup(LCD_D7, GPIO.OUT) # DB7
lcd.py:104: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.
GPIO.setup(LED_ON, GPIO.OUT) # Backlight enable
But nothing happens except only the upper row of the LCD is glowing. No messages appear on the display. Is there anything wrong with the code or anything wrong with how I run the program?