moved encoder lookup table to program memory