Sound2Light auf RGB(W)-LED-Leisten
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ws2801.h 762B

123456789101112131415161718192021
  1. /*
  2. * vim: sw=2 ts=2 expandtab
  3. *
  4. * THE PIZZA-WARE LICENSE" (derived from "THE BEER-WARE LICENCE"):
  5. * <cfr34k@tkolb.de> wrote this file. As long as you retain this notice you can
  6. * do whatever you want with this stuff. If we meet some day, and you think
  7. * this stuff is worth it, you can buy me a pizza in return. - Thomas Kolb
  8. */
  9. #ifndef WS2801_H
  10. #define WS2801_H
  11. int ws2801_init(const char *host, unsigned short port);
  12. void ws2801_set_color(uint8_t module, uint8_t r, uint8_t g, uint8_t b);
  13. void ws2801_fade_color(uint8_t module, uint8_t r, uint8_t g, uint8_t b);
  14. void ws2801_add_color(uint8_t module, uint8_t r, uint8_t g, uint8_t b);
  15. void ws2801_set_fadestep(uint8_t fadestep);
  16. int ws2801_commit(void);
  17. void ws2801_shutdown(void);
  18. #endif // WS2801_H