Fix and extend get_light_sensor and get_voltage, move system clock query out of libra...