starting template for charlieplexing code