📄 test.cpp
字号:
#include <windows.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "at45.h"
int PASCAL WinMain(
HANDLE hInstance, // Instance handle
HANDLE hPrevInstance, // Previous instance handle
LPSTR lpszCommandLine, // Command line string
int cmdShow ) // ShowWindow flag
{
short a;
a = AT45_OpenPort(1);
DWORD st;
st=GetTickCount();
//a = AT45_Img2Card("C:\\xray\\APP\\img\\3.jpg");
a = AT45_Card2Img("C:\\xray\\APP\\img\\r.jpg",1);
st=GetTickCount()-st;
//if(a==0) a = AT45_RFile("C:\\xray\\APP\\img\\r.jpg",1);
// a = AT45_RFile("C:\\xray\\APP\\img\\r.jpg",1);
// a = AT45_WFile("C:\\xray\\APP\\img\\100.jpg");
//a= AT45_Set232Baud(9600);
a = AT45_ClosePort(1);
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -