git clone [email protected]:Chadsr/Aurora-Server.git
cd Aurora-Server/
Edit src/main.h
with your wireless network AP (2.4Ghz) SSID and password.
Edit LED_PIN
and NUM_LEDS
in src/leds.h
, to reflect your setup.
Connect your device via usb and run:
platformio run --target upload
Endpoint | Type | Description | Example Return Value |
---|---|---|---|
/leds |
GET |
Returns a count of the available induvidual LEDs | {"count": 720} |
/leds |
POST |
Accepts a list of RGB colour assignments for sequences of LEDs [1] | {"success": true} |
/leds/toggle |
POST |
Toggles all configures LEDs on/off | {"success": true} |
{
"clearPrevious": true,
"sections": [
{
"r": 50,
"g": 255,
"b": 0,
"startPosition": 1,
"endPosition": 240
},
{
"r": 100,
"g": 100,
"b": 100,
"startPosition": 241,
"endPosition": 480
},
{
"r": 0,
"g": 255,
"b": 0,
"startPosition": 481,
"endPosition": 720
}
]
}
A boolean value specifying whether previous LED assignments should be reset (turned off) or if the request should be applied directly.
A list of colour sequences
Unsigned integer colour values representing an RGB colour.
The LED index to start applying the given colour to.
The LED index to finish applying the given colour to.
UDP streaming is still experimental and has not been tested. Development of a client application can be found in this repository.