Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 838 → Rev 841

/Servo-Controlled IR-Transmitter/Software/main.c
166,7 → 166,7
 
 
/*---------------------------------------------------------------------------------------------------------------------------------------------------
* Get position from servo inputs 1 and 2. Returns 1/2/3 for down/middle/up and 0 for invalid signal
* Get position from servo inputs 1 and 2. Returns 1/2/3 for down/middle/up, 0 for GND and 4 for VCC
*---------------------------------------------------------------------------------------------------------------------------------------------------
*/
unsigned char Servo(unsigned char chan)
227,7 → 227,7
{
Servo1 = Servo(1); // get Servo positions
Servo2 = Servo(2);
ir_temp.flags = 0; // ignore reapeat-flag
ir_temp.flags = 0; // ignore repeat-flag
ir_data[Servo1][Servo2] = ir_temp; // populate the array
active[Servo1][Servo2] = mode; // and flag it with the actually mode
Flash(25,25,10); // fast flash LED 10 times to indicate a learned code
298,7 → 298,7
irsnd_init(); // initialize irsnd
timer_init(); // initialize timer
WaitForKeyRelease();
sei (); // enable interrupts
sei(); // enable interrupts
 
 
while(1) // Main loop