Thanks for your help, i also got a problem in the solderpoints as well.
Currently i am facing a strange Problem. I created a daisychain of 2 7219 Displays.
This code is not working:
Code: Select all
display_chr_ap = hw_chr_display_add("MAX7219", 2, "ARDUINO_MEGA2560_A_D26", "ARDUINO_MEGA2560_A_D22", "ARDUINO_MEGA2560_A_D24")
function show_dsp(alt, hdg)
hw_chr_display_set_text(display_chr_ap, 0, 0, string.format("%04.00f", alt) )
hw_chr_display_set_text(display_chr_ap, 1, 0, string.format("%04.00f", hdg) )
end
fsx_variable_subscribe("AUTOPILOT ALTITUDE LOCK VAR", "Feet", "AUTOPILOT HEADING LOCK DIR", "Degrees", show_dsp)
it only shows me heading on the 2nd display, but no altitude on the first one.
When changing the code like this
Code: Select all
hw_chr_display_set_text(display_chr_ap, 0, 0, string.format("%04.00f", alt) )
--hw_chr_display_set_text(display_chr_ap, 1, 0, string.format("%04.00f", hdg) )
the altitude is displayed correctly on the first display.
When changing the code like this
Code: Select all
--hw_chr_display_set_text(display_chr_ap, 0, 0, string.format("%04.00f", alt) )
hw_chr_display_set_text(display_chr_ap, 1, 0, string.format("%04.00f", hdg) )
the heading is displayed correctly on the second display.
What am i missing to display both values at the same time, while they are working for each alone without problems?