Miscellaneous arduino code.