# HG changeset patch # User Malte Bayer # Date 1323465350 -3600 # Node ID 1e220602b7a77c35ee55a04036c9cb18fb20e3eb # Parent 8960bfa02f63d54e7239ab6afb38421f61c049d6 pitlane response enter/exit pitlane, led lit when car is in pitlane diff -r 8960bfa02f63 -r 1e220602b7a7 pitlane/main.c --- a/pitlane/main.c Fri Dec 09 22:02:34 2011 +0100 +++ b/pitlane/main.c Fri Dec 09 22:15:50 2011 +0100 @@ -31,6 +31,12 @@ #define PIT_CONNECT_PIN PC3 #define PIT_GROUND_PIN PC2 // low active +#define SENS2_PORT PORTD +#define SENS2_PIN PD5 + +#define LED_PORT PORTB +#define LED_PIN PB5 + // internal analog comparator doesnt work well //#define ANALOG_COMPARATOR 1 @@ -209,6 +215,8 @@ int main(void) { + uint8_t tmp; + // setup data bit timer2 TCCR2 = (1<