
unsigned char n = 0;
for (;;) {
    if (pressed) break;
    n = (n+1) % 6;
}
n = 1 << n;
