使用查表法,画线,确定表针。
/指针时钟坐标
const unsigned char sec_x[]={ 32,35,38,41,43, 45,48,50,52,54, 56,58,59,60,60, 60,60,60,59,58, 56,54,52,50,48, 45,43,41,38,35, 32,29,26,23,21, 19,16,14,12,10, 8, 6, 5, 4, 4, 4, 4, 4, 5, 6, 8,10,12,14,16, 19,21,23,26,29, };
const unsigned sec_y[]={ 4, 4, 4, 5, 6, 8,10,12,14,16, 19,21,23,26,29, 32,35,38,41,43, 45,48,50,52,54, 56,58,59,60,60, 60,60,60,59,58, 56,54,52,50,48, 45,43,41,38,35, 32,29,26,23,21, 19,16,14,12,10, 8, 6, 5, 4, 4, }; const unsigned char min_x[]={ 32,34,36,38,40, 41,42,44,46,48, 49,50,51,52,53, 54,53,52,51,50, 49,46,45,44,42, 40,39,38,37,35, 32,29,27,26,25, 24,22,20,19,18, 15,14,13,12,11, 10,11,12,13,14, 15,16,18,20,22, 23,24,26,28,30, };
const unsigned char min_y[]={ 10,10,10,11,13, 14,15,17,19,21, 23,24,26,28,30, 32,34,36,38,40, 41,44,45,46,48, 49,50,51,52,53, 54,53,52,51,50, 49,48,46,45,44, 41,40,38,36,34, 32,30,28,26,24, 23,21,19,17,15, 14,13,11,10,10, };
|