CapSerial:
Filter:
PushPull/Classes (extension) | Control | Sensing

CapSerial
ExtensionExtension

read serial messages from a PSoC4 capacitive sensing chip connected via USB

Description

Convenience class to read and parse serial messages from a PSoC4 capacitive sensing chip connected via USB as it is built into the PushPull.

Class Methods

.new

Arguments:

serialPort

create a new instance that listens to serialPort.

Instance Methods

.capRawVals

.capNormVals

Returns:

normalised resp. raw values of the last succesful sensor reading.

.capAction

Action that is evaluated for each update of the capacitive sensors readings (progressive).

.trace

enable/disable tracing

.tareCap

Arguments:

isOn

Enable/disable tareing of the capacitive sensing.

.capMinMax

Returns:

array of minima and maxima of capacitive sensors as given by tareCap.