coral / ddp

Distributed Display Protocol (DDP) in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Distributed Display Protocol (DDP) in Go

This package allows you to write pixel data to a LED strip over DDP Currently implements sending but haven't gotten to implementing response parsing, works for most use cases though.

You can use this to stream pixel data to WLED or any other DDP capable reciever.

Simple Example

// Create a new DDP client
client := ddp.NewDDPController()

// Connect to DDP server over UDP
client.ConnectUDP("10.0.1.9:4048")

//Write one pixel
written, err := client.Write([]byte{128, 36, 12})
fmt.Println(written, err)

Contributing

m8 just open a PR with some gucchimucchi code and I'll review it.

KADSBUGGEL

About

Distributed Display Protocol (DDP) in Go

License:Do What The F*ck You Want To Public License


Languages

Language:Go 100.0%