|
|
|
|
@ -17,16 +17,16 @@ void muxer_set(uint8_t channel){
|
|
|
|
|
|
|
|
|
|
void offset_measure_init(){
|
|
|
|
|
DDRD |= 0x0f; // first 4 pins as output
|
|
|
|
|
PORTD = 0x00; // turn everything off
|
|
|
|
|
// PORTD = 0x00; // turn everything off
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void offset_measure_start(uint8_t channel){
|
|
|
|
|
if(channel >3){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
PORTD = (1<<channel);
|
|
|
|
|
PORTD |= (1<<channel);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void offset_measure_stop(){
|
|
|
|
|
PORTD = 0;
|
|
|
|
|
PORTD &= ~0x0f;
|
|
|
|
|
}
|
|
|
|
|
|