NexCrop.cpp
Go to the documentation of this file.
#include "NexCrop.h"
NexCrop::NexCrop(uint8_t pid, uint8_t cid, const char *name)
:NexTouch(pid, cid, name)
{
}
bool NexCrop::Get_background_crop_picc(uint32_t *number)
{
String cmd = String("get ");
cmd += getObjName();
cmd += ".picc";
sendCommand(cmd.c_str());
return recvRetNumber(number);
}
bool NexCrop::Set_background_crop_picc(uint32_t number)
{
char buf[10] = {0};
String cmd;
utoa(number, buf, 10);
cmd += getObjName();
cmd += ".picc=";
cmd += buf;
sendCommand(cmd.c_str());
return recvRetCommandFinished();
}
bool NexCrop::getPic(uint32_t *number)
{
String cmd = String("get ");
cmd += getObjName();
cmd += ".picc";
sendCommand(cmd.c_str());
return recvRetNumber(number);
}
bool NexCrop::setPic(uint32_t number)
{
char buf[10] = {0};
String cmd;
utoa(number, buf, 10);
cmd += getObjName();
cmd += ".picc=";
cmd += buf;
sendCommand(cmd.c_str());
return recvRetCommandFinished();
}
NexCrop::Get_background_crop_picc
bool Get_background_crop_picc(uint32_t *number)
Get the number of picture.
Definition: NexCrop.cpp:23
NexCrop::getPic
bool getPic(uint32_t *number)
Get the number of picture.
Definition: NexCrop.cpp:46
NexCrop::NexCrop
NexCrop(uint8_t pid, uint8_t cid, const char *name)
Constructor.
Definition: NexCrop.cpp:18
NexCrop.h
The definition of class NexCrop.
NexCrop::setPic
bool setPic(uint32_t number)
Set the number of picture.
Definition: NexCrop.cpp:55
NexCrop::Set_background_crop_picc
bool Set_background_crop_picc(uint32_t number)
Set the number of picture.
Definition: NexCrop.cpp:32
NexTouch
Father class of the components with touch events.
Definition: NexTouch.h:53