📄 tls8201.c
字号:
void InitMain()
{
res=0;
Delay(1);
res=1;
WCom(0xe2);//reset
WCom(0x40);//start line
WCom(0xa1);//seg direction: normal
WCom(0xa6);//display reverse: normal
WCom(0xa4);//display all points: off
WCom(0xa2);//Bias: 1/6
WCom(0xc8);//com direction: normal c8 or c0
WCom(0x25);//resistor ratio
WCom(0x81);WCom(0x18);//64 levels
WCom(0xf3);WCom(0x00);//reduce frame frequence
WCom(0x2c);//booster on
Delay(10);
WCom(0x2e);//regulator on
Delay(10);
WCom(0x2f);//follow on
Delay(10);
WCom(0xaf);//display on
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -