Various Arduino code snippets I've crafted together.