Library that allows for direct analog-to-digital conversion