Blog

Using TWILCD with Adafruit RGB displays

2012.12.5
TWILCD RGB edition
Pin 1x18
PinFunctionComment
1GNDVSS
2VCCVDD
3V0Contrast
4RS
5RW
6E
7DB0
8DB1
9DB2
10DB3
11DB4
12DB5
13DB6
14DB7
15LED -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:

Code block with id '25' not found.

We have added all pinouts for our two TWILCD versions (standard and 40x2/40x4/RGB) to the TWILCD Resources page.