binary out

Plus you need to move

int pwr[6] = { 1, 2, 4, 8, 16, 32 };
int bits[6] = { 0, 0, 0, 0, 0, 0 };
int i,val;

Outside of setup so they're defined as global variables.

Andrew