Blog
Using TWILCD with Adafruit RGB displays
TWILCD RGB edition Pin 1x18 | ||
---|---|---|
Pin | Function | Comment |
1 | GND | VSS |
2 | VCC | VDD |
3 | V0 | Contrast |
4 | RS | |
5 | RW | |
6 | E | |
7 | DB0 | |
8 | DB1 | |
9 | DB2 | |
10 | DB3 | |
11 | DB4 | |
12 | DB5 | |
13 | DB6 | |
14 | DB7 | |
15 | LED - | GND to backlight |
16 | + RED | |
17 | + GREEN | |
18 | + BLUE |
We have recently got a couple of questions about using TWILCD 40x2/40x4/RGB edition together with Adafruits 16x2 and 20x4 RGB character displays.
The RGB displays from Adafruit are unfortunately not directly compatible. We constructed the TWILCD board for Newhaven RGB displays which are configured as common cathode RGB light. Adafruit's RGB displays are common anode.
Adafruit RGB displays expect:
- pin 15: LED +5V
- pin 16: Red GND
- pin 17: Green GND
- pin 18: Blue GND
It is possible to make it work with a couple of hacks:
Do not connect pin 15 to the board (it is marked with GND on the board.) Instead you need to pull a wire to connect pin 15 on the display to VCC.
In the Arduino library the color value will be inverted, so use this instead:
We have added all pinouts for our two TWILCD versions (standard and 40x2/40x4/RGB) to the TWILCD Resources page.