Component: Touch Pads (EB088) (Inputs: General)

From Flowcode Help
Jump to navigationJump to search


Author Matrix TSL
Version 1.1 (Release)
Category Inputs: General


Image Touch Pads (EB088) component

This board provides five touch areas for use with capacitive sensing. Hence five digital touch switches can be implemented. This component directly interfaces with the EB088 CapTouch E-block.

Examples

No additional examples


Downloadable macro reference

GetTouchValue

Samples the touch sensor ADC value and returns it

Always samples both channels, but only returns the chosen channel

Parameters

BYTE Switch
0=Up, 1=Right, 2=Down, 3=Left, 4=Center


Return value

UINT


GetTouchPressed

Returns non-zero if touch detected

Parameters

BYTE Switch
0=Up, 1=Right, 2=Down, 3=Left, 4=Center
UINT OffValue
BYTE Threshold
Provide the threshold value for the pad to be considered touched


Return value

BOOL : Returns true if the operation is a success, else false


Simulation macro reference

This component does not contain any simulation macros


Property reference

Up Channel

This property is of type Single analog pin and can be referenced with the variable name CHANNEL1.

ADC Channel number

Right Channel

This property is of type Single analog pin and can be referenced with the variable name CHANNEL2.

No additional information


Down Channel

This property is of type Single analog pin and can be referenced with the variable name CHANNEL3.

No additional information


Left Channel

This property is of type Single analog pin and can be referenced with the variable name CHANNEL4.

No additional information


Center Channel

This property is of type Single analog pin and can be referenced with the variable name CHANNEL5.

No additional information


On Value

This property is of type Unsigned integer and can be referenced with the variable name OnValUp.

No additional information


Off Value

This property is of type Unsigned integer and can be referenced with the variable name OffValUp.

No additional information


On Value

This property is of type Unsigned integer and can be referenced with the variable name OnValRight.

No additional information


Off Value

This property is of type Unsigned integer and can be referenced with the variable name OffValRight.

No additional information


On Value

This property is of type Unsigned integer and can be referenced with the variable name OnValDown.

No additional information


Off Value

This property is of type Unsigned integer and can be referenced with the variable name OffValDown.

No additional information


On Value

This property is of type Unsigned integer and can be referenced with the variable name OnValLeft.

No additional information


Off Value

This property is of type Unsigned integer and can be referenced with the variable name OffValLeft.

No additional information


On Value

This property is of type Unsigned integer and can be referenced with the variable name OnValCenter.

No additional information


Off Value

This property is of type Unsigned integer and can be referenced with the variable name OffValCenter.

No additional information