Tweet

Replying to @RWB93174525, @Hacksterio and @theavalkyrie

Here’s the code, hope I didn’t do anything too egregiously embarrassing. A lot of it is borrowed from the Arduino core’s wiring_analog.c https://gist.github.com/joeycastillo/5336abf99d04b1579085a86cadb5d131

(original)