Help with code generator


#1

Arduino keeps saying the “‘hexy’ was not declared in this scope”
can someone help please

#include <avr/pgmspace.h>
#define MOVE_HEXY_SIZE 1590

const PROGMEM uint16_t move_hexy_time[MOVE_HEXY_SIZE] = {
0, 1, 3, 4, 6, 7, 8, 9, 9, 9, 10, 10, 216, 218, 220, 222, 224, 225, 227, 227, 228, 229, 230, 230, 231, 231, 232, 233, 234, 234, 235, 235, 236, 236, 237, 237, 238, 238, 238, 239, 239, 240, 240, 241, 241, 242, 242, 243, 477, 478, 479, 481, 481, 482, 483, 484, 484, 485, 485, 485, 688, 689, 690, 691, 692, 694, 697, 698, 699, 700, 702, 703, 703, 704, 705, 706, 706, 707, 707, 708, 708, 709, 709, 710, 711, 711, 712, 713, 714, 714, 714, 715, 715, 715, 716, 716, 914, 916, 918, 919, 920, 922, 924, 924, 925, 925, 926, 926, 1131, 1133, 1134, 1137, 1138, 1140, 1141, 1142, 1143, 1144, 1145, 1145, 1146, 1147, 1147, 1148, 1149, 1149, 1150, 1150, 1151, 1152, 1153, 1153, 1154, 1154, 1154, 1155, 1155, 1156, 1156, 1156, 1157, 1157, 1158, 1158, 1363, 1364, 1365, 1366, 1367, 1368, 1369, 1369, 1370, 1370, 1371, 1371, 1574, 1575, 1576, 1577, 1578, 1580, 1581, 1583, 1584, 1585, 1586, 1587, 1588, 1588, 1589, 1590, 1591, 1591, 1592, 1593, 1593, 1594, 1594, 1594, 1595, 1596, 1596, 1596, 1597, 1597, 1598, 1598, 1599, 1599, 1600, 1600, 1815, 1816, 1817, 1819, 1820, 1821, 1823, 1824, 1825, 1826, 1827, 1827, 1828, 1828, 1829, 1829, 1830, 1830, 1831, 1831, 1832, 1832, 1832, 1833, 2032, 2033, 2035, 2036, 2039, 2040, 2042, 2043, 2044, 2045, 2047, 2047, 2048, 2049, 2050, 2050, 2051, 2052, 2052, 2053, 2053, 2054, 2054, 2055, 2055, 2055, 2056, 2057, 2057, 2057, 2058, 2058, 2059, 2059, 2060, 2060, 2260, 2261, 2262, 2263, 2264, 2266, 2267, 2269, 2270, 2271, 2273, 2273, 2274, 2275, 2275, 2275, 2276, 2276, 2277, 2277, 2278, 2278, 2278, 2279, 2478, 2480, 2480, 2482, 2483, 2485, 2487, 2488, 2489, 2490, 2490, 2491, 2492, 2493, 2493, 2494, 2495, 2495, 2496, 2497, 2497, 2498, 2498, 2499, 2499, 2499, 2500, 2501, 2501, 2501, 2502, 2502, 2503, 2503, 2504, 2504, 2705, 2706, 2707, 2708, 2709, 2711, 2712, 2714, 2715, 2716, 2717, 2718, 2718, 2719, 2719, 2719, 2720, 2720, 2721, 2721, 2722, 2722, 2723, 2723, 2922, 2923, 2925, 2927, 2927, 2928, 2930, 2931, 2932, 2933, 2934, 2935, 2936, 2937, 2938, 2939, 2939, 2940, 2941, 2941, 2942, 2943, 2943, 2943, 2944, 2944, 2945, 2945, 2946, 2946, 2947, 2947, 2948, 2948, 2948, 2949, 3148, 3150, 3152, 3153, 3155, 3156, 3157, 3158, 3160, 3160, 3161, 3162, 3162, 3162, 3163, 3163, 3164, 3164, 3165, 3165, 3165, 3166, 3166, 3167, 3364, 3365, 3366, 3368, 3370, 3371, 3372, 3374, 3375, 3376, 3378, 3379, 3380, 3380, 3381, 3382, 3383, 3384, 3384, 3385, 3385, 3386, 3386, 3387, 3388, 3388, 3388, 3389, 3389, 3390, 3390, 3391, 3391, 3391, 3392, 3392, 3834, 3835, 3835, 3836, 3837, 3837, 3839, 3839, 3840, 3840, 3841, 3841, 3843, 3844, 3844, 3846, 3847, 3847, 5854, 5855, 5856, 5856, 5857, 5857, 5858, 5859, 5860, 5860, 5861, 5861, 6362, 6362, 6363, 6364, 6365, 6365, 6367, 6367, 6368, 6369, 6370, 6370, 6372, 6372, 6373, 6374, 6375, 6375, 6876, 6876, 6877, 6878, 6879, 6880, 6881, 6881, 6882, 6882, 6883, 6883, 7383, 7383, 7384, 7384, 7385, 7386, 7386, 7387, 7388, 7389, 7390, 7390, 7391, 7392, 7393, 7393, 7394, 7395, 7395, 7396, 7396, 7397, 7397, 7397, 7497, 7497, 7498, 7499, 7500, 7500, 7501, 7502, 7502, 7503, 7503, 7504, 7505, 7505, 7506, 7506, 7507, 7508, 7508, 7509, 7510, 7510, 7511, 7511, 7612, 7613, 7613, 7614, 7615, 7615, 7616, 7616, 7617, 7618, 7618, 7619, 7620, 7620, 7621, 7622, 7622, 7623, 7624, 7625, 7625, 7625, 7626, 7626, 7727, 7727, 7728, 7729, 7730, 7730, 7731, 7732, 7732, 7734, 7735, 7735, 7736, 7737, 7737, 7738, 7739, 7739, 7739, 7740, 7740, 7741, 7741, 7741, 7840, 7841, 7841, 7842, 7842, 7843, 7844, 7844, 7845, 7846, 7846, 7847, 7848, 7848, 7849, 7850, 7850, 7851, 7851, 7852, 7852, 7853, 7853, 7854, 7954, 7954, 7955, 7956, 7957, 7957, 7958, 7959, 7960, 7960, 7961, 7962, 7963, 7963, 7964, 7965, 7966, 7966, 7967, 7967, 7968, 7968, 7969, 7969, 8068, 8068, 8069, 8070, 8071, 8071, 8072, 8072, 8073, 8073, 8074, 8074, 8075, 8076, 8076, 8077, 8078, 8078, 8079, 8080, 8080, 8081, 8082, 8082, 8182, 8183, 8183, 8184, 8185, 8185, 8186, 8186, 8187, 8187, 8188, 8188, 8189, 8190, 8191, 8192, 8192, 8193, 8194, 8195, 8195, 8195, 8196, 8196, 8296, 8296, 8297, 8297, 8298, 8298, 8299, 8300, 8300, 8301, 8301, 8302, 8302, 8303, 8303, 8304, 8305, 8306, 8306, 8307, 8308, 8309, 8309, 8309, 8410, 8410, 8411, 8412, 8413, 8413, 8414, 8414, 8415, 8415, 8416, 8417, 8417, 8418, 8419, 8419, 8420, 8420, 8421, 8422, 8422, 8422, 8423, 8423, 8523, 8524, 8524, 8525, 8525, 8526, 8527, 8527, 8528, 8529, 8530, 8530, 8531, 8531, 8532, 8533, 8533, 8534, 8534, 8535, 8536, 8536, 8537, 8537, 8639, 8640, 8640, 8641, 8642, 8643, 8644, 8644, 8645, 8645, 8646, 8647, 8647, 8648, 8648, 8649, 8649, 8650, 8651, 8651, 8652, 8652, 8653, 8653, 8753, 8754, 8755, 8755, 8756, 8756, 8757, 8757, 8758, 8758, 8759, 8760, 8760, 8761, 8762, 8762, 8763, 8764, 8765, 8765, 8766, 8766, 8767, 8767, 8867, 8868, 8868, 8869, 8870, 8870, 8871, 8871, 8872, 8873, 8873, 8874, 8874, 8875, 8876, 8876, 8877, 8878, 8878, 8879, 8880, 8881, 8881, 8882, 8982, 8982, 8983, 8983, 8984, 8985, 8985, 8986, 8987, 8987, 8988, 8989, 8989, 8990, 8991, 8991, 8992, 8993, 8993, 8994, 8994, 8995, 8995, 8996, 9101, 9102, 9103, 9104, 9105, 9106, 9107, 9108, 9108, 9109, 9109, 9110, 9508, 9509, 9511, 9511, 9512, 9513, 9514, 9515, 9515, 9516, 9516, 9516, 9517, 9517, 9518, 9518, 9519, 9519, 9613, 9614, 9615, 9615, 9616, 9617, 9618, 9618, 9619, 9620, 9620, 9621, 9621, 9622, 9622, 9622, 9623, 9623, 9717, 9717, 9718, 9719, 9720, 9721, 9722, 9722, 9723, 9724, 9724, 9725, 9725, 9726, 9726, 9726, 9727, 9727, 10013, 10014, 10015, 10016, 10018, 10018, 10019, 10020, 10020, 10021, 10021, 10022, 10420, 10422, 10423, 10424, 10426, 10427, 10428, 10428, 10429, 10430, 10430, 10431, 10431, 10432, 10432, 10433, 10434, 10435, 10527, 10527, 10529, 10529, 10531, 10532, 10533, 10534, 10534, 10535, 10535, 10536, 10536, 10537, 10537, 10538, 10538, 10539, 10632, 10633, 10634, 10635, 10636, 10637, 10637, 10639, 10640, 10640, 10641, 10641, 10642, 10642, 10643, 10644, 10644, 10645, 10932, 10934, 10936, 10937, 10939, 10941, 10942, 10943, 10945, 10946, 10947, 10948, 10949, 10949, 10950, 10950, 10951, 10951, 10952, 10953, 10954, 10954, 10955, 10955, 10956, 10956, 10957, 10957, 10958, 10959, 10959, 10960, 10960, 10960, 10961, 10962, 11462, 11463, 11464, 11465, 11465, 11466, 11467, 11468, 11469, 11470, 11470, 11471, 11970, 11971, 11972, 11974, 11975, 11975, 11977, 11978, 11979, 11981, 11981, 11982, 11985, 11985, 11986, 11987, 11988, 11988, 12487, 12488, 12489, 12489, 12490, 12491, 12491, 12492, 12493, 12494, 12494, 12495, 12995, 12996, 12996, 12997, 12998, 12998, 12999, 13000, 13000, 13001, 13001, 13002, 13003, 13004, 13004, 13005, 13006, 13006, 13007, 13007, 13008, 13009, 13009, 13010, 13110, 13111, 13112, 13112, 13113, 13114, 13115, 13116, 13117, 13117, 13118, 13118, 13119, 13120, 13121, 13121, 13122, 13123, 13124, 13125, 13125, 13126, 13126, 13127, 13225, 13226, 13227, 13228, 13229, 13229, 13230, 13231, 13232, 13232, 13233, 13234, 13235, 13235, 13236, 13237, 13237, 13239, 13239, 13240, 13240, 13241, 13241, 13242, 13342, 13343, 13344, 13345, 13345, 13346, 13347, 13348, 13348, 13349, 13350, 13351, 13352, 13352, 13353, 13354, 13355, 13355, 13356, 13357, 13357, 13358, 13359, 13360, 13460, 13461, 13463, 13463, 13464, 13465, 13465, 13466, 13467, 13467, 13468, 13468, 13469, 13470, 13471, 13471, 13472, 13472, 13473, 13474, 13474, 13475, 13475, 13476, 13575, 13576, 13577, 13578, 13579, 13579, 13580, 13581, 13582, 13583, 13584, 13585, 13585, 13586, 13587, 13587, 13588, 13589, 13590, 13590, 13592, 13592, 13593, 13594, 13694, 13695, 13696, 13696, 13697, 13698, 13699, 13700, 13700, 13701, 13702, 13703, 13704, 13705, 13705, 13707, 13707, 13708, 13708, 13709, 13709, 13710, 13710, 13711, 13809, 13809, 13810, 13810, 13811, 13812, 13813, 13813, 13814, 13815, 13816, 13817, 13817, 13818, 13819, 13820, 13821, 13822, 13822, 13823, 13824, 13825, 13825, 13826, 13926, 13926, 13927, 13927, 13928, 13929, 13930, 13931, 13931, 13932, 13933, 13933, 13934, 13935, 13936, 13936, 13938, 13938, 13939, 13940, 13941, 13942, 13943, 13943, 14044, 14044, 14046, 14046, 14047, 14048, 14049, 14051, 14052, 14053, 14053, 14054, 14055, 14056, 14057, 14057, 14058, 14059, 14059, 14060, 14060, 14061, 14062, 14062, 14161, 14162, 14163, 14164, 14165, 14166, 14166, 14167, 14168, 14168, 14169, 14170, 14170, 14171, 14172, 14173, 14173, 14174, 14175, 14175, 14176, 14177, 14178, 14178, 14278, 14279, 14280, 14281, 14282, 14283, 14284, 14285, 14286, 14287, 14288, 14288, 14289, 14290, 14291, 14291, 14292, 14293, 14294, 14294, 14295, 14295, 14296, 14296, 14394, 14395, 14396, 14396, 14397, 14398, 14399, 14400, 14400, 14401, 14402, 14403, 14403, 14405, 14406, 14407, 14407, 14408, 14409, 14410, 14410, 14411, 14412, 14412, 14511, 14512, 14513, 14513, 14514, 14515, 14515, 14516, 14516, 14517, 14518, 14518, 14519, 14520, 14520, 14521, 14522, 14522, 14523, 14523, 14524, 14524, 14525, 14525, 14626, 14627, 14627, 14628, 14628, 14629, 14630, 14631, 14632, 14632, 14633, 14634, 14635, 14636, 14636, 14637, 14638, 14639, 14640, 14641, 14642, 14642, 14643, 14644, 14750, 14750, 14752, 14753, 14754, 14755, 14756, 14757, 14757, 14758, 14758, 14759, 15156, 15157, 15159, 15160, 15162, 15163, 15164, 15164, 15166, 15166, 15167, 15167, 15168, 15168, 15169, 15170, 15170, 15171, 15262, 15263, 15263, 15264, 15265, 15266, 15267, 15267, 15268, 15269, 15269, 15270, 15270, 15271, 15271, 15272, 15272, 15272, 15366, 15366, 15367, 15368, 15369, 15369, 15370, 15371, 15371, 15372, 15373, 15373, 15373, 15374, 15374, 15375, 15375, 15376, 15664, 15665, 15666, 15667, 15669, 15669, 15670, 15670, 15671, 15671, 15672, 15672, 16070, 16071, 16072, 16073, 16074, 16075, 16075, 16076, 16077, 16077, 16078, 16078, 16079, 16079, 16080, 16080, 16081, 16081, 16175, 16176, 16176, 16177, 16178, 16179, 16180, 16181, 16182, 16182, 16183, 16183, 16184, 16184, 16185, 16185, 16185, 16186, 16279, 16280, 16281, 16282, 16283, 16284, 16285, 16286, 16286, 16287, 16287, 16288, 16288, 16289, 16289, 16290, 16290, 16290, 16580, 16581, 16584, 16585, 16586, 16588, 16589, 16590, 16590, 16592, 16592, 16593, 16594, 16594, 16595, 16596, 16596, 16597, 16598, 16598, 16599, 16600, 16600, 16601, 16602, 16602, 16603, 16603, 16604, 16605, 16605, 16606, 16606, 16607, 16608, 16609};

const PROGMEM uint8_t move_hexy_servo[MOVE_HEXY_SIZE] = {
6, 6, 5, 10, 5, 10, 14, 9, 14, 9, 13, 13, 6, 6, 10, 5, 10, 14, 5, 9, 14, 25, 9, 13, 21, 25, 13, 21, 26, 22, 7, 17, 26, 22, 7, 17, 20, 18, 20, 18, 15, 15, 24, 24, 11, 11, 16, 16, 25, 25, 21, 26, 21, 26, 17, 22, 17, 22, 18, 18, 6, 6, 5, 10, 5, 10, 9, 14, 9, 14, 25, 13, 25, 21, 13, 26, 7, 21, 17, 26, 7, 22, 17, 22, 20, 18, 20, 18, 15, 15, 24, 24, 11, 11, 16, 16, 6, 6, 10, 5, 10, 5, 14, 9, 9, 14, 13, 13, 6, 6, 10, 5, 10, 14, 5, 9, 14, 25, 9, 13, 25, 21, 13, 26, 21, 7, 17, 26, 22, 7, 17, 22, 20, 18, 20, 18, 15, 15, 24, 24, 11, 11, 16, 16, 25, 25, 21, 26, 21, 26, 17, 22, 22, 17, 18, 18, 6, 6, 10, 5, 5, 10, 14, 9, 14, 25, 9, 13, 25, 13, 21, 26, 21, 26, 7, 17, 22, 7, 17, 22, 20, 18, 20, 18, 15, 15, 24, 24, 11, 11, 16, 16, 6, 6, 10, 5, 10, 5, 14, 9, 14, 9, 13, 25, 13, 25, 21, 26, 21, 26, 17, 22, 17, 22, 18, 18, 6, 6, 5, 10, 5, 10, 14, 9, 14, 9, 25, 13, 25, 21, 13, 26, 17, 7, 21, 26, 17, 7, 22, 18, 22, 20, 18, 20, 15, 15, 24, 24, 11, 11, 16, 16, 6, 6, 5, 10, 10, 5, 9, 14, 9, 25, 14, 25, 13, 26, 21, 13, 26, 21, 17, 22, 17, 22, 18, 18, 6, 6, 5, 10, 5, 10, 14, 9, 14, 25, 9, 13, 25, 21, 13, 21, 26, 7, 22, 26, 17, 7, 22, 17, 20, 18, 20, 18, 15, 15, 24, 24, 11, 11, 16, 16, 6, 6, 5, 10, 5, 10, 14, 9, 14, 9, 25, 13, 21, 13, 25, 21, 26, 17, 22, 26, 17, 22, 18, 18, 6, 6, 5, 10, 5, 10, 14, 9, 14, 9, 13, 25, 13, 25, 21, 26, 21, 7, 26, 17, 22, 7, 17, 22, 20, 18, 20, 18, 15, 15, 24, 24, 11, 11, 16, 16, 6, 6, 5, 10, 5, 10, 14, 9, 14, 9, 25, 13, 21, 25, 13, 21, 17, 26, 22, 17, 26, 22, 18, 18, 6, 6, 5, 10, 5, 10, 9, 14, 9, 25, 14, 25, 21, 13, 26, 21, 17, 13, 7, 26, 22, 17, 7, 22, 18, 20, 18, 20, 15, 15, 24, 24, 11, 11, 16, 16, 5, 6, 7, 9, 10, 11, 13, 14, 15, 16, 17, 18, 20, 21, 22, 24, 25, 26, 7, 7, 20, 20, 15, 15, 24, 24, 11, 11, 16, 16, 25, 25, 24, 21, 21, 20, 17, 17, 16, 6, 6, 7, 10, 10, 11, 14, 14, 15, 26, 26, 22, 22, 18, 18, 5, 5, 9, 9, 13, 13, 25, 25, 26, 26, 21, 21, 22, 22, 17, 17, 18, 18, 6, 6, 5, 5, 10, 10, 9, 9, 14, 14, 13, 13, 25, 25, 26, 26, 21, 21, 22, 22, 17, 17, 18, 18, 6, 6, 5, 5, 10, 10, 9, 9, 14, 14, 13, 13, 25, 25, 26, 26, 21, 21, 22, 22, 17, 17, 18, 18, 6, 6, 5, 5, 10, 10, 9, 9, 14, 14, 13, 13, 25, 25, 26, 26, 21, 21, 22, 22, 17, 17, 18, 18, 6, 6, 5, 5, 10, 10, 9, 9, 14, 14, 13, 13, 25, 25, 26, 26, 21, 21, 22, 22, 17, 17, 18, 18, 6, 6, 5, 5, 10, 10, 9, 9, 14, 14, 13, 13, 25, 25, 26, 26, 21, 21, 22, 22, 17, 17, 18, 18, 6, 6, 5, 5, 10, 10, 9, 9, 14, 14, 13, 13, 25, 25, 26, 26, 21, 21, 22, 22, 17, 17, 18, 18, 6, 6, 5, 5, 10, 10, 9, 9, 14, 14, 13, 13, 25, 25, 26, 26, 21, 21, 22, 22, 17, 17, 18, 18, 6, 6, 5, 5, 10, 10, 9, 9, 14, 14, 13, 13, 25, 25, 26, 26, 21, 21, 22, 22, 17, 17, 18, 18, 6, 6, 5, 5, 10, 10, 9, 9, 14, 14, 13, 13, 25, 25, 26, 26, 21, 21, 22, 22, 17, 17, 18, 18, 6, 6, 5, 5, 10, 10, 9, 9, 14, 14, 13, 13, 25, 25, 26, 26, 21, 21, 22, 22, 17, 17, 18, 18, 6, 6, 5, 5, 10, 10, 9, 9, 14, 14, 13, 13, 25, 25, 26, 26, 21, 21, 22, 22, 17, 17, 18, 18, 6, 6, 5, 5, 10, 10, 9, 9, 14, 14, 13, 13, 25, 25, 26, 26, 21, 21, 22, 22, 17, 17, 18, 18, 6, 6, 5, 5, 10, 10, 9, 9, 14, 14, 13, 13, 25, 25, 26, 26, 21, 21, 22, 22, 17, 17, 18, 18, 6, 6, 5, 5, 10, 10, 9, 9, 14, 14, 13, 13, 25, 25, 26, 26, 21, 21, 22, 22, 17, 17, 18, 18, 6, 6, 5, 5, 10, 10, 9, 9, 14, 14, 13, 13, 6, 6, 5, 21, 5, 21, 14, 22, 14, 22, 13, 13, 6, 6, 5, 21, 5, 21, 14, 7, 22, 14, 7, 22, 13, 20, 13, 20, 15, 15, 6, 6, 5, 5, 21, 7, 21, 14, 7, 22, 14, 22, 13, 20, 13, 20, 15, 15, 6, 6, 5, 5, 7, 21, 7, 21, 14, 22, 14, 22, 13, 20, 13, 20, 15, 15, 25, 25, 26, 10, 26, 10, 17, 9, 17, 9, 18, 18, 25, 25, 10, 26, 10, 26, 17, 9, 24, 17, 9, 24, 18, 11, 18, 11, 16, 16, 25, 25, 26, 10, 26, 17, 10, 24, 17, 9, 18, 24, 9, 18, 11, 16, 11, 16, 25, 25, 26, 26, 24, 17, 24, 10, 10, 17, 9, 18, 9, 18, 11, 16, 11, 16, 6, 10, 6, 10, 5, 9, 14, 5, 9, 25, 14, 25, 13, 21, 26, 13, 21, 17, 7, 26, 22, 17, 7, 22, 18, 20, 18, 20, 15, 15, 24, 24, 11, 11, 16, 16, 7, 7, 20, 20, 15, 15, 24, 24, 11, 11, 16, 16, 25, 25, 24, 21, 21, 20, 17, 17, 16, 6, 6, 7, 10, 10, 11, 14, 14, 15, 26, 26, 22, 22, 18, 18, 5, 5, 9, 9, 13, 13, 25, 25, 26, 26, 21, 21, 22, 22, 17, 17, 18, 18, 6, 6, 5, 5, 10, 10, 9, 9, 14, 14, 13, 13, 25, 25, 26, 26, 21, 21, 22, 22, 17, 17, 18, 18, 6, 6, 5, 5, 10, 10, 9, 9, 14, 14, 13, 13, 25, 25, 26, 26, 21, 21, 22, 22, 17, 17, 18, 18, 6, 6, 5, 5, 10, 10, 9, 9, 14, 14, 13, 13, 25, 25, 26, 26, 21, 21, 22, 22, 17, 17, 18, 18, 6, 6, 5, 5, 10, 10, 9, 9, 14, 14, 13, 13, 25, 25, 26, 26, 21, 21, 22, 22, 17, 17, 18, 18, 6, 6, 5, 5, 10, 10, 9, 9, 14, 14, 13, 13, 25, 25, 26, 26, 21, 21, 22, 22, 17, 17, 18, 18, 6, 6, 5, 5, 10, 10, 9, 9, 14, 14, 13, 13, 25, 25, 26, 26, 21, 21, 22, 22, 17, 17, 18, 18, 6, 6, 5, 5, 10, 10, 9, 9, 14, 14, 13, 13, 25, 25, 26, 26, 21, 21, 22, 22, 17, 17, 18, 18, 6, 6, 5, 5, 10, 10, 9, 9, 14, 14, 13, 13, 25, 25, 26, 26, 21, 21, 22, 22, 17, 17, 18, 18, 6, 6, 5, 5, 10, 10, 9, 9, 14, 14, 13, 13, 25, 25, 26, 26, 21, 21, 22, 22, 17, 17, 18, 18, 6, 6, 5, 5, 10, 10, 9, 9, 14, 14, 13, 13, 25, 25, 26, 26, 21, 21, 22, 22, 17, 17, 18, 18, 6, 6, 5, 5, 10, 10, 9, 9, 14, 14, 13, 13, 25, 25, 26, 26, 21, 21, 22, 22, 17, 17, 18, 18, 6, 6, 5, 5, 10, 10, 9, 9, 14, 14, 13, 13, 25, 25, 26, 26, 21, 21, 22, 22, 17, 17, 18, 18, 6, 6, 5, 5, 10, 10, 9, 9, 14, 14, 13, 13, 25, 25, 26, 26, 21, 21, 22, 22, 17, 17, 18, 18, 6, 6, 5, 5, 10, 10, 9, 9, 14, 14, 13, 13, 25, 25, 26, 26, 21, 21, 22, 22, 17, 17, 18, 18, 6, 6, 5, 5, 10, 10, 9, 9, 14, 14, 13, 13, 6, 6, 5, 21, 5, 21, 14, 22, 14, 22, 13, 13, 6, 6, 5, 21, 5, 21, 7, 22, 7, 14, 22, 14, 20, 13, 20, 13, 15, 15, 6, 6, 5, 5, 7, 21, 7, 21, 22, 14, 22, 14, 20, 13, 20, 13, 15, 15, 6, 6, 5, 5, 7, 21, 7, 21, 22, 22, 20, 14, 20, 14, 13, 13, 15, 15, 25, 25, 26, 10, 26, 10, 17, 9, 17, 9, 18, 18, 25, 25, 10, 26, 10, 26, 17, 9, 24, 17, 9, 24, 18, 11, 18, 11, 16, 16, 25, 25, 26, 10, 26, 17, 10, 24, 17, 9, 24, 18, 9, 18, 11, 16, 11, 16, 25, 25, 26, 26, 24, 17, 10, 24, 17, 10, 18, 9, 18, 9, 16, 11, 16, 11, 6, 6, 5, 10, 5, 10, 14, 9, 25, 9, 14, 21, 25, 21, 13, 17, 7, 26, 22, 13, 17, 7, 26, 22, 18, 20, 18, 20, 15, 15, 24, 24, 11, 11, 16, 16};

const PROGMEM uint8_t move_hexy_pos[MOVE_HEXY_SIZE] = {
209 , 150 , 109 , 209 , 50 , 141 , 209 , 109 , 150 , 50 , 109 , 50 , 150 , 209 , 141 , 50 , 209 , 150 , 109 , 50 , 209 , 209 , 109 , 50 , 209 , 209 , 109 , 209 , 109 , 109 , 183 , 209 , 109 , 109 , 183 , 209 , 150 , 109 , 150 , 109 , 116 , 116 , 116 , 116 , 150 , 150 , 183 , 183 , 209 , 150 , 209 , 109 , 141 , 50 , 209 , 109 , 150 , 50 , 109 , 50 , 209 , 209 , 109 , 209 , 109 , 209 , 109 , 209 , 109 , 209 , 150 , 109 , 209 , 141 , 109 , 50 , 183 , 209 , 150 , 109 , 183 , 50 , 209 , 109 , 150 , 50 , 150 , 109 , 116 , 116 , 116 , 116 , 150 , 150 , 183 , 183 , 209 , 150 , 209 , 109 , 141 , 50 , 209 , 109 , 50 , 150 , 109 , 50 , 150 , 209 , 141 , 50 , 209 , 150 , 109 , 50 , 209 , 209 , 109 , 50 , 209 , 209 , 109 , 109 , 209 , 183 , 209 , 109 , 109 , 183 , 209 , 109 , 150 , 109 , 150 , 109 , 116 , 116 , 116 , 116 , 150 , 150 , 183 , 183 , 209 , 150 , 209 , 109 , 141 , 50 , 209 , 109 , 50 , 150 , 109 , 50 , 209 , 209 , 209 , 109 , 109 , 209 , 209 , 109 , 209 , 150 , 109 , 109 , 209 , 109 , 141 , 50 , 209 , 109 , 183 , 150 , 50 , 183 , 209 , 109 , 150 , 50 , 150 , 109 , 116 , 116 , 116 , 116 , 150 , 150 , 183 , 183 , 209 , 162 , 209 , 109 , 176 , 62 , 209 , 109 , 209 , 76 , 109 , 209 , 109 , 162 , 209 , 109 , 176 , 62 , 209 , 109 , 209 , 76 , 109 , 109 , 162 , 209 , 62 , 176 , 109 , 209 , 209 , 76 , 209 , 109 , 162 , 109 , 209 , 176 , 109 , 62 , 209 , 183 , 209 , 109 , 209 , 183 , 76 , 109 , 109 , 150 , 109 , 150 , 116 , 116 , 116 , 116 , 150 , 150 , 183 , 183 , 209 , 209 , 109 , 209 , 176 , 109 , 109 , 209 , 76 , 209 , 162 , 209 , 109 , 109 , 209 , 62 , 109 , 176 , 209 , 109 , 162 , 76 , 109 , 62 , 209 , 209 , 109 , 176 , 109 , 209 , 162 , 76 , 209 , 209 , 109 , 62 , 209 , 176 , 109 , 209 , 109 , 183 , 76 , 109 , 162 , 183 , 109 , 209 , 150 , 62 , 150 , 109 , 116 , 116 , 116 , 116 , 150 , 150 , 183 , 183 , 209 , 162 , 109 , 209 , 62 , 176 , 209 , 109 , 209 , 76 , 209 , 109 , 209 , 109 , 162 , 176 , 109 , 209 , 109 , 62 , 209 , 76 , 109 , 109 , 162 , 209 , 62 , 176 , 109 , 209 , 209 , 76 , 209 , 109 , 109 , 162 , 109 , 209 , 176 , 62 , 209 , 183 , 109 , 209 , 76 , 183 , 209 , 109 , 150 , 109 , 150 , 109 , 116 , 116 , 116 , 116 , 150 , 150 , 183 , 183 , 209 , 209 , 109 , 209 , 109 , 176 , 209 , 109 , 162 , 76 , 209 , 109 , 209 , 209 , 62 , 176 , 209 , 109 , 109 , 162 , 109 , 76 , 109 , 62 , 209 , 209 , 109 , 176 , 109 , 209 , 76 , 162 , 109 , 209 , 209 , 209 , 176 , 62 , 109 , 209 , 162 , 109 , 183 , 109 , 76 , 209 , 183 , 109 , 62 , 150 , 109 , 150 , 116 , 116 , 116 , 116 , 150 , 150 , 183 , 183 , 150 , 150 , 150 , 150 , 150 , 150 , 150 , 150 , 150 , 150 , 150 , 150 , 150 , 150 , 150 , 150 , 150 , 150 , 150 , 183 , 150 , 151 , 150 , 116 , 150 , 116 , 150 , 151 , 150 , 183 , 150 , 116 , 116 , 150 , 116 , 151 , 150 , 116 , 183 , 150 , 116 , 183 , 150 , 116 , 151 , 150 , 116 , 116 , 150 , 50 , 150 , 50 , 150 , 50 , 150 , 50 , 150 , 50 , 150 , 50 , 116 , 150 , 50 , 50 , 116 , 150 , 50 , 50 , 116 , 150 , 50 , 50 , 116 , 150 , 50 , 50 , 116 , 150 , 50 , 50 , 116 , 150 , 50 , 50 , 150 , 153 , 50 , 53 , 150 , 153 , 50 , 53 , 150 , 153 , 50 , 53 , 150 , 153 , 50 , 53 , 150 , 153 , 50 , 53 , 150 , 153 , 50 , 53 , 153 , 156 , 53 , 56 , 153 , 156 , 53 , 56 , 153 , 156 , 53 , 56 , 153 , 156 , 53 , 56 , 153 , 156 , 53 , 56 , 153 , 156 , 53 , 56 , 156 , 160 , 56 , 60 , 156 , 160 , 56 , 60 , 156 , 160 , 56 , 60 , 156 , 160 , 56 , 60 , 156 , 160 , 56 , 60 , 156 , 160 , 56 , 60 , 160 , 163 , 60 , 63 , 160 , 163 , 60 , 63 , 160 , 163 , 60 , 63 , 160 , 163 , 60 , 63 , 160 , 163 , 60 , 63 , 160 , 163 , 60 , 63 , 163 , 166 , 63 , 66 , 163 , 166 , 63 , 66 , 163 , 166 , 63 , 66 , 163 , 166 , 63 , 66 , 163 , 166 , 63 , 66 , 163 , 166 , 63 , 66 , 166 , 170 , 66 , 70 , 166 , 170 , 66 , 70 , 166 , 170 , 66 , 70 , 166 , 170 , 66 , 70 , 166 , 170 , 66 , 70 , 166 , 170 , 66 , 70 , 170 , 173 , 70 , 73 , 170 , 173 , 70 , 73 , 170 , 173 , 70 , 73 , 170 , 173 , 70 , 73 , 170 , 173 , 70 , 73 , 170 , 173 , 70 , 73 , 173 , 176 , 73 , 76 , 173 , 176 , 73 , 76 , 173 , 176 , 73 , 76 , 173 , 176 , 73 , 76 , 173 , 176 , 73 , 76 , 173 , 176 , 73 , 76 , 176 , 180 , 76 , 80 , 176 , 180 , 76 , 80 , 176 , 180 , 76 , 80 , 176 , 180 , 76 , 80 , 176 , 180 , 76 , 80 , 176 , 180 , 76 , 80 , 180 , 183 , 80 , 83 , 180 , 183 , 80 , 83 , 180 , 183 , 80 , 83 , 180 , 183 , 80 , 83 , 180 , 183 , 80 , 83 , 180 , 183 , 80 , 83 , 183 , 186 , 83 , 86 , 183 , 186 , 83 , 86 , 183 , 186 , 83 , 86 , 183 , 186 , 83 , 86 , 183 , 186 , 83 , 86 , 183 , 186 , 83 , 86 , 186 , 190 , 86 , 90 , 186 , 190 , 86 , 90 , 186 , 190 , 86 , 90 , 186 , 190 , 86 , 90 , 186 , 190 , 86 , 90 , 186 , 190 , 86 , 90 , 190 , 193 , 90 , 93 , 190 , 193 , 90 , 93 , 190 , 193 , 90 , 93 , 190 , 193 , 90 , 93 , 190 , 193 , 90 , 93 , 190 , 193 , 90 , 93 , 193 , 196 , 93 , 96 , 193 , 196 , 93 , 96 , 193 , 196 , 93 , 96 , 193 , 196 , 93 , 96 , 193 , 196 , 93 , 96 , 193 , 196 , 93 , 96 , 196 , 150 , 96 , 196 , 50 , 150 , 196 , 96 , 150 , 50 , 96 , 50 , 150 , 209 , 50 , 150 , 109 , 156 , 150 , 183 , 50 , 209 , 183 , 56 , 50 , 151 , 109 , 150 , 116 , 116 , 209 , 209 , 109 , 109 , 156 , 183 , 156 , 209 , 183 , 56 , 209 , 56 , 109 , 150 , 109 , 150 , 116 , 116 , 209 , 209 , 109 , 109 , 183 , 156 , 183 , 209 , 209 , 56 , 209 , 109 , 109 , 150 , 109 , 150 , 116 , 116 , 196 , 150 , 96 , 196 , 50 , 150 , 196 , 96 , 150 , 50 , 96 , 50 , 150 , 209 , 150 , 50 , 156 , 109 , 150 , 50 , 116 , 209 , 56 , 116 , 50 , 151 , 109 , 150 , 183 , 183 , 209 , 209 , 109 , 156 , 109 , 209 , 156 , 116 , 209 , 56 , 109 , 116 , 56 , 109 , 150 , 183 , 150 , 183 , 209 , 209 , 109 , 109 , 116 , 209 , 116 , 156 , 209 , 209 , 56 , 109 , 109 , 109 , 150 , 183 , 150 , 183 , 209 , 209 , 209 , 209 , 109 , 109 , 209 , 109 , 109 , 209 , 209 , 209 , 109 , 209 , 109 , 109 , 209 , 209 , 183 , 109 , 109 , 209 , 183 , 109 , 109 , 150 , 109 , 150 , 116 , 116 , 116 , 116 , 150 , 150 , 183 , 183 , 183 , 183 , 150 , 151 , 116 , 116 , 116 , 116 , 150 , 151 , 183 , 183 , 209 , 116 , 116 , 209 , 116 , 151 , 209 , 116 , 183 , 209 , 116 , 183 , 209 , 116 , 151 , 209 , 116 , 116 , 109 , 50 , 109 , 50 , 109 , 50 , 109 , 50 , 109 , 50 , 109 , 50 , 116 , 150 , 50 , 50 , 116 , 150 , 50 , 50 , 116 , 150 , 50 , 50 , 116 , 150 , 50 , 50 , 116 , 150 , 50 , 50 , 116 , 150 , 50 , 50 , 150 , 153 , 50 , 53 , 150 , 153 , 50 , 53 , 150 , 153 , 50 , 53 , 150 , 153 , 50 , 53 , 150 , 153 , 50 , 53 , 150 , 153 , 50 , 53 , 153 , 156 , 53 , 56 , 153 , 156 , 53 , 56 , 153 , 156 , 53 , 56 , 153 , 156 , 53 , 56 , 153 , 156 , 53 , 56 , 153 , 156 , 53 , 56 , 156 , 160 , 56 , 60 , 156 , 160 , 56 , 60 , 156 , 160 , 56 , 60 , 156 , 160 , 56 , 60 , 156 , 160 , 56 , 60 , 156 , 160 , 56 , 60 , 160 , 163 , 60 , 63 , 160 , 163 , 60 , 63 , 160 , 163 , 60 , 63 , 160 , 163 , 60 , 63 , 160 , 163 , 60 , 63 , 160 , 163 , 60 , 63 , 163 , 166 , 63 , 66 , 163 , 166 , 63 , 66 , 163 , 166 , 63 , 66 , 163 , 166 , 63 , 66 , 163 , 166 , 63 , 66 , 163 , 166 , 63 , 66 , 166 , 170 , 66 , 70 , 166 , 170 , 66 , 70 , 166 , 170 , 66 , 70 , 166 , 170 , 66 , 70 , 166 , 170 , 66 , 70 , 166 , 170 , 66 , 70 , 170 , 173 , 70 , 73 , 170 , 173 , 70 , 73 , 170 , 173 , 70 , 73 , 170 , 173 , 70 , 73 , 170 , 173 , 70 , 73 , 170 , 173 , 70 , 73 , 173 , 176 , 73 , 76 , 173 , 176 , 73 , 76 , 173 , 176 , 73 , 76 , 173 , 176 , 73 , 76 , 173 , 176 , 73 , 76 , 173 , 176 , 73 , 76 , 176 , 180 , 76 , 80 , 176 , 180 , 76 , 80 , 176 , 180 , 76 , 80 , 176 , 180 , 76 , 80 , 176 , 180 , 76 , 80 , 176 , 180 , 76 , 80 , 180 , 183 , 80 , 83 , 180 , 183 , 80 , 83 , 180 , 183 , 80 , 83 , 180 , 183 , 80 , 83 , 180 , 183 , 80 , 83 , 180 , 183 , 80 , 83 , 183 , 186 , 83 , 86 , 183 , 186 , 83 , 86 , 183 , 186 , 83 , 86 , 183 , 186 , 83 , 86 , 183 , 186 , 83 , 86 , 183 , 186 , 83 , 86 , 186 , 190 , 86 , 90 , 186 , 190 , 86 , 90 , 186 , 190 , 86 , 90 , 186 , 190 , 86 , 90 , 186 , 190 , 86 , 90 , 186 , 190 , 86 , 90 , 190 , 193 , 90 , 93 , 190 , 193 , 90 , 93 , 190 , 193 , 90 , 93 , 190 , 193 , 90 , 93 , 190 , 193 , 90 , 93 , 190 , 193 , 90 , 93 , 193 , 196 , 93 , 96 , 193 , 196 , 93 , 96 , 193 , 196 , 93 , 96 , 193 , 196 , 93 , 96 , 193 , 196 , 93 , 96 , 193 , 196 , 93 , 96 , 196 , 150 , 96 , 196 , 50 , 150 , 196 , 96 , 150 , 50 , 96 , 50 , 150 , 209 , 50 , 150 , 109 , 156 , 183 , 50 , 183 , 150 , 56 , 209 , 151 , 50 , 150 , 109 , 116 , 116 , 209 , 209 , 109 , 109 , 183 , 156 , 183 , 156 , 56 , 209 , 56 , 209 , 150 , 109 , 150 , 109 , 116 , 116 , 209 , 209 , 109 , 109 , 183 , 156 , 183 , 209 , 56 , 109 , 150 , 209 , 150 , 209 , 109 , 109 , 116 , 116 , 196 , 150 , 96 , 196 , 50 , 150 , 196 , 96 , 150 , 50 , 96 , 50 , 150 , 209 , 150 , 50 , 156 , 109 , 150 , 50 , 116 , 209 , 56 , 116 , 50 , 151 , 109 , 150 , 183 , 183 , 209 , 209 , 109 , 156 , 109 , 209 , 156 , 116 , 209 , 56 , 116 , 109 , 56 , 109 , 150 , 183 , 150 , 183 , 209 , 209 , 109 , 109 , 116 , 209 , 156 , 116 , 209 , 209 , 109 , 56 , 109 , 109 , 183 , 150 , 183 , 150 , 209 , 209 , 109 , 209 , 109 , 209 , 209 , 109 , 209 , 109 , 209 , 209 , 209 , 209 , 109 , 209 , 183 , 109 , 109 , 109 , 209 , 183 , 109 , 109 , 109 , 150 , 109 , 150 , 116 , 116 , 116 , 116 , 150 , 150 , 183 , 183 };

void move_hexy(){
int startTime = hexy.millis_new();
int currentTime = 0;
int last_update = 0;
for(int i=0; i<MOVE_HEXY_SIZE; i++){
delayMicroseconds(10);
currentTime = hexy.millis_new() - startTime;
uint16_t move_time = pgm_read_word_near(move_hexy_time + i);
while(currentTime < move_time){
delayMicroseconds(10);
currentTime = hexy.millis_new() - startTime;
}
uint8_t servo_time = pgm_read_byte_near(move_hexy_servo + i);
uint8_t servo_pos = pgm_read_byte_near(move_hexy_pos + i);
hexy.changeServo(servo_time, servo_pos*10);
last_update = currentTime;
}
}
//Move Size is 6360 bytes
//Run this move by using:
// move_hexy()