Tasmota/lib/libesp32/berry_tasmota/src/be_display_lib.cpp
s-hadinger 7df607f471
LilyGo TWtach prep (#14800)
* LilyGo TWtach prep

* Fix compilation

* Add USE_LVGL_TOUCHSCREEN

* fix
2022-02-11 09:22:30 +01:00

28 lines
848 B
C++

/********************************************************************
* Tasmota lib
*
* To use: `import display`
*
* Initialize Universal Display driver
*******************************************************************/
#include "be_constobj.h"
#include "be_mapping.h"
#ifdef USE_DISPLAY
extern int be_ntv_display_start(bvm *vm);
extern int be_ntv_display_dimmer(bvm *vm);
extern void be_ntv_display_touch_update(int32_t touches, int32_t raw_x, int32_t raw_y, int32_t gesture);
BE_FUNC_CTYPE_DECLARE(be_ntv_display_touch_update, "", "iiii[ii]")
/* @const_object_info_begin
module display (scope: global) {
start, func(be_ntv_display_start)
dimmer, func(be_ntv_display_dimmer)
touch_update, ctype_func(be_ntv_display_touch_update)
}
@const_object_info_end */
#include "be_fixed_display.h"
#endif // USE_DISPLAY