Today I did solder 5 pin angle headers to another max7219 8-digit 7-segment tube lcd.
I followed the instant idea of plugging the 5 pins into D7-D3 and let D7 play 5V, D6 play GND:
Recently I did fork Ozhan's DigitLedDisplay library:
https://forum.arduino.cc/index.php?topic=651696.0
I changed the initial demo only slighty to make it work in described no-cables setup:
$ diff -C 2 libraries/DigitLedDisplay/examples/Digit7SegmentDemo/Digit7SegmentDemo.ino ~/Arduino/sketch_dec08a/sketch_dec08a.ino
*** libraries/DigitLedDisplay/examples/Digit7SegmentDemo/Digit7SegmentDemo.ino 2019-12-03 11:09:48.689729347 +0100
--- /home/stammw/Arduino/sketch_dec08a/sketch_dec08a.ino 2019-12-08 11:50:39.789708093 +0100
***************
*** 7,14 ****
6 to CS,
5 to CLK */
! DigitLedDisplay ld = DigitLedDisplay(7, 6, 5);
void setup() {
/* Set the brightness min:1, max:15 */
ld.setBright(10);
--- 7,17 ----
6 to CS,
5 to CLK */
! DigitLedDisplay ld = DigitLedDisplay(5, 4, 3);
void setup() {
+ pinMode(7, OUTPUT); digitalWrite(7, HIGH);
+ pinMode(6, OUTPUT); digitalWrite(6, LOW);
+
/* Set the brightness min:1, max:15 */
ld.setBright(10);
$
$
It worked fine, but I wanted to know whether it is safe to use Uno D7 as 5V pin.
Uno allows to draw 40mA on digital pins.
I did change brightness to 15 (maximal) and displayed 8 times "8.".
I powered the max7219 module from my constant voltage power supply with 5V and measured the current as permanent 36mA:
So it is safe to do what I did, and plugging a 2nd tube display into D12-D8 at the same time should be safe as well.
Of course I should have measured first ...



