Component: Heelight Sensor (Grove 101020312) (101020312) (Audio)

From Flowcode Help
Jump to navigationJump to search
Author Matrix Ltd
Version 2.0
Category Audio


Heelight Sensor (Grove 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.

Component Source Code

Please click here to download the component source project: FC_Comp_Source_Heelight_Sensor.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_Heelight_Sensor.fcfx

Detailed description

No detailed description exists yet for this component

Examples

No additional examples







Macro reference

Initialise

Fc9-comp-macro.png Initialise
Sets up the UART peripheral ready to receive messages from the Heelight sensor. 
Fc9-void-icon.png - VOID Return


ListenForCommand

Fc9-comp-macro.png ListenForCommand
Listens for a Heelight command with timeout. Returns 1 if a command received. Returns 0 if no command was received. 
Fc9-u8-icon.png - BYTE Timeout
0=Don't Wait, 1-254=MilliSec Delay, 255=Wait Forever 
Fc9-u8-icon.png - BYTE Return


ReadData

Fc9-comp-macro.png ReadData
Reads data received from the listen macro. 
Fc9-u8-icon.png - BYTE Index
Data Byte Received Range: 0-3 
Fc9-u8-icon.png - BYTE Return


Property reference

Fc9-prop-icon.png Properties
Fc9-conn-icon.png Connections
Fc9-type-16-icon.png Channel
UART Channel selector 
Fc9-type-5-icon.png TX
Pin to be used for Transmit data 
Fc9-type-5-icon.png RX
Pin to be used for Receive data 
Fc9-type-16-icon.png Baud Options
Baud rate option selector 
Fc9-type-14-icon.png Baud Rate
 
Fc9-conn-icon.png Simulation
Fc9-type-7-icon.png Scope Traces
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. 
Fc9-type-7-icon.png Console Data
Selects if the console data is automatically generated or not 
Fc9-type-21-icon.png Console Columns
Number of characters that can be displayed on a single line of the console. 
Fc9-type-16-icon.png Data Source
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 API - Routes the communication data via a data API component on the Panel.