potion_party_leds/main/server.h

20 lines
967 B
C
Raw Normal View History

2023-09-19 08:34:06 +00:00
///
// server.h
// Call server_init() to start up an http webserver.
2023-09-27 12:59:03 +00:00
// Listens on '/' for GET queries with a url query format like
2023-09-19 08:34:06 +00:00
// ?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.
2023-09-27 12:59:03 +00:00
// 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
2023-09-19 08:34:06 +00:00
///
2023-09-18 20:41:46 +00:00
#ifndef _potion_party_server_h
#define _potion_party_server_h
2023-09-15 06:21:00 +00:00
void server_init();
2023-09-15 06:21:00 +00:00
2023-09-18 20:41:46 +00:00
#endif // !_potion_party_server_h