mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-25 20:26:41 +00:00
Switch to lvgl7 and ArduinoLog
This commit is contained in:
parent
5200760829
commit
6fcbc27f83
974
src/hasp.cpp
974
src/hasp.cpp
File diff suppressed because it is too large
Load Diff
23
src/hasp.h
23
src/hasp.h
@ -6,6 +6,11 @@
|
|||||||
#ifndef HASP_H
|
#ifndef HASP_H
|
||||||
#define HASP_H
|
#define HASP_H
|
||||||
|
|
||||||
|
#include <Arduino.h>
|
||||||
|
#include "lvgl.h"
|
||||||
|
#include "hasp_conf.h"
|
||||||
|
#include "hasp_debug.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
@ -14,21 +19,6 @@ extern "C" {
|
|||||||
* INCLUDES
|
* INCLUDES
|
||||||
*********************/
|
*********************/
|
||||||
|
|
||||||
#include <Arduino.h>
|
|
||||||
#include "lvgl.h"
|
|
||||||
|
|
||||||
#include "hasp_conf.h"
|
|
||||||
|
|
||||||
#include "hasp_debug.h"
|
|
||||||
|
|
||||||
/* #ifdef LV_CONF_INCLUDE_SIMPLE
|
|
||||||
#include "lvgl.h"
|
|
||||||
#include "hasp_conf.h"
|
|
||||||
#else
|
|
||||||
#include "../lvgl/lvgl.h"
|
|
||||||
#include "hasp_conf.h"
|
|
||||||
#endif */
|
|
||||||
|
|
||||||
#if HASP_USE_APP
|
#if HASP_USE_APP
|
||||||
|
|
||||||
/*********************
|
/*********************
|
||||||
@ -94,6 +84,9 @@ void haspWakeUp(void);
|
|||||||
bool haspGetConfig(const JsonObject & settings);
|
bool haspGetConfig(const JsonObject & settings);
|
||||||
bool haspSetConfig(const JsonObject & settings);
|
bool haspSetConfig(const JsonObject & settings);
|
||||||
|
|
||||||
|
bool check_obj_type(const char * lvobjtype, lv_hasp_obj_type_t haspobjtype);
|
||||||
|
void haspSetToggle(lv_obj_t * obj, bool toggle);
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* MACROS
|
* MACROS
|
||||||
**********************/
|
**********************/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user