50 lines
1.4 KiB
C++
50 lines
1.4 KiB
C++
|
#include <sstream>
|
||
|
#include <iostream>
|
||
|
#include <stdlib.h>
|
||
|
#include <unistd.h>
|
||
|
#include "DisplayCenter.h"
|
||
|
#include "LCDDisplay.h"
|
||
|
#include <vector>
|
||
|
|
||
|
using namespace std;
|
||
|
std::vector<DisType> vcdistype={
|
||
|
DisType::Dis_Init,//启动欢迎界面
|
||
|
DisType::Dis_Welcome,
|
||
|
DisType::Dis_Idel,//就绪
|
||
|
DisType::Dis_Set_ClearPaperPass,
|
||
|
DisType::Dis_Set_Count,
|
||
|
DisType::Dis_Err_DoubleFeed,
|
||
|
DisType::Dis_Err_Stable,
|
||
|
DisType::Dis_Err_CoverOpen,
|
||
|
DisType::Dis_Err_JamIn,
|
||
|
DisType::Dis_Err_JamOut,
|
||
|
DisType::Dis_Err_HandModeJam,
|
||
|
DisType::Dis_Err_PaperScrew,
|
||
|
DisType::Dis_Err_FeedError,
|
||
|
DisType::Dis_Err_AqrImgTimeout,
|
||
|
DisType::Dis_Set_PollPaperIntensity,
|
||
|
DisType::Dis_Set_PollPI_High,
|
||
|
DisType::Dis_Set_PollPI_Mid,
|
||
|
DisType::Dis_Set_PollPI_Low,
|
||
|
DisType::Dis_Count_Page,
|
||
|
DisType::Dis_Scan_Page,
|
||
|
DisType::Dis_Device_Lock
|
||
|
};
|
||
|
int main()
|
||
|
{
|
||
|
cout << "********** testlcd **********" << endl;
|
||
|
uint64_t cout =0;
|
||
|
LCDDisplay lcd(LCDDisplay::Language::Chinese);
|
||
|
while (1)
|
||
|
{
|
||
|
//for (size_t i = 0; i < vcdistype.size(); i++)
|
||
|
{
|
||
|
//lcd.PutMsg(vcdistype[i],i,ClearScreen::All);
|
||
|
//std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
||
|
}
|
||
|
lcd.DisplayState(DisType::Dis_Count_Page,cout++,ClearScreen::All);
|
||
|
std::cout <<"**********"<< cout<<"**********"<< endl;
|
||
|
}
|
||
|
|
||
|
return 0;
|
||
|
}
|