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
7{
8private:
9 SmeJson json_data;
10 char** pjson;
11
12public:
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
Definition fc_switch.h:7
void setObj(char *refname, char *title, bool value)
Definition fc_switch.cpp:18
FcSwitch(char *json)
Definition fc_switch.h:25