Hi,
As the gauge is an SD card widget and created at design time, you won't be able to adjust the maximum value of the gauge but you could apply maths the the value you send.
Assuming that Maximum of the gauge you created is 100
int maxValue = 100;
int maxGaugeValue = timerValue
int gaugeVal;
gaugeVal = Val * maxValue / newMaxVal;
Paul
Announcement
Collapse
No announcement yet.
documentation
Collapse
X
-
Hi,
I need to change the maxValue of the gauge depending on a variable value.
I have to plot a timer counter, where maxGaugeValue==timerValue.
How can I achieve that?
Leave a comment:
-
Hi,
You can change the Maximum value of the gauge from the gauges properties in the object inspector.
You may find these appnotes useful
https://4dsystems.com.au/blog/4d-an-00100/
https://4dsystems.com.au/blog/4d-an-00124/
https://4dsystems.com.au/blog/4d-an-00089/
https://4dsystems.com.au/blog/4d-an-00123/
https://4dsystems.com.au/blog/4d-an-00112/
You will find many examples by clicking on File then Samples then the 4Duino and then Extended graphics.
The 4Duino also has the Paste Static Code button which will paste the code for the object you create into your projects code.
I hope this helps
Best regards
Paul
Leave a comment:
-
documentation
Hi, I want to change the max value of a gauge. Where I can find documentation about arduino library?
Examples? App notes?
Idem for buttons and touch events.
It's really hard to work with this 4duino, and the workshop4.Last edited by dextop; 18 November 2019, 09:28 PM.Tags: None
Leave a comment: