Skip to content

Commit 2f151b9

Browse files
committed
Typo fixed
1 parent 86f7514 commit 2f151b9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: libraries/RainMaker/examples/RMakerSwitch/RMakerSwitch.ino

+5-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,16 @@ const char *pop = "abcd1234";
1010
//GPIO for push button
1111
#if CONFIG_IDF_TARGET_ESP32C3
1212
static int gpio_0 = 9;
13-
static int gpio_dimmer = 7;
13+
static int gpio_switch = 7;
1414
#else
1515
//GPIO for virtual device
1616
static int gpio_0 = 0;
17-
static int gpio_dimmer = 16;
17+
static int gpio_switch = 16;
1818
#endif
1919

20+
/* Variable for reading pin status*/
21+
bool switch_state = true;
22+
2023
//The framework provides some standard device types like switch, lightbulb, fan, temperaturesensor.
2124
static Switch my_switch("Switch", &gpio_switch);
2225

0 commit comments

Comments
 (0)