Looking for Spin example to look up a value in a list
I've been messing around with Beau Schwabe's 4x4 keypad demo. It produces a word and depending on which key is pressed sets a bit in the word. The keypad I have has these keys in the order in which I see the bits set (*, 0, #, D, 7, 8, 9, C, 4, 5, 6, B, 1, 2, 3, A). For instance 0100000000000000 would be the "0" key pressed.
How do I iterate through the list to get the corresponding character that aligns with the bit set in the word?