Welcome to the forum for MobiFlight! Feel free to reach out to the community in case you have questions, issues or just want to share great ideas or details about your latest home cockpit project.
You like MobiFlight? Donate via PayPal and support the MobiFlight development. Thanks!
The community support for MobiFlight has moved exclusively over to our Discord server. Register for free and enjoy more interactive functions like image and video upload, voice chat. More than 7,000 registered users around the world make it a great experience!
See you on our MobiFlight Community Discord server.
A HUGE Thank You to everyone who participated in the forum, especially obviously to Pizman and Stephan who did an outstanding job over so many years providing an incredible service to the MobiFlight community.
The forum is still providing a lot of good content, hence we keep this information accessible.
Code:
#include "LedControl.h" // Arduino Pin 7 to DIN, 6 to Clk, 5 to LOAD, no.of devices is 1 LedControl lc=LedControl(7,6,5,1); void setup() { // Initialize the MAX7219 device lc.shutdown(0,false); // Enable display lc.setIntensity(0,10); // Set brightness level (0 is min, 15 is max) lc.clearDisplay(0); // Clear display register } void loop() { for(int i=0; i<8; i++){ lc.setDigit(0,i,i+1,false); } delay(1000); }

@aeromax
Versuch mal mit diesem code:
Code:
#include "LedControl.h" // Arduino Pin 7 to DIN, 6 to Clk, 5 to LOAD, no.of devices is 1 LedControl lc=LedControl(7,6,5,1); void setup() { // Initialize the MAX7219 device lc.shutdown(0,false); // Enable display lc.setIntensity(0,10); // Set brightness level (0 is min, 15 is max) lc.clearDisplay(0); // Clear display register } void loop() { for(int i=0; i<8; i++){ lc.setDigit(0,i,i+1,false); } delay(1000); }
oder werfe mal einen blick here:
http://embedded-lab.com/blog/introducing-a-new-serial-spi-8-digit-seven-segment-led-display-module-using-max7219/
Villeicht hilft es
AlbEagle

Doch kein 60cm-Fehler
![]()
klar, eben auch kein ID10T


Hi aeromax,
ich nutze momentan an einem MEGA 14 MAX7219 in zwei Ketten (1x8 und 1x6) mit je 5 Digits. Keine Probleme.
Sebastian hat pro MEGA auf 4 Ketten mit 8 Displays zu je 8 Digits (also 256 Digits) begrenzt.
Da die Digits gemultiplexed werden ist also bei je 8 Digits immer nur 1 aktiv. Bei Vollausbau sind also 32 Digits aktiv.
Durch das Multiplexen sinkt gleichzeitig auch der Stromverbrauch pro Digit.
Ich vermute, daß bei Vollausbau kein externes Netzteil erforderlich ist. Es werden ja die Pins nicht belastet, weil hier nur die Daten laufen.
Du kannst ja bei deinem Ausbau den Strom messen. Wenn du dann in die Nähe von 500mA kommst, kannst du aus Sicherheitsgründen ein externes Netzteil verwenden. Dann aber an eine gemeinsame Masse(GND) mit dem MEGA denken. Keinesfalls mit den externen +5V auf den MEGA gehen!
