I'm new to Raspberry Pi and I'm trying to get a hang of the GPIO and all that. I bought a LCD-display 16x2 with 4 buttons (http://tinyurl.com/p4kjc3z).
I bought this one because it fits the first generations but after trying getting it to work, I later discovered that the B+ model has same pins as the second generations.
My question is: Can I re-map the pins in python and get it to work, or is it impossible?
UPDATE:
product description in English:
- Blue/white LCD-display 16x2 symbols
- includes 4 buttons
Only use 2x I2C pins(Edit: apparently it does not!)
The board with the LCD is mounted on top of the board with the buttons. On the LCD board there are 16 pins passing trough the lower board they have latter there match much code I have found online, while researching this.
The code are variable names to indicate GPIO to LCD lines.
The letters are as following (Also see image on webisite):
- VSS
- VDD
- VO
- RS
- RW
- E
- D0
- D1
- D2
- D3
- D4
- D5
- D6
- D7
- A
- K
The pins on the lower button board counts a total of 26 and as far I can see the pins from the top LCD board are passed thoug it.
I have tested the buttons by following the guide from the website and they all work great. Whene im turning on the PI the LCD lights up, so i guess the power part are working. However I can't get any output to the display, I have follow alle the code and tut from the guide, with no error in the code itself.
Here is the code from the guide, to assign output. I'm not sure if it has any value.
#OUTPUTS: map GPIO to LCD lines
LCD_RS = 7 #GPIO7 = Pi pin 26
LCD_E = 8 #GPIO8 = Pi pin 24
LCD_D4 = 17 #GPIO17 = Pi pin 11
LCD_D5 = 18 #GPIO18 = Pi pin 12
LCD_D6 = 27 #GPIO21 = Pi pin 13
LCD_D7 = 22 #GPIO22 = Pi pin 15
OUTPUTS = [LCD_RS,LCD_E,LCD_D4,LCD_D5,LCD_D6,LCD_D7]
#INPUTS: map GPIO to Switches
SW1 = 4 #GPIO4 = Pi pin 7
SW2 = 23 #GPIO16 = Pi pin 16
SW3 = 10 #GPIO10 = Pi pin 19
SW4 = 9 #GPIO9 = Pi pin 21
INPUTS = [SW1,SW2,SW3,SW4]
Here are hi-res images. SEE WEBSITE OR COMMENT. CAN'T POST LINKS! lol.