Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 433 → Rev 434

/FollowMe/trunk/button.c
1,5 → 1,6
#include "timer0.h"
#include "button.h"
#include "printf_P.h"
 
 
#ifdef USE_FOLLOWME
16,7 → 17,7
 
void Button_Init(void)
{
 
printf("\r\n BUTTON init...");
// set port pin as input pullup
#ifdef USE_FOLLOWME
PORTC |= (1 << PORTC6);
28,6 → 29,7
DDRC &= ~(1 << DDC3);
#endif
ButtonTimer = SetDelay(KEY_DELAY_MS);
printf("ok");
}
 
uint8_t GetButton(void)