Open source ADC read function for mikroc