mirror of
https://gitee.com/peng_zhihui/HoloCubic
synced 2025-11-04 21:19:40 +08:00
[Fw] Remove lv_bmp related codes.
This commit is contained in:
parent
ea1cc5ead9
commit
cef4bc40c3
@ -7,7 +7,6 @@
|
||||
#include "lv_port_indev.h"
|
||||
#include "lv_port_fatfs.h"
|
||||
#include "lv_cubic_gui.h"
|
||||
|
||||
#include "lv_demo_encoder.h"
|
||||
|
||||
|
||||
@ -40,6 +39,7 @@ void setup()
|
||||
tf.init();
|
||||
lv_fs_if_init();
|
||||
|
||||
|
||||
String ssid = tf.readFileLine("/wifi.txt", 1); // line-1 for WiFi ssid
|
||||
String password = tf.readFileLine("/wifi.txt", 2); // line-2 for WiFi password
|
||||
|
||||
|
||||
@ -28,4 +28,9 @@ void lv_holo_cubic_gui(void)
|
||||
lv_obj_t* img2 = lv_img_create(scr2, NULL);
|
||||
lv_img_set_src(img2, &cat);
|
||||
lv_obj_align(img2, NULL, LV_ALIGN_CENTER, 0, 0);
|
||||
|
||||
lv_obj_t* imgbtn = lv_imgbtn_create(lv_scr_act(), NULL);
|
||||
lv_imgbtn_set_src(imgbtn, LV_BTN_STATE_PRESSED, "S:/dir/icon_press.bin");
|
||||
lv_imgbtn_set_src(imgbtn, LV_BTN_STATE_RELEASED, "S:/dir/icon_press.bin");
|
||||
lv_obj_align(imgbtn, NULL, LV_ALIGN_CENTER, 0, 0);
|
||||
}
|
||||
@ -18,6 +18,7 @@ extern "C" {
|
||||
*********************/
|
||||
#include "lvgl.h"
|
||||
#include "ff.h"
|
||||
#include "lv_bmp.h"
|
||||
/*********************
|
||||
* DEFINES
|
||||
*********************/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user