tried to add
pot1_analog_source = hal.analogin->channel(AN6);
pot2_analog_source = hal.analogin->channel(AN7);
and then use
pot1_analog_source->set_pin(AN6);
pot1_analog_source->read_average();
pot2_analog_source->set_pin(AN7);
pot2_analog_source->read_average();
but wasn't getting measurements , just 0 and 1023
Replies
Regards, Søren