Commit eea5f67f authored by Martin Enriquez's avatar Martin Enriquez

Se agrega la funcion deshabilitar ADC

parent 8ed7767d
......@@ -33,6 +33,10 @@ void inicializarADC(void) {
ADCSRA |= (1 << ADEN); // Habilita el ADC
}
void disableADC(void){
ADCSRA &= ~(1 << ADEN); //Deshabilita el ADC
}
unsigned char convertirADC0(void) {
ADCSRA |= (1 << ADSC); // Inicia la conversion
while(!ADIF){} // Espera a que termine de convertir
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment