Announcement

Collapse
No announcement yet.

documentation

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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; 2 weeks ago.

  • #2
    Hi,

    You can change the Maximum value of the gauge from the gauges properties in the object inspector.

    Click image for larger version

Name:	4DuinoOI.png
Views:	24
Size:	84.8 KB
ID:	70329
    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

    Comment


    • #3
      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?

      Comment


      • #4
        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

        Comment

        Working...
        X