Xplatform changes

This commit is contained in:
fvanroie 2021-02-16 17:02:49 +01:00
parent 760de1b092
commit 5ffbd18d8b
6 changed files with 43 additions and 29 deletions

View File

@ -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

View File

@ -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*/

View File

@ -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)
{

View File

@ -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

View File

@ -98,6 +98,7 @@ int main(int argv, char ** args)
setup();
std::cout << "HSetup OK\n";
while(1) {
SDL_Delay(5);
lv_task_handler();

View File

@ -1,4 +1,3 @@
#include "Arduino.h"
#include "lvgl.h"
#if 1