Modelica-Arduino
Modelica-Arduino copied to clipboard
Led not working in sample BarGraph
Led not working in BarGraph example.
I edited the component LED.mo and replaced :
fillColor=DynamicSelect({100,40,40}, if mean.y > 0 then {100 + (mean.y/0.02)*155,40,40} else {100,40,40})
by
DynamicSelect({100, 40, 40}, {ceil(100+(mean.y/0.02)*155), 40, 40})
Then it works correctly.
Can you provide steps to reproduce the problem? In Dymola 2024x Refresh 1 the original code works fine.
Hi there,
I had time to work on the topic this week. I was unable to reproduce the problem on OM 1.24.4 . I think it's not worth working on this further to reproduce on OM 1.22
Thanks for your time.