|
|
| (12 intermediate revisions by 3 users not shown) |
| Line 43: |
Line 43: |
|
| |
|
|
| |
|
|
| |
|
| |
| ''No detailed description exists yet for this component''
| |
|
| |
| ==Examples==
| |
|
| |
|
|
| |
|
| Line 54: |
Line 49: |
|
| |
|
|
| |
|
| | ''No detailed description exists yet for this component'' |
|
| |
|
| | ==Examples== |
|
| |
|
|
| |
|
| Line 70: |
Line 67: |
|
| |
|
|
| |
|
| Example Program showing how to show the temperature in Celsius and Fahrenheit and expected ADC pin voltage on an LCD.
| |
| {{Fcfile|Analogue_Sensors_Example.fcfx|Analogue Sensors Example}}
| |
|
| |
|
| ==Macro reference==
| |
|
| |
|
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
| |
| |-
| |
| | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| |
| | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetBrightness'''
| |
| |-
| |
| | colspan="2" | Set the brightness of the LED.
| |
| |-
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
| |
| | width="90%" | Brightness
| |
| |-
| |
| | colspan="2" | Brightness from 0.0 to 1.0
| |
| |-
| |
| | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:]] -
| |
| | width="90%" style="border-top: 2px solid #000;" | ''Return''
| |
| |}
| |
|
| |
|
|
| |
|
|
| |
|
|
| |
|
| ==Property reference== | | ''<span style="color:red;">No additional examples</span>'' |
|
| |
|
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
| | ==Macro reference== |
| |-
| |
| | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
| |
| | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''
| |
| |-
| |
| |-
| |
| | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| |
| | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Connections
| |
| |-
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-6-icon.png]]
| |
| | width="90%" | Analogue
| |
| |-
| |
| | colspan="2" | Choose an analogue pin to connect to the LED. When the analogue value changes, the LED brightness will be updated.
| |
| |-
| |
| | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| |
| | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Color Range
| |
| |-
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-1-icon.png]]
| |
| | width="90%" | On Color
| |
| |-
| |
| | colspan="2" | LED color when at maximum brightness
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-1-icon.png]]
| |
| | width="90%" | Off Color
| |
| |-
| |
| | colspan="2" | LED color when at minimum brightness
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-7-icon.png]]
| |
| | width="90%" | Auto Off
| |
| |-
| |
| | colspan="2" | When AutoOff is enabled, the Off Color is automatically set whenever the On Color is changed. The automatic off color will be the same hue as the on color, but 25% of the brightness.
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-15-icon.png]]
| |
| | width="90%" | Minimum
| |
| |-
| |
| | colspan="2" | Input value that gives the darkest LED color.
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-15-icon.png]]
| |
| | width="90%" | Maximum
| |
| |-
| |
| | colspan="2" | Input value that gives the brightest LED color.
| |
| |-
| |
| | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| |
| | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Shape
| |
| |-
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-17-icon.png]]
| |
| | width="90%" | Target
| |
| |-
| |
| | colspan="2" | A panel object to be treated as the illuminating part of the LED. If unconnected, a built-in default shape can be chosen.
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-16-icon.png]]
| |
| | width="90%" | Shape
| |
| |-
| |
| | colspan="2" | Choose a shape for the LED.
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-15-icon.png]]
| |
| | width="90%" | Width
| |
| |-
| |
| | colspan="2" | Width of the LED shape.
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-15-icon.png]]
| |
| | width="90%" | Height
| |
| |-
| |
| | colspan="2" | Height of the LED shape.
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-15-icon.png]]
| |
| | width="90%" | Depth
| |
| |-
| |
| | colspan="2" | Depth of the LED shape.
| |
| |}==Macro reference==
| |
| | |
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
| |
| |-
| |
| | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| |
| | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetBrightness'''
| |
| |-
| |
| | colspan="2" | Set the brightness of the LED.
| |
| |-
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
| |
| | width="90%" | Brightness
| |
| |-
| |
| | colspan="2" | Brightness from 0.0 to 1.0
| |
| |-
| |
| | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:]] -
| |
| | width="90%" style="border-top: 2px solid #000;" | ''Return''
| |
| |}
| |
| | |
| | |
| | |
| | |
| ==Property reference==
| |
| | |
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
| |
| |-
| |
| | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
| |
| | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''
| |
| |-
| |
| |-
| |
| | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| |
| | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Connections
| |
| |-
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-6-icon.png]]
| |
| | width="90%" | Analogue
| |
| |-
| |
| | colspan="2" | Choose an analogue pin to connect to the LED. When the analogue value changes, the LED brightness will be updated.
| |
| |-
| |
| | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| |
| | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Color Range
| |
| |-
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-1-icon.png]]
| |
| | width="90%" | On Color
| |
| |-
| |
| | colspan="2" | LED color when at maximum brightness
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-1-icon.png]]
| |
| | width="90%" | Off Color
| |
| |-
| |
| | colspan="2" | LED color when at minimum brightness
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-7-icon.png]]
| |
| | width="90%" | Auto Off
| |
| |-
| |
| | colspan="2" | When AutoOff is enabled, the Off Color is automatically set whenever the On Color is changed. The automatic off color will be the same hue as the on color, but 25% of the brightness.
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-15-icon.png]]
| |
| | width="90%" | Minimum
| |
| |-
| |
| | colspan="2" | Input value that gives the darkest LED color.
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-15-icon.png]]
| |
| | width="90%" | Maximum
| |
| |-
| |
| | colspan="2" | Input value that gives the brightest LED color.
| |
| |-
| |
| | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| |
| | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Shape
| |
| |-
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-17-icon.png]]
| |
| | width="90%" | Target
| |
| |-
| |
| | colspan="2" | A panel object to be treated as the illuminating part of the LED. If unconnected, a built-in default shape can be chosen.
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-16-icon.png]]
| |
| | width="90%" | Shape
| |
| |-
| |
| | colspan="2" | Choose a shape for the LED.
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-15-icon.png]]
| |
| | width="90%" | Width
| |
| |-
| |
| | colspan="2" | Width of the LED shape.
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-15-icon.png]]
| |
| | width="90%" | Height
| |
| |-
| |
| | colspan="2" | Height of the LED shape.
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-15-icon.png]]
| |
| | width="90%" | Depth
| |
| |-
| |
| | colspan="2" | Depth of the LED shape.
| |
| |}==Macro reference==
| |
|
| |
|
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | | ===SetBrightness=== |
| | {| class="mtx-class-macrotable wikitable" |
| |- | | |- |
| | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] |
| | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetBrightness''' | | | width="90%" class="mtx-class-macrohead" | '''SetBrightness''' |
| |- | | |- |
| | colspan="2" | Set the brightness of the LED. | | | colspan="2" | Set the brightness of the LED. |
| Line 283: |
Line 94: |
| | width="90%" style="border-top: 2px solid #000;" | ''Return'' | | | width="90%" style="border-top: 2px solid #000;" | ''Return'' |
| |} | | |} |
|
| |
|
| |
|
| |
|
| |
| ==Property reference==
| |
|
| |
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
| |
| |-
| |
| | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
| |
| | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''
| |
| |-
| |
| |-
| |
| | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| |
| | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Connections
| |
| |-
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-6-icon.png]]
| |
| | width="90%" | Analogue
| |
| |-
| |
| | colspan="2" | Choose an analogue pin to connect to the LED. When the analogue value changes, the LED brightness will be updated.
| |
| |-
| |
| | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| |
| | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Color Range
| |
| |-
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-1-icon.png]]
| |
| | width="90%" | On Color
| |
| |-
| |
| | colspan="2" | LED color when at maximum brightness
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-1-icon.png]]
| |
| | width="90%" | Off Color
| |
| |-
| |
| | colspan="2" | LED color when at minimum brightness
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-7-icon.png]]
| |
| | width="90%" | Auto Off
| |
| |-
| |
| | colspan="2" | When AutoOff is enabled, the Off Color is automatically set whenever the On Color is changed. The automatic off color will be the same hue as the on color, but 25% of the brightness.
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-15-icon.png]]
| |
| | width="90%" | Minimum
| |
| |-
| |
| | colspan="2" | Input value that gives the darkest LED color.
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-15-icon.png]]
| |
| | width="90%" | Maximum
| |
| |-
| |
| | colspan="2" | Input value that gives the brightest LED color.
| |
| |-
| |
| | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| |
| | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Shape
| |
| |-
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-17-icon.png]]
| |
| | width="90%" | Target
| |
| |-
| |
| | colspan="2" | A panel object to be treated as the illuminating part of the LED. If unconnected, a built-in default shape can be chosen.
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-16-icon.png]]
| |
| | width="90%" | Shape
| |
| |-
| |
| | colspan="2" | Choose a shape for the LED.
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-15-icon.png]]
| |
| | width="90%" | Width
| |
| |-
| |
| | colspan="2" | Width of the LED shape.
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-15-icon.png]]
| |
| | width="90%" | Height
| |
| |-
| |
| | colspan="2" | Height of the LED shape.
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-15-icon.png]]
| |
| | width="90%" | Depth
| |
| |-
| |
| | colspan="2" | Depth of the LED shape.
| |
| |}==Macro reference==
| |
|
| |
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
| |
| |-
| |
| | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| |
| | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetBrightness'''
| |
| |-
| |
| | colspan="2" | Set the brightness of the LED.
| |
| |-
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
| |
| | width="90%" | Brightness
| |
| |-
| |
| | colspan="2" | Brightness from 0.0 to 1.0
| |
| |-
| |
| | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:]] -
| |
| | width="90%" style="border-top: 2px solid #000;" | ''Return''
| |
| |}
| |
|
| |
|
| |
|
| |
|
|
| |
|
| ==Property reference== | | ==Property reference== |
|
| |
|
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | | {| class="mtx-class-macrotable wikitable" |
| |- | | |- |
| | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]] | | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] |
| | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties''' | | | width="90%" class="mtx-class-macrohead" | '''Properties''' |
| |- | | |- |
| |- | | |- |
| | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] | | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] |
| | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Connections | | | width="90%" class="mtx-class-propfolder" | Connections |
| |- | | |- |
| |- | | |- |
| Line 400: |
Line 113: |
| | colspan="2" | Choose an analogue pin to connect to the LED. When the analogue value changes, the LED brightness will be updated. | | | colspan="2" | Choose an analogue pin to connect to the LED. When the analogue value changes, the LED brightness will be updated. |
| |- | | |- |
| | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] | | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] |
| | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Color Range | | | width="90%" class="mtx-class-propfolder" | Color Range |
| |- | | |- |
| |- | | |- |
| Line 429: |
Line 142: |
| | colspan="2" | Input value that gives the brightest LED color. | | | colspan="2" | Input value that gives the brightest LED color. |
| |- | | |- |
| | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] | | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] |
| | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Shape | | | width="90%" class="mtx-class-propfolder" | Shape |
| |- | | |- |
| |- | | |- |