mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-27 21:26:43 +00:00
Xplatform changes
This commit is contained in:
parent
760de1b092
commit
5ffbd18d8b
@ -29,6 +29,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifdef ARDUINO
|
||||
|
||||
#include "ArduinoLog.h"
|
||||
|
||||
void Logging::begin(int level, bool showLevel)
|
||||
@ -183,3 +185,5 @@ void Logging::printFormat(Print * logOutput, const char format, va_list * args)
|
||||
}
|
||||
|
||||
Logging Log = Logging();
|
||||
|
||||
#endif // ARDUINO
|
@ -6,6 +6,8 @@
|
||||
/*********************
|
||||
* INCLUDES
|
||||
*********************/
|
||||
#ifdef ARDUINO
|
||||
|
||||
#include <Arduino.h>
|
||||
#include "lv_fs_if.h"
|
||||
#include "lv_fs_spiffs.h"
|
||||
@ -504,3 +506,5 @@ static lv_fs_res_t fs_dir_close(lv_fs_drv_t * drv, void * dir_p)
|
||||
|
||||
#endif /*LV_USE_FS_IF*/
|
||||
#endif /*LV_FS_IF_SPIFFS*/
|
||||
|
||||
#endif /*ARDUINO*/
|
@ -1,6 +1,9 @@
|
||||
/*********************
|
||||
* INCLUDES
|
||||
*********************/
|
||||
|
||||
#ifndef WINDOWS
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <stdio.h>
|
||||
|
||||
@ -557,6 +560,8 @@ static inline void IRAM_ATTR colorsAdd(uint8_t * charBitmap_p, uint8_t color1, u
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
void printPixel(uint8_t pixel)
|
||||
{
|
||||
|
@ -1,9 +1,10 @@
|
||||
/* MIT License - Copyright (c) 2020 Francis Van Roie
|
||||
For full license information read the LICENSE file in the project folder */
|
||||
|
||||
#ifdef ARDUINO
|
||||
#ifndef WINDOWS
|
||||
|
||||
#include <Arduino.h>
|
||||
#include "lvgl.h"
|
||||
#include "hasp_conf.h" // load first
|
||||
|
||||
#if HASP_USE_CONFIG > 0
|
||||
|
@ -98,6 +98,7 @@ int main(int argv, char ** args)
|
||||
setup();
|
||||
std::cout << "HSetup OK\n";
|
||||
|
||||
|
||||
while(1) {
|
||||
SDL_Delay(5);
|
||||
lv_task_handler();
|
||||
|
@ -1,4 +1,3 @@
|
||||
#include "Arduino.h"
|
||||
#include "lvgl.h"
|
||||
|
||||
#if 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user