34 lines
1.2 KiB
C++
34 lines
1.2 KiB
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 bool be_ntv_display_started(void);
|
|
BE_FUNC_CTYPE_DECLARE(be_ntv_display_started, "b", "")
|
|
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")
|
|
extern const char* be_ntv_display_driver_name(void);
|
|
BE_FUNC_CTYPE_DECLARE(be_ntv_display_driver_name, "s", "")
|
|
|
|
/* @const_object_info_begin
|
|
module display (scope: global, strings: weak) {
|
|
start, func(be_ntv_display_start)
|
|
started, ctype_func(be_ntv_display_started)
|
|
dimmer, func(be_ntv_display_dimmer)
|
|
touch_update, ctype_func(be_ntv_display_touch_update)
|
|
driver_name, ctype_func(be_ntv_display_driver_name)
|
|
}
|
|
@const_object_info_end */
|
|
#include "be_fixed_display.h"
|
|
|
|
#endif // USE_DISPLAY
|