PaulStoffregen / LedDisplay

Print text to an Avago HCMS-29xx LED display
http://www.arduino.cc/playground/Main/LedDisplay
20 stars 13 forks source link

Brightness not working for multiple HCMS 29xx display #6

Open buentead opened 4 years ago

buentead commented 4 years ago

Brightness not set for multiple displays

I'm using 3x HCMS 2912 display. When reducing the brightness of the displays only the display on the far right is covered. The other two display remain the same.

Steps To Reproduce Problem

Assemble the three displays according to the following description: https://playground.arduino.cc/Main/LedDisplay/

Execute the Arduino Sketch attached below.

Hardware & Software

Board: Arduino Mega 2560 Shields / modules used: none Arduino IDE version: v1.8.12 Operating system & version: Windows 10 Pro, v1909

Arduino Sketch

#include <LedDisplay.h>
LedDisplay myDisplay = LedDisplay(2,3,4,5,6,24);

void setup() {
  myDisplay.begin();
  myDisplay.setCursor(0);
  myDisplay.print("123456789012345678901234");
  myDisplay.setBrightness(7);
}

void loop() {
}

Errors or Incorrect Output

No errors shown.

gregschlom commented 3 years ago

I was having the same issue. I believe this should be fixed if you use the latest version of the library. (Specifically, the one with this commit: https://github.com/PaulStoffregen/LedDisplay/commit/732d01712eb80ded1958365707f0a6a988a28ecb)