📄 led.cpp
字号:
// LED.cpp: implementation of the CLED class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "ParkSys.h"
#include "LED.h"
#include "vicpublic.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CLED::CLED(CSerialPort* commLED)
{
if(commLED == NULL)
{
THROW(new CException);
}
else
{
m_comm = commLED;
}
}
CLED::~CLED()
{
m_comm = NULL;
}
void CLED::TakeEffect(const CString& strScript)
{
if(m_comm == NULL)
{
THROW(new CException);
return;
}
char buf[500];
wsprintf(buf, "%s", strScript);
m_comm->WriteToPort(buf);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -