func InitADC() {
	// set a2d prescaler so we are inside the desired 50-200 KHz range at 16MHz.
	avr.ADCSRA.SetBits(avr.ADCSRA_ADPS2 | avr.ADCSRA_ADPS1 | avr.ADCSRA_ADPS0)

	// enable a2d conversions
	avr.ADCSRA.SetBits(avr.ADCSRA_ADEN)
}
// InitADC initializes the registers needed for ADC.
InitADC initializes the registers needed for ADC.
// InitADC initializes the registers needed for ADC .
func InitADC() {
	avr.ADCSRA.SetBits(avr.ADCSRA_ADPS2 | avr.ADCSRA_ADPS1 | avr.ADCSRA_ADPS0)
	avr.ADCSRA.SetBits(avr.ADCSRA_ADEN)
}
func InitADC ( ) { avr . ADCSRA . SetBits ( avr . ADCSRA_ADPS2 | avr . ADCSRA_ADPS1 | avr . ADCSRA_ADPS0 ) avr . ADCSRA . SetBits ( avr . ADCSRA_ADEN ) }
InitADC initializes the registers needed for ADC.
InitADC initializes the registers needed for ADC .
// set a2d prescaler so we are inside the desired 50-200 KHz range at 16MHz. // enable a2d conversions