| Documentation For Arduino users

- Main Page
- Related Pages
- Modules
- Classes
- Files
- Examples

- File List
- File Members

NexPicture.cpp
Go to the documentation of this file.
1
16 #include "NexPicture.h"
17
18 NexPicture::NexPicture(uint8_t pid, uint8_t cid, const char *name)
19 :NexTouch(pid, cid, name)
20 {
21 }
22
23 bool NexPicture::getPic(uint32_t *number)
24 {
25 String cmd = String("get ");
26 cmd += getObjName();
27 cmd += ".pic";
28 sendCommand(cmd.c_str());
29 return recvRetNumber(number);
30 }
31
32 bool NexPicture::setPic(uint32_t number)
33 {
34 char buf[10] = {0};
35 String cmd;
36
37 utoa(number, buf, 10);
38 cmd += getObjName();
39 cmd += ".pic=";
40 cmd += buf;
41
42 sendCommand(cmd.c_str());
43 return recvRetCommandFinished();
44 }
45
NexPicture::setPic
bool setPic(uint32_t number)
Set picture's number.
Definition: NexPicture.cpp:32
NexPicture::NexPicture
NexPicture(uint8_t pid, uint8_t cid, const char *name)
Constructor.
Definition: NexPicture.cpp:18
NexPicture::getPic
bool getPic(uint32_t *number)
Get picture's number.
Definition: NexPicture.cpp:23
NexTouch
Father class of the components with touch events.
Definition: NexTouch.h:53
NexPicture.h
The definition of class NexPicture.