RGB LED cube 5x5x5
1.0
Martin Stejskal, Schmidt Dominik
|
Driver for PWM on ATmega64 for controlling "R_GND", "G_GND" and "B_GND". More...
Go to the source code of this file.
Macros | |
#define | pwm_set_r(value_8bit) OCR3A = value_8bit; |
Set PWM value for red LED's. More... | |
#define | pwm_set_g(value_8bit) OCR3B = value_8bit; |
Set PWM value for green LED's. More... | |
#define | pwm_set_b(value_8bit) OCR3C = value_8bit; |
Set PWM value for blue LED's. More... | |
Functions | |
void | init_pwm_rgb (void) |
Prepare HW PWM channels. More... | |
Driver for PWM on ATmega64 for controlling "R_GND", "G_GND" and "B_GND".
For advanced effects is PWM nice feature
Definition in file pwm_rgb.h.
#define pwm_set_b | ( | value_8bit) | OCR3C = value_8bit; |
#define pwm_set_g | ( | value_8bit) | OCR3B = value_8bit; |
#define pwm_set_r | ( | value_8bit) | OCR3A = value_8bit; |