2016-06-03 23:47:36 +02:00
# TM1829 Module
| Since | Origin / Contributor | Maintainer | Source |
| :----- | :-------------------- | :---------- | :------ |
2019-01-13 22:01:57 +01:00
| 2016-05-15 | [Sebastian Haas ](https://github.com/sebi2k1 ) | [Sebastian Haas ](https://github.com/sebi2k1 ) | [tm1829.c ](../../app/modules/tm1829.c )|
2016-06-03 23:47:36 +02:00
tm1829 is a library to handle led strips using Titan Micro tm1829
led controller.
The library uses any GPIO to bitstream the led control commands.
2021-02-14 08:41:17 +01:00
!!! caution
This module has an _optional_ dependency to the [pixbuf module ](pixbuf.md ) i.e. it can work without. However, if you compile the firmware without pixbuf the respective features will be missing from this module.
2016-06-03 23:47:36 +02:00
## tm1829.write()
Send data to a led strip using native chip format.
#### Syntax
2021-02-14 08:41:17 +01:00
`tm1829.write(data)`
2016-06-03 23:47:36 +02:00
#### Parameters
2021-02-14 08:41:17 +01:00
- `data` payload to be sent to one or more TM1829 leds. It is either
2021-01-07 00:35:34 +01:00
a 3-channel [pixbuf ](pixbuf ) (e.g., `pixbuf.TYPE_RGB` ) or a string of
raw byte values to be sent.
2016-06-03 23:47:36 +02:00
#### Returns
`nil`
#### Example
```lua
tm1829.write(5, string.char(255,0,0,255,0,0)) -- turn the two first RGB leds to blue using GPIO 5
```