Hacker-Jeopardy/Button/Button/Output.cpp
2013-11-13 18:27:00 +00:00

33 lines
533 B
C++

/*
* Output.cpp
*
* Created: 03.11.2013 21:17:43
* Author: netz
*/
/*#include "Output.h"
#define OUTPUTPORT PORTC
#define OUTPUTDDR DDRC
#define OUTPUTM PINC4
#define OUTPUTA PINC5
Output::Output() {
OUTPUTDDR |= (1<<OUTPUTA) | (1<<OUTPUTM);
AudioOff();
}
void Output::AudioOff() {
OUTPUTPORT &= ~(1<<OUTPUTA);
}
void Output::AudioOn() {
OUTPUTPORT |= (1<<OUTPUTA);
}
void Output::MotorOff() {
OUTPUTPORT &= ~(1<<OUTPUTM);
}
void Output::MotorOn() {
OUTPUTPORT |= (1<<OUTPUTM);
} */