24 Bi Color Bargraph - One Element shows "wrong" colour

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
gregal
 
Posts: 1
Joined: Fri Jul 04, 2014 3:08 am

24 Bi Color Bargraph - One Element shows "wrong" colour

Post by gregal »

hi.

i got an Bi-Color (Red/Green) 24-Bar Bargraph w/I2C Backpack Kit connected to an arduino nano v3.1.
http://www.adafruit.com/products/1721

generally its working fine (all bars glowing, rigth bars glow if adressed etc..), but one of the two elements ist showing the wrong color
e.g. if i send green to one of the bars of this element (bar.setBar(b, LED_GREEN) -> the bar turns red. and the other way round.
this happens for all bars from b= 12 to b= 24 (= the second element)

example code:

Code: Select all

#include <Wire.h>
#include "Adafruit_LEDBackpack.h"
#include "Adafruit_GFX.h"

Adafruit_24bargraph bar = Adafruit_24bargraph();

void setup() {
  Serial.begin(9600);
  bar.begin(0x70);  // pass in the address
}

void loop() {
 for (uint8_t b=0; b<24; b++) {
   bar.setBar(b, LED_GREEN);
   bar.writeDisplay();
 }
results in this:
https://www.dropbox.com/s/xdj9rpvt1nc60 ... 091616.jpg

of course this is easy to fix in the code - just send the "oposite" colour to bars above 12.

but i wonder if i overlooked something while setting it up, or if simply the element is working wrong.

thanks for your feedback.

best regards
georg

User avatar
Franklin97355
 
Posts: 23911
Joined: Mon Apr 21, 2008 2:33 pm

Re: 24 Bi Color Bargraph - One Element shows "wrong" colour

Post by Franklin97355 »

It looks like the second chip was installed backwards.
Please email [email protected] with a link to this thread for a replacement.

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”