Changeset - 632be4bc87e2
[Not reviewed]
default
0 3 0
kripperger@CL-SEC241-09.cedarville.edu - 12 years ago 2013-02-21 15:33:58
kripperger@CL-SEC241-09.cedarville.edu
ADC edits
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
slave/slave/lib/inputOutput.c
Show inline comments
 
@@ -33,7 +33,7 @@ int8_t	moduleID;	// Slave Module ID from
 
	ADCSRA |= (1 << ADATE);									// Enables auto trigger, determined in ADCSRB bits ADTS
 
	//ADCSRA |= (1 << ADIF);									// 
 
//ADCSRA |= (1 << ADIE);									// ADC interrupt enable set
 
	ADCSRB &= ~(1 << ADTS2) | (1 << ADTS1) | (1 << ADTS0);	// Set ADC auto trigger source to free running mode
 
	ADCSRB &= ~((1 << ADTS2) | (1 << ADTS1) | (1 << ADTS0));	// Set ADC auto trigger source to free running mode
 
	ADCSRA |= (1 << ADEN);									// Enable ADC
 
	ADCSRA |= (1 << ADSC);									// Start ADC measurements.  ADC should now continuously run conversions, which are stored in ADCH 0x79
 
	
slave/slave/lib/sensors.c
Show inline comments
 
@@ -254,7 +254,7 @@ uint32_t sensors_getLux(void)		// Gets l
 
}
 
 
//possibly uint8_t
 
int8_t sensors_getBatt(void)		// Gets battery voltage from variable
 
uint8_t sensors_getBatt(void)		// Gets battery voltage from variable
 
{
 
	return batt;
 
}
0 comments (0 inline, 0 general)