mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-27 21:26:43 +00:00
Add custom/my_custom.h to hasplib.h
This commit is contained in:
parent
d521edc04b
commit
b7afda6cc9
@ -16,7 +16,6 @@
|
|||||||
#if defined(HASP_USE_CUSTOM) && false // <-- set this to true in your code
|
#if defined(HASP_USE_CUSTOM) && false // <-- set this to true in your code
|
||||||
|
|
||||||
#include "hasp_debug.h"
|
#include "hasp_debug.h"
|
||||||
#include "custom/my_custom.h"
|
|
||||||
|
|
||||||
uint16_t fanspeed = 0; // rotation off by default (the time between angle turns in ms)
|
uint16_t fanspeed = 0; // rotation off by default (the time between angle turns in ms)
|
||||||
uint16_t fanangle = 450; // default angle of one turn (0.1 degree precision, so this means 45°)
|
uint16_t fanangle = 450; // default angle of one turn (0.1 degree precision, so this means 45°)
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
#if defined(HASP_USE_CUSTOM) && false // <-- set this to true in your code
|
#if defined(HASP_USE_CUSTOM) && false // <-- set this to true in your code
|
||||||
|
|
||||||
#include "hasp_debug.h"
|
#include "hasp_debug.h"
|
||||||
#include "custom/my_custom.h"
|
|
||||||
|
|
||||||
void custom_setup()
|
void custom_setup()
|
||||||
{
|
{
|
||||||
|
@ -41,10 +41,6 @@
|
|||||||
#include "hasp_config.h"
|
#include "hasp_config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HASP_USE_CUSTOM)
|
|
||||||
#include "custom/my_custom.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
dispatch_conf_t dispatch_setings = {.teleperiod = 300};
|
dispatch_conf_t dispatch_setings = {.teleperiod = 300};
|
||||||
|
|
||||||
uint16_t dispatchSecondsToNextTeleperiod = 0;
|
uint16_t dispatchSecondsToNextTeleperiod = 0;
|
||||||
|
@ -102,7 +102,7 @@ static lv_font_t* font_add_to_list(const char* payload)
|
|||||||
if(!font) return NULL;
|
if(!font) return NULL;
|
||||||
LOG_VERBOSE(TAG_FONT, F("Loaded font %s size %d"), filename, font->line_height);
|
LOG_VERBOSE(TAG_FONT, F("Loaded font %s size %d"), filename, font->line_height);
|
||||||
|
|
||||||
/* allox payload str */
|
/* alloc payload str */
|
||||||
size_t len = strlen(payload);
|
size_t len = strlen(payload);
|
||||||
name_p = (char*)calloc(sizeof(char), len + 1);
|
name_p = (char*)calloc(sizeof(char), len + 1);
|
||||||
if(!name_p) return NULL;
|
if(!name_p) return NULL;
|
||||||
|
@ -16,10 +16,6 @@ For full license information read the LICENSE file in the project folder */
|
|||||||
#include "hasp_gui.h"
|
#include "hasp_gui.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HASP_USE_CUSTOM)
|
|
||||||
#include "custom/my_custom.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HASP_USE_STAT_COUNTER
|
#ifdef HASP_USE_STAT_COUNTER
|
||||||
extern uint16_t statLoopCounter; // measures the average looptime
|
extern uint16_t statLoopCounter; // measures the average looptime
|
||||||
#endif
|
#endif
|
||||||
|
@ -49,3 +49,7 @@
|
|||||||
#if HASP_USE_JPGDECODE > 0
|
#if HASP_USE_JPGDECODE > 0
|
||||||
#include "lv_sjpg.h"
|
#include "lv_sjpg.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(HASP_USE_CUSTOM)
|
||||||
|
#include "custom/my_custom.h"
|
||||||
|
#endif
|
@ -20,10 +20,6 @@
|
|||||||
#include "hasp_gui.h"
|
#include "hasp_gui.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HASP_USE_CUSTOM)
|
|
||||||
#include "custom/my_custom.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
bool isConnected;
|
bool isConnected;
|
||||||
uint8_t mainLoopCounter = 0;
|
uint8_t mainLoopCounter = 0;
|
||||||
unsigned long mainLastLoopTime = 0;
|
unsigned long mainLastLoopTime = 0;
|
||||||
|
@ -22,24 +22,16 @@
|
|||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#include "hasp_conf.h"
|
#include "hasplib.h"
|
||||||
|
|
||||||
#include "lvgl.h"
|
|
||||||
// #include "app_hal.h"
|
// #include "app_hal.h"
|
||||||
#include "display/monitor.h"
|
#include "display/monitor.h"
|
||||||
|
|
||||||
#include "hasp_debug.h"
|
#include "hasp_debug.h"
|
||||||
#include "hasp_gui.h"
|
#include "hasp_gui.h"
|
||||||
|
|
||||||
#include "hasp/hasp_dispatch.h"
|
|
||||||
#include "hasp/hasp.h"
|
|
||||||
|
|
||||||
#include "dev/device.h"
|
#include "dev/device.h"
|
||||||
|
|
||||||
#if defined(HASP_USE_CUSTOM)
|
|
||||||
#include "custom/my_custom.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
bool isConnected;
|
bool isConnected;
|
||||||
bool isRunning = 1;
|
bool isRunning = 1;
|
||||||
|
|
||||||
|
@ -8,10 +8,6 @@
|
|||||||
#include "hasp_gpio.h"
|
#include "hasp_gpio.h"
|
||||||
#include "hasp_config.h"
|
#include "hasp_config.h"
|
||||||
|
|
||||||
#if defined(HASP_USE_CUSTOM)
|
|
||||||
#include "custom/my_custom.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef ARDUINO_ARCH_ESP8266
|
#ifdef ARDUINO_ARCH_ESP8266
|
||||||
#define INPUT_PULLDOWN INPUT
|
#define INPUT_PULLDOWN INPUT
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user