A physical device for visualizing a numerical value with a moving needle.
Setting this to a number between 0 and 100 will move the needle from left to right relative to that number.
Here's some code that sets an AnalogGauge to 100 if a LedButton is pressed down:
function update() -- if the button is pressed down if gdt.LedButton0.ButtonState then -- then the gauge gets set to 100 gdt.Gauge0.Value = 100 -- otherwise else -- the gauge will be set to 0 gdt.Gauge0.Value = 0 end end
Note that even though the setting of the value is instantaneous, since the physical needle of the gauge can't move instantly, you can see it bounce between 0 and 100 in this example.