Difference between revisions of "Component: RGB LED LP5030 LP5036 (LEDs)"
From Flowcode Help
Jump to navigationJump to search| Line 15: | Line 15: | ||
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. | 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 | + | ==Component Source Code== |
| − | + | Please click here for the component source code: [https://www.flowcode.co.uk/wikicopy/componentsource/FC_Comp_Source_LP5036_RGB_LED.fcfx FC_Comp_Source_LP5036_RGB_LED.fcfx] | |
==Detailed description== | ==Detailed description== | ||
| + | |||
| + | |||
| Line 34: | Line 36: | ||
==Examples== | ==Examples== | ||
| + | |||
| + | |||
| Line 236: | Line 240: | ||
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties''' | ||
| + | |- | ||
| + | |- | ||
| + | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] | ||
| + | | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Driver | ||
|- | |- | ||
|- | |- | ||
| Line 248: | Line 256: | ||
| colspan="2" | | | colspan="2" | | ||
|- | |- | ||
| − | + | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] | |
| − | + | | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Connections | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | width="10%" align="center" style="background-color:# | ||
| − | | width="90%" style="background-color:# | ||
|- | |- | ||
|- | |- | ||
| Line 307: | Line 300: | ||
| colspan="2" | On older microcontroller devices there is a potential for the I2C hardware channel to lock up if there is not a 10ms delay between an I2C stop event and the next I2C start event. Most modern microcontrollers will not have a problem so this property can be disabled to speed up the I2C communications. | | colspan="2" | On older microcontroller devices there is a potential for the I2C hardware channel to lock up if there is not a 10ms delay between an I2C stop event and the next I2C start event. Most modern microcontrollers will not have a problem so this property can be disabled to speed up the I2C communications. | ||
|- | |- | ||
| − | | width="10%" align="center" style="background-color:# | + | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] |
| − | | width="90%" style="background-color:# | + | | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Simulation |
|- | |- | ||
|- | |- | ||
Revision as of 17:48, 9 November 2022
| 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 for the component source code: FC_Comp_Source_LP5036_RGB_LED.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
| GetRGB | |
| Gets the RGB colour of a single LED. | |
| Address | |
| Range: 0-11 | |
| RGB | |
| Byte array containing at least 3 bytes to store Red, Green and Blue | |
| Return | |
| ReadReg | |
| Reads the data from one or more sequential registers | |
| Address | |
| Data | |
| Count | |
| Return | |
| WriteReg | |
| Writes data to one or more sequential registers | |
| Address | |
| Data | |
| Count | |
| Return | |
| SetRGB | |
| Allows the colour of a single LED to be specified in RGB. | |
| Address | |
| Range: 0-11 | |
| RGB | |
| Byte array containing at least 3 bytes to set Red, Green and Blue | |
| Return | |
| GetBrightness | |
| Gets the brightness of a single LED. | |
| Address | |
| Range: 0-11 | |
| RGB | |
| Byte array containing at least 3 bytes to store Red, Green and Blue | |
| Return | |
| SetUnitAddress | |
| Allows the component to taklk to more then one IC or broadcast to all connected ICs. | |
| Address | |
| Range: 0-3 = Individual / 4 = Broadcast | |
| Return | |
| 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. | |
| Return | |