RGB LED cube 5x5x5
1.0
Martin Stejskal, Schmidt Dominik
Main Page
Related Pages
Modules
Files
File List
Globals
All
Files
Functions
Variables
Macros
Groups
Pages
SW
AVR
led_cube_lib
pwm_rgb.h
Go to the documentation of this file.
1
11
// Trick for multiply include this file
12
#ifndef _pwm_rgb_library_
13
#define _pwm_rgb_library_
14
15
/*-----------------------------------------*
16
| Includes |
17
*-----------------------------------------*/
18
#include <avr/io.h>
// Definitions AVR I/O's
19
#include "
bit_operations.h
"
// Basic bit operations
20
#include "
settings.h
"
// Local setting (mainly symbolic pin names)
21
22
/*-----------------------------------------*
23
| Macros |
24
*-----------------------------------------*/
25
31
#define pwm_set_r(value_8bit) OCR3A = value_8bit;
32
33
39
#define pwm_set_g(value_8bit) OCR3B = value_8bit;
40
41
47
#define pwm_set_b(value_8bit) OCR3C = value_8bit;
48
49
/*-----------------------------------------*
50
| Function prototypes |
51
*-----------------------------------------*/
57
void
init_pwm_rgb
(
void
);
58
59
#endif
Generated on Thu Jun 6 2013 16:25:54 for RGB LED cube 5x5x5 by
1.8.4