Back to Nodemcu Firmware

TM1829 Module

docs/modules/tm1829.md

latest1.1 KB
Original Source

TM1829 Module

SinceOrigin / ContributorMaintainerSource
2016-05-15Sebastian HaasSebastian Haastm1829.c

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.

!!! 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.

tm1829.write()

Send data to a led strip using native chip format.

Syntax

tm1829.write(data)

Parameters

  • data payload to be sent to one or more TM1829 leds. It is either a 3-channel pixbuf (e.g., pixbuf.TYPE_RGB) or a string of raw byte values to be sent.

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