diff --git a/slave/slave/lib/geiger.c b/slave/slave/lib/geiger.c --- a/slave/slave/lib/geiger.c +++ b/slave/slave/lib/geiger.c @@ -47,3 +47,20 @@ uint8_t geiger_getCount() //DEBUG return counts; } +void geiger_on(); +{ + // Turn the Flyback Transformer on + PORTA |= (1 << PA1); //ON + } +} + +void geiger_refresh(); +{ + // Turn the Flyback Transformer off + PORTA &= ~(1 << PA1); //OFF + _delay_ms(1); + + // Turn the Flyback Transformer on + PORTA |= (1 << PA1); //ON +} +} diff --git a/slave/slave/lib/geiger.h b/slave/slave/lib/geiger.h --- a/slave/slave/lib/geiger.h +++ b/slave/slave/lib/geiger.h @@ -11,5 +11,6 @@ uint16_t geiger_getCpm(); uint8_t geiger_getCount(); //DEBUG +void led_on(void); #endif /* GEIGER_H_ */ \ No newline at end of file diff --git a/slave/slave/lib/inputOutput.c b/slave/slave/lib/inputOutput.c --- a/slave/slave/lib/inputOutput.c +++ b/slave/slave/lib/inputOutput.c @@ -43,7 +43,7 @@ int8_t moduleID; // Slave Module ID from void io_readModuleId() { // Get ID from rotary dip and return it. - moduleID = 0; + moduleID = 2; /* // This method is temporary as the next release will read the module ID from EEPROM @@ -57,10 +57,10 @@ int8_t moduleID; // Slave Module ID from moduleID = (moduleID & 0b0111); //Mask bits */ - while(moduleID==0) //UNCOMMENT ALL THIS - { - moduleID = i2c_read(EEPROM_ADDR, 0x05); - } +// while(moduleID==0) //UNCOMMENT ALL THIS +// { +// moduleID = i2c_read(EEPROM_ADDR, 0x05); +// } } diff --git a/slave/slave/modules.c b/slave/slave/modules.c --- a/slave/slave/modules.c +++ b/slave/slave/modules.c @@ -91,7 +91,7 @@ { // Pin setup DDRA &= ~(1 << DDA0); // PA0 is an input - + DDRA |= (1 << DDA1); // PA1 is an output // Setup for interrupt input on PA0 (PCINT0)