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>
|
2014-03-02 07:18:48 +01:00
|
|
|
#include <compat/ina90.h> // ==> _NOP()
|
2014-03-01 18:39:07 +01:00
|
|
|
#include "timer.h"
|
|
|
|
|
|
|
|
|
2014-03-02 07:18:48 +01:00
|
|
|
void ledcontroller_init(void);
|
|
|
|
void led_set(uint8_t lednum, uint16_t red, uint16_t green, uint16_t blue);
|
|
|
|
void led_flush(void);
|
2014-03-12 21:12:16 +01:00
|
|
|
void ledcontroller_turn_all_on(void);
|
2014-03-13 01:33:13 +01:00
|
|
|
void ledcontroller_turn_all(void);
|
|
|
|
void ledcontroller_set_channel(uint8_t channel, uint16_t value);
|
2014-03-13 03:03:08 +01:00
|
|
|
void ledcontroller_clear(void);
|
|
|
|
|
2014-03-13 01:33:13 +01:00
|
|
|
|
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
|
|
|
|