On the Subject of The Heptabutton
Seven vertices and seven edges; seven seas and seven stages.
Note:
- A TAP is a HOLD for 0 timer ticks.
- Keep track of the button’s color each stage.
Stage 1:
- TAP on last digit = (number of letters on the button’s label + first digit of the S#) % 10.
Stage 2:
- BR = (sum of Stage 1’s and Stage 2’s colors’ Red values) % 3.
- BG = (sum of Stage 1’s and Stage 2’s colors’ Green values) % 3.
- BB = (sum of Stage 1’s and Stage 2’s colors’ Blue values) % 3.
- BRG = 3×BR + BG.
-
HOLD on last digit = BRG,
RELEASE on (last digit % 3) = BB.
Stage 3:
-
Convert the first letter of the S# into Morse Code.
d = number of dots, s = number of dashes. - CH = d + 3×s.
- CR = last digit of the S#.
-
HOLD on last digit =
- If in Zen mode, |CR - (CH % 10)|.
- Otherwise, (CR + CH) % 10.
- Note whether or not the button changes color when held correctly.
Stage 4:
- If the button changed color when held correctly in Stage 3, TAP on last digit = 0.
- Otherwise, HOLD on last digit = batteries % 10, and for 6-8 timer ticks.