Component: Heelight Sensor (101020312) (Misc)
Author | Matrix Ltd |
Version | 2.0 (Development) |
Category | Misc |
Contents
Heelight Sensor (101020312) component
Heelight Sensor is a smart voice sensor that can recognize up tp 500 digital voice commands. It was originally used on the Heelight – a smart colorful bulb that can be controlled by digital sound waves. Allows you to realize smart control in your own projects. Compatible with Heelight smart phone apps and other Heelight controllers.
Examples
No additional examples
Downloadable macro reference
ReadData
Reads data received from the listen macro.
Parameters
- BYTE Index
- Data Byte Received Range: 0-3
Return value
ListenForCommand
Listens for a Heelight command with timeout.
Returns 1 if a command received.
Returns 0 if no command was received.
Parameters
- BYTE Timeout
- 0=Don't Wait, 1-254=MilliSec Delay, 255=Wait Forever
Return value
Initialise
Sets up the UART peripheral ready to receive messages from the Heelight sensor.
Parameters
- This macro has no parameters
Return value
- This call does not return a value
Simulation macro reference
This component does not contain any simulation macros
Property reference
Channel
This property is of type Fixed list of ints and can be referenced with the variable name cal_uart1::CHANNEL.
UART Channel selector
TX
This property is of type Single digital pin and can be referenced with the variable name cal_uart1::TX.
Pin to be used for Transmit data
RX
This property is of type Single digital pin and can be referenced with the variable name cal_uart1::RX.
Pin to be used for Receive data
Baud Options
This property is of type Fixed list of ints and can be referenced with the variable name cal_uart1::BAUD_LIST.
Baud rate option selector
Baud Rate
This property is of type Signed integer and can be referenced with the variable name cal_uart1::BAUD.
No additional information
Scope Traces
This property is of type True or false and can be referenced with the variable name cal_uart1::ScopeTraces.
Selects if the scope traces are automatically added to the data recorder window or not.
Simulation - draws an approximation of the UART data onto the scope trace.
ICT - sets up the scope trace for incoming data and adds UART packet decoding at the correct BAUD.
Console Data
This property is of type True or false and can be referenced with the variable name cal_uart1::ConsoleData.
Selects if the console data is automatically generated or not
Console Columns
This property is of type Unsigned integer and can be referenced with the variable name cal_uart1::ConsoleColumns.
Number of characters that can be displayed on a single line of the console.
Data Source
This property is of type Fixed list of ints and can be referenced with the variable name cal_uart1::DataSource.
Simulation data source used to allow the component to connect to various remote devices
Nothing - Simulation data is ignored
COM port - Routes the communication data to and from a physical or virtual COM port
Injector - Routes the communication data via a data injector component on the Panel.