Files
ESP-Nodes/ESP32-C3_Table-Lamp/main/app_priv.h
2024-09-01 02:16:04 -04:00

19 lines
560 B
C

/*
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#pragma once
#include <stdint.h>
#include <stdbool.h>
#define DEFAULT_POWER true
#define DEVICE_DESCRIPTION CONFIG_DEVICE_DESCRIPTION
extern esp_rmaker_device_t *switch_device;
void app_driver_init(void);
int app_driver_set_state(bool state);
bool app_driver_get_state(void);