rgbyteclock-code/ledcontroller.h

31 lines
928 B
C
Raw Normal View History

2014-03-01 18:39:07 +01:00
/*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <struppi@struppi.name> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a beer in return.
* (c) 2014 Stefan Rupp
* ----------------------------------------------------------------------------
*/
2014-03-02 07:18:48 +01:00
#ifndef LEDCONTROLLER_H
#define LEDCONTROLLER_H
2014-03-01 18:39:07 +01:00
#include <avr/io.h>
#include "timer.h"
void led_init(void);
2014-03-02 07:18:48 +01:00
void led_set(uint8_t lednum, uint16_t red, uint16_t green, uint16_t blue);
2014-08-07 17:38:08 +02:00
void led_set_hsv(uint8_t lednum, uint16_t hue, uint8_t saturation, uint8_t value);
2014-03-02 07:18:48 +01:00
void led_flush(void);
void led_clear(void);
2014-03-18 01:04:18 +01:00
void led_turn_all_on(void);
void led_turn_all_off(void);
void led_set_gain(uint8_t gain);
2014-06-23 03:54:00 +02:00
void led_set_current_mode(uint8_t mode);
2014-03-01 18:39:07 +01:00
2014-03-02 07:18:48 +01:00
#endif // LEDCONTROLLER_H
2014-03-01 18:39:07 +01:00