Demo image in README
This commit is contained in:
parent
8455e28a82
commit
b073ea0b34
3 changed files with 7 additions and 12 deletions
|
@ -1,5 +1,8 @@
|
|||
<h1 align="center"> LittlevGL - Open-source Embedded GUI Library in Rust</h1>
|
||||
|
||||
<p align="center">
|
||||
<img src="https://littlevgl.com/github/cover_ori_reduced_2.gif">
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
LittlevGL provides everything you need to create a Graphical User Interface (GUI) on embedded systems with easy-to-use graphical elements, beautiful visual effects and low memory footprint.
|
||||
|
@ -10,8 +13,12 @@ LittlevGL is compatible with <samp>#![no_std]</samp> environments by default.
|
|||
|
||||
<h4 align="center">
|
||||
<a href="https://littlevgl.com">Official LittlevGL Website </a> ·
|
||||
<a href="https://github.com/littlevgl/lvgl">C library repository</a> ·
|
||||
<a href="https://littlevgl.com/live-demo">Live demo</a>
|
||||
</h4>
|
||||
|
||||
---
|
||||
|
||||
<p align="center">
|
||||
<img src="https://raw.githubusercontent.com/rafaelcaricio/lvgl-rs/master/demo.png">
|
||||
</p>
|
||||
|
|
BIN
demo.png
Normal file
BIN
demo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 97 KiB |
|
@ -63,18 +63,6 @@ fn main() -> Result<(), String> {
|
|||
}
|
||||
|
||||
// Create screen and widgets
|
||||
// let screen = unsafe { lvgl_sys::lv_disp_get_scr_act(std::ptr::null_mut()) };
|
||||
// let btn = unsafe { lvgl_sys::lv_btn_create(screen, std::ptr::null_mut()) };
|
||||
// unsafe {
|
||||
// lvgl_sys::lv_obj_set_pos(btn, 10, 10);
|
||||
// lvgl_sys::lv_obj_set_size(btn, 200, 50)
|
||||
// }
|
||||
// let label = unsafe { lvgl_sys::lv_label_create(btn, std::ptr::null_mut()) };
|
||||
// let text = CString::new("Click me!").unwrap();
|
||||
// unsafe {
|
||||
// lvgl_sys::lv_label_set_text(label, text.as_ptr());
|
||||
// }
|
||||
|
||||
let mut screen = lvgl::display::get_active_screen();
|
||||
|
||||
let mut button = lvgl::Button::new(&mut screen);
|
||||
|
|
Loading…
Reference in a new issue