20 lines
967 B
C
20 lines
967 B
C
///
|
|
// server.h
|
|
// Call server_init() to start up an http webserver.
|
|
// Listens on '/' for GET queries with a url query format like
|
|
// ?l=*&r0=*&g0=*&b0=*&a0=*&t0=* ... &rl=*&gl=*&bl=*&al=*&tl=*
|
|
// Where l is the number of points on a gradient. And each point of the gradient has a r* g* b* a* and t* where * is the index.
|
|
// r g and b are the red green and blue 8-bit colour components of a point on the gradient. A is the 5-bit global component of the led at that point.
|
|
// t is the offset from the start measured in leds.
|
|
// Each point also has an optional &m 'movement' argument. &m should be either -1, +1 or 0 and represents the movement per frame or the point.
|
|
// A point on the gradient can have an &m parameter, and has to have a &r, &g, &b, &a, and &t.
|
|
// The whole gradient can have a duration &d parameter and must have a length &l
|
|
///
|
|
|
|
#ifndef _potion_party_server_h
|
|
#define _potion_party_server_h
|
|
|
|
void server_init();
|
|
|
|
#endif // !_potion_party_server_h
|