Hacker-Jeopardy/Mainboard/Mainboard/Led.cpp
2013-11-10 17:10:02 +00:00

50 lines
911 B
C++

/*
* Led.cpp
*
* Created: 03.11.2013 17:24:58
* Author: netz
*/
#include "Led.h"
/*Led::Led() {
init();
}*/
/*void Led::init() {
red::make_output();
green::make_output();
blue::make_output();
}*/
/*void Led::uninit() {
}*/
/*void Led::color(uint8_t mask) {
(mask & (1<<0)) ? blue::make_high() : blue::make_low();
(mask & (1<<1)) ? green::make_high() : green::make_low();
(mask & (1<<2)) ? red::make_high() : red::make_low();
}*/
/*void Led::rainbow(uint8_t time) {
fade(RED, YELLOW, time);
fade(YELLOW, GREEN, time);
fade(GREEN, CYAN, time);
fade(CYAN, BLUE, time);
fade(BLUE, MAGENTA, time);
fade(MAGENTA, RED, time);
}*/
/*void Led::fade(int from, int to, int dur) {
for (int i=0;i<0xFF;i++) {
for(int k=0;k<dur;k++) {
for (int j=i;j<0xFF;j++) {
color(from);
}
for (int j=0;j<i;j++) {
color(to);
}
}
}
} */