Difference between revisions of "Component: LED Matrix (HT16K33) (LEDs)"
From Flowcode Help
Jump to navigationJump to search(One intermediate revision by the same user not shown) | |||
Line 15: | Line 15: | ||
LED Matrix component designed to work using a HT16K33 LED driver IC. Can drive up to 16 x 8 (128) LEDs. Includes support for 8x16 Backpack, 16x8 Featherwing, 8x8 Backpack and Custom. | LED Matrix component designed to work using a HT16K33 LED driver IC. Can drive up to 16 x 8 (128) LEDs. Includes support for 8x16 Backpack, 16x8 Featherwing, 8x8 Backpack and Custom. | ||
− | == | + | ==Version information== |
− | + | Library Version, Component Version, Date, Author, Info | |
+ | |||
− | |||
==Detailed description== | ==Detailed description== | ||
Line 60: | Line 60: | ||
[[File:HT16K33_Bitmap.zip]] | [[File:HT16K33_Bitmap.zip]] | ||
+ | |||
+ | |||
Line 71: | Line 73: | ||
==Macro reference== | ==Macro reference== | ||
+ | |||
+ | ===ChangeAddress=== | ||
+ | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ChangeAddress''' | ||
+ | |- | ||
+ | | colspan="2" | Change the address and Configures the I2C peripheral and sets up the HT16K33 IC ready to drive the LEDs. Returns 0 for fail & 1 for success. | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
+ | | width="90%" | SlaveAddress | ||
+ | |- | ||
+ | | colspan="2" | New slave address 0x70 - 0x78 (112-120) | ||
+ | |- | ||
+ | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-bool-icon.png]] - BOOL | ||
+ | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
+ | |} | ||
+ | |||
===ClearLEDs=== | ===ClearLEDs=== | ||
Line 426: | Line 447: | ||
| colspan="2" | Simulated LED basic shape | | colspan="2" | Simulated LED basic shape | ||
|} | |} | ||
+ | |||
+ | ==Component Source Code== | ||
+ | |||
+ | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_LED_Matrix_HT16K33.fcfx FC_Comp_Source_LED_Matrix_HT16K33.fcfx] | ||
+ | |||
+ | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_LED_Matrix_HT16K33.fcfx FC_Comp_Source_LED_Matrix_HT16K33.fcfx] |
Latest revision as of 08:59, 9 June 2025
Author | Matrix Ltd |
Version | 2.0 |
Category | LEDs |
Contents
LED Matrix component
LED Matrix component designed to work using a HT16K33 LED driver IC. Can drive up to 16 x 8 (128) LEDs. Includes support for 8x16 Backpack, 16x8 Featherwing, 8x8 Backpack and Custom.
Version information
Library Version, Component Version, Date, Author, Info
Detailed description
No detailed description exists yet for this component
Examples
Example to display a bitmap image on the LED matrix using the Bitmap Drawer component.
Macro reference
ChangeAddress
ClearLEDs
![]() |
ClearLEDs |
Sets all of the LEDs in the matrix to the off state. | |
![]() |
Return |
DisplayString
Initialise
![]() |
Initialise |
Configures the I2C peripheral and sets up the HT16K33 IC ready to drive the LEDs. | |
![]() |
Return |
SetBrightness
![]() |
SetBrightness |
Configures the brightness of the LEDs by varying the On portion of the duty. | |
![]() |
Brightness |
Range: 0-15 - 0 = Min Brightness, 15 = Full Brightness | |
![]() |
Return |
ShiftColumns
![]() |
ShiftColumns |
Shifts the columns one place left or right. Used for things like displaying scrolling text. | |
![]() |
Direction |
0 = Shift Left, 1 = Shift Right | |
![]() |
Return |
WriteColumn
![]() |
WriteColumn |
Allows a single column of 8 LEDs to be controlled in a single action. | |
![]() |
Column |
Range: 0-15 | |
![]() |
Data |
Data to display on the column of LEDs | |
![]() |
Return |
WriteCommand
![]() |
WriteCommand |
Writes a command. | |
![]() |
Command |
![]() |
Return |
WriteLED
WriteLEDXY
WriteRegister
![]() |
WriteRegister |
Writes a value to a register. | |
![]() |
Address |
![]() |
Value |
![]() |
Return |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_LED_Matrix_HT16K33.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_LED_Matrix_HT16K33.fcfx