semilimes mcu sdk
0.1
semilimes Software Development Kit for microcontrollers
Loading...
Searching...
No Matches
fc_switch.h
1
#ifndef _fc_switch_
2
#define _fc_switch_
3
4
#include "../defines.h"
5
6
class
FcSwitch
7
{
8
private
:
9
SmeJson json_data;
10
char
** pjson;
11
12
public
:
13
// Function: FcSwitch
14
15
// An on/off switch
16
17
// Prototype:
18
// void FcSwitch(char* json);
19
20
// Parameters:
22
23
// Returns:
25
FcSwitch
(
char
* json)
26
{
27
pjson = &json;
28
json_data.initJson(*pjson);
29
}
30
31
// Function: FcSwitch.setObj
32
33
// An on/off switch
34
35
// Prototype:
36
// void FcSwitch::setObj(char* refname,char* title,bool value);
37
38
// Parameters:
42
43
// Returns:
45
46
void
setObj
(
char
* refname,
char
* title,
bool
value);
47
};
48
49
#endif
FcSwitch
Definition
fc_switch.h:7
FcSwitch::setObj
void setObj(char *refname, char *title, bool value)
Definition
fc_switch.cpp:18
FcSwitch::FcSwitch
FcSwitch(char *json)
Definition
fc_switch.h:25
semilimes
src
components
fc_switch.h
Generated by
1.12.0