Difference between revisions of "Component: RGB LED LP5030 LP5036 (LEDs)"
From Flowcode Help
Jump to navigationJump to search(One intermediate revision by the same user not shown) | |||
Line 17: | Line 17: | ||
==Component Source Code== | ==Component Source Code== | ||
− | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/ | + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_LP5036_RGB_LED.fcfx FC_Comp_Source_LP5036_RGB_LED.fcfx] |
− | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/ | + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_LP5036_RGB_LED.fcfx FC_Comp_Source_LP5036_RGB_LED.fcfx] |
==Detailed description== | ==Detailed description== | ||
Line 76: | Line 76: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
+ | |||
+ | |||
+ | |||
+ | |||
Latest revision as of 10:26, 20 October 2023
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_LP5036_RGB_LED.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_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. | |
![]() |
Address |
Range: 0-11 | |
![]() |
RGB |
Byte array containing at least 3 bytes to store Red, Green and Blue | |
![]() |
Return |
GetDiscreteRGB
![]() |
GetDiscreteRGB |
Gets the RGB format colour of a single LED. | |
![]() |
Address |
Range: 0-11 | |
![]() |
ColourIndex |
![]() |
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. | |
![]() |
Return |
ReadReg
![]() |
ReadReg |
Reads the data from one or more sequential registers | |
![]() |
Address |
![]() |
Data |
![]() |
Count |
![]() |
Return |
SetBrightness
SetDiscreteRGB
![]() |
SetDiscreteRGB |
Allows the colour of a single LED to be specified in RGB format | |
![]() |
Address |
Range: 0-11 | |
![]() |
Red |
![]() |
Green |
![]() |
Blue |
![]() |
Return |
SetRGB
SetUnitAddress
![]() |
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 |
WriteReg
![]() |
WriteReg |
Writes data to one or more sequential registers | |
![]() |
Address |
![]() |
Data |
![]() |
Count |
![]() |
Return |