Skip to content

Creating an Executable Server

Max Narvaez edited this page Jan 12, 2021 · 1 revision

Creating an Executable Server

The AnimatedLEDStrip server library is combined with a device library to run a server on that device. Both are added as dependencies and a short main method is added.

Example main method:

fun main(args: Array<String>) {
    startServer(args, WS281xCompat::class)
}

Replace WS281xCompat::class with the class from the device library being used.

See the Raspberry Pi Server for an example of how to create a server executable.

Examples

Clone this wiki locally