Udisplay use library.json and folders in lib to ensure correct compile and linking (#24122)
This commit is contained in:
parent
88c62f3c09
commit
309cdd6b1d
@ -5,6 +5,7 @@
|
||||
#include <renderer.h>
|
||||
#include <Wire.h>
|
||||
#include <SPI.h>
|
||||
#include "uDisplay_config.h"
|
||||
|
||||
#ifdef ESP32
|
||||
#if __has_include("soc/soc_caps.h")
|
||||
@ -1,7 +1,8 @@
|
||||
#ifndef UDISPLAY_CONFIG_H
|
||||
#define UDISPLAY_CONFIG_H
|
||||
|
||||
// Logging system interface
|
||||
// Logging system interface - only declare if not building within Tasmota
|
||||
#ifndef _TASMOTA_H_
|
||||
enum LoggingLevels {
|
||||
LOG_LEVEL_NONE,
|
||||
LOG_LEVEL_ERROR,
|
||||
@ -10,12 +11,16 @@ enum LoggingLevels {
|
||||
LOG_LEVEL_DEBUG_MORE
|
||||
};
|
||||
|
||||
// Function declarations - only if not building within Tasmota
|
||||
extern void AddLog(uint32_t loglevel, const char* formatP, ...);
|
||||
extern int32_t ESP_ResetInfoReason();
|
||||
extern float CharToFloat(const char *str);
|
||||
extern SPIClass *SpiBegin(uint32 bus);
|
||||
// extern int Cache_WriteBack_Addr(uint32_t addr, uint32_t size);
|
||||
extern uint32_t ESP_ResetInfoReason(void);
|
||||
extern bool UsePSRAM(void);
|
||||
extern float CharToFloat(const char *str);
|
||||
extern SPIClass *SpiBegin(uint32_t bus);
|
||||
#endif // _TASMOTA_H_
|
||||
|
||||
// Enable universal touch support
|
||||
#define USE_UNIVERSAL_TOUCH
|
||||
|
||||
enum uColorType { uCOLOR_BW, uCOLOR_COLOR };
|
||||
|
||||
@ -1,17 +1,33 @@
|
||||
{
|
||||
"name": "universal display Library",
|
||||
"version": "0.1",
|
||||
"description": "This is a library a couple of displays.",
|
||||
"version": "0.9.0",
|
||||
"description": "General driver library for a couple of display types.",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/arendst/Tasmota",
|
||||
"frameworks": "*",
|
||||
"platforms": "*",
|
||||
"authors":
|
||||
"frameworks": "arduino",
|
||||
"platforms": [
|
||||
"espressif8266",
|
||||
"espressif32"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Gerhard Mutz",
|
||||
"maintainer": true
|
||||
},
|
||||
{
|
||||
"name": "Christian Baars",
|
||||
"maintainer": true
|
||||
}
|
||||
],
|
||||
"build": {
|
||||
"flags": [ "-I$PROJECT_DIR/include" ]
|
||||
"srcFilter": [
|
||||
"+<*>",
|
||||
"+<src/*>"
|
||||
],
|
||||
"flags": [
|
||||
"-I$PROJECT_DIR/include",
|
||||
"-I$PROJECT_DIR/tasmota/include"
|
||||
],
|
||||
"includeDir": "include"
|
||||
}
|
||||
}
|
||||
@ -1,9 +0,0 @@
|
||||
name=universal display Library
|
||||
version=0.1
|
||||
author=Gerhard Mutz
|
||||
maintainer=Gerhard Mutz
|
||||
sentence=This is a library a couple of displays.
|
||||
paragraph=This is a library a couple of displays.
|
||||
category=Display
|
||||
url=https://github.com/arendst/Tasmota
|
||||
architectures=*
|
||||
@ -542,4 +542,3 @@ build_flags = ${env:tasmota32_base.build_flags} -DMY_LANGUAGE=uk_UA
|
||||
[env:tasmota32-VN]
|
||||
extends = env:tasmota32_base
|
||||
build_flags = ${env:tasmota32_base.build_flags} -DMY_LANGUAGE=vi_VN -DFIRMWARE_TASMOTA32 -DOTA_URL='"http://ota.tasmota.com/tasmota32/release/tasmota32-VN.bin"'
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user