delay_ms(100);
TSM12_RESET_H;
delay_ms(10);
TSM12_RESET_L;
TSM12_EN_L;
delay_ms(100);
TSM12_WriteOneByte(0x09,0x0f);
TSM12_WriteOneByte(0x09,0x07);
TSM12_WriteOneByte(0x09,0x03); //½ûÖ¹Èí¼þ¸´Î»£¬µÍ¹¦ºÄģʽ
TSM12_WriteOneByte(0x02,0xBB); //ÅäÖÃͨµÀ0¡¢1ÁéÃô¶È
TSM12_WriteOneByte(0x03,0xBB); //ÅäÖÃͨµÀ2¡¢3ÁéÃô¶È
TSM12_WriteOneByte(0x04,0xBB); //ÅäÖÃͨµÀ4¡¢5ÁéÃô¶È
TSM12_WriteOneByte(0x05,0xBB); //ÅäÖÃͨµÀ6¡¢7ÁéÃô¶È
TSM12_WriteOneByte(0x06,0xBB); //ÅäÖÃͨµÀ8¡¢9ÁéÃô¶È
TSM12_WriteOneByte(0x07,0xBB); //ÅäÖÃͨµÀ10¡¢11ÁéÃô¶È
TSM12_WriteOneByte(0x08,0x28); //ÅäÖòÉÑùģʽ£º¿ìËÙ
TSM12_WriteOneByte(0x0a,0x00);
TSM12_WriteOneByte(0x0b,0x00);
TSM12_WriteOneByte(0x0c,0x00);
TSM12_WriteOneByte(0x0d,0x00);
TSM12_EN_H; |
很久没登论坛了,你这个情况是因为按键板的问题,它的触摸按键画板需要做防干扰处理的。希望能帮到你。