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();
}
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