Difference between revisions of "Component: LED Matrix (HT16K33) (LEDs)"
From Flowcode Help
Jump to navigationJump to search| 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_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/ | + | 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] |
==Detailed description== | ==Detailed description== | ||
| Line 60: | Line 60: | ||
[[File:HT16K33_Bitmap.zip]] | [[File:HT16K33_Bitmap.zip]] | ||
| + | |||
| + | |||
Revision as of 13:11, 7 February 2023
| 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.
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
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
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 | |