Component: RGB LED LP5030 LP5036 (LEDs)
From Flowcode Help
Jump to navigationJump to search| Author | Matrix TSL | 
| Version | 1.0 | 
| Category | LEDs | 
Contents
RGB LED LP5030 LP5036 component
An I2C Based RGB LED driver with 30 or 36 individual constant-current sinks. Used to drive 10 or 12 RGB LEDs with a wide range of applications.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_temp/LP5036_RGB_LED.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_temp/LP5036_RGB_LED.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
GetBrightness
|   | GetBrightness | 
| Gets the brightness of a single LED. | |
|  - BYTE | Address | 
| Range: 0-11 | |
|  - BYTE | RGB | 
| Byte array containing at least 3 bytes to store Red, Green and Blue | |
|  - BYTE | Return | 
GetDiscreteRGB
|   | GetDiscreteRGB | 
| Gets the RGB format colour of a single LED. | |
|  - BYTE | Address | 
| Range: 0-11 | |
|  - BYTE | ColourIndex | 
|  - BYTE | Return | 
GetRGB
Initialise
|   | Initialise | 
| Starts up the I2C comms ready for communicating with the LP503x module. Must be called before any of the other component macros are called. | |
|  - VOID | Return | 
ReadReg
|   | ReadReg | 
| Reads the data from one or more sequential registers | |
|  - BYTE | Address | 
|  - BYTE | Data | 
|  - BYTE | Count | 
|  - VOID | Return | 
SetBrightness
SetDiscreteRGB
|   | SetDiscreteRGB | 
| Allows the colour of a single LED to be specified in RGB format | |
|  - BYTE | Address | 
| Range: 0-11 | |
|  - BYTE | Red | 
|  - BYTE | Green | 
|  - BYTE | Blue | 
|  - VOID | Return | 
SetRGB
SetUnitAddress
|   | SetUnitAddress | 
| Allows the component to taklk to more then one IC or broadcast to all connected ICs. | |
|  - BYTE | Address | 
| Range: 0-3 = Individual / 4 = Broadcast | |
|  - VOID | Return | 
WriteReg
|   | WriteReg | 
| Writes data to one or more sequential registers | |
|  - BYTE | Address | 
|  - BYTE | Data | 
|  - BYTE | Count | 
|  - VOID | Return | 






