test.cpp
来自「AT45DB Flash的驱动程序 自己把它加入具体工程修改下就可以了!」· C++ 代码 · 共 26 行
CPP
26 行
#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 + =
减小字号Ctrl + -
显示快捷键?