Commit graph

39 commits

Author SHA1 Message Date
Tasuku Suzuki
43ede0b1c3
pico_st7789: Turn on backlight after first frame is drawn (#7482) 2025-01-29 18:41:38 +01:00
Olivier Goffart
404956f919 Update mipidsi dependency 2025-01-14 14:02:44 +01:00
Olivier Goffart
cfbcf0b1d7
Introduce Window::try_dispatch_event (#7313)
That is the same as Window::dispatch_event, but it reports an error
instead of panicking
2025-01-09 19:39:38 +01:00
Olivier Goffart
d00655b059
Update MCU dependencies (#6682) 2024-10-29 21:35:51 +01:00
Olivier Goffart
08009199b9 mcu-board-support: Update dependencies 2024-08-13 23:39:13 +02:00
Olivier Goffart
176ab50c8e Fix warning in MCU build 2024-04-24 19:54:01 +02:00
Tasuku Suzuki
be87ff3950 pico_st7789: Fix typo 2023-12-10 11:54:27 +01:00
Olivier Goffart
7b3b894051 Update rp_2040 deps 2023-09-13 18:11:19 +02:00
Olivier Goffart
11dea135f7 Domain: slint-ui.com -> slint.dev 2023-06-16 10:55:08 +02:00
Aurindam Jana
e4338300de
Change license for examples to MIT (#2887) 2023-06-15 11:23:17 +02:00
Olivier Goffart
656569be0d MCU: use embedded-alloc instead of alloc-cortex-m
alloc-cortex-m was renamed embedded-alloc
2023-03-09 15:47:02 +01:00
Olivier Goffart
9da4d5bd38 rp-pico: Move the initialization code to init()
So that the init_clocks_and_plls call which initialize the CPU frequency
is called before the Window initialization. This speeds up the boot
sequence a lot.

Since this involve types that cannot easily be named, keep everything as
generic types.
2023-03-08 16:38:29 +01:00
Olivier Goffart
d704f71a18 Update the version of rp2040-hal
Now to a version that actually has DMA support without needing patches
2023-02-20 11:21:41 +01:00
Olivier Goffart
6889dfa5f5 Rust: Make new(), run() and show() report errors from the backend
Fixes #2198
2023-02-10 05:00:03 +01:00
Olivier Goffart
a19efc30db
Replace the MAX_BUFFER_AGE const generic with a runtime enum
Having a const generic for that didn't turn to be a good API.
Also made the C++ side more difficult

(Also renamed buffer_stride to pixel_stride)

Closes #2135
2023-02-08 14:44:01 +01:00
Olivier Goffart
9fdfa840b8 MCU: Remove the alloc_error_handler feature
`default_alloc_error_handler` is being stabilized in Rust 1.68, so current
nightly don't need any unstable features anymore
2023-02-02 17:23:42 +01:00
Simon Hausmann
32d2ba70ca
Change WindowEvent::KeyPressed/Released to use a SharedString instead of a char (#2148)
Also, `WindowEvent` is not `Copy` anymore.

Closes #1749
2023-01-31 15:44:54 +01:00
Olivier Goffart
1aaab99666 Upgrade to rp-hal 0.6.1 to fix the CI
Note that this is actually using a marge of v0.6.1 and the branch in https://github.com/rp-rs/rp-hal/pull/457
2022-11-30 14:07:44 +01:00
Simon Hausmann
14a954f57c janitor: Don't use deprecated types 2022-11-30 11:37:10 +01:00
Florian Blasius
b87705aa56
Add mcu support to the carousel example (#1744)
The carousel example can be now also run on the supported mcu devices
2022-10-19 14:54:39 +02:00
Olivier Goffart
9bef6f519a Update to next version of st7789 2022-09-12 16:02:10 +02:00
Tobias Hunger
639dcaf702 api: Rename module swrenderer to software_renderer
Also rename the `swrenderer` feature to `software-renderer`.
2022-09-07 10:11:11 +02:00
Simon Hausmann
f648f152f9 Improve debug_log interface in the Platform
Pass Arguments and let the caller decide how/when to convert to a string.
2022-09-02 20:13:41 +02:00
Simon Hausmann
437218db70 Replace the built-in defmt debug logging to the platform trait
This way we don't have to add defmt, esp32-println and others as features to corelib and the slint api crate
(which would also expose them as public dependencies),
but instead this can be simply delegated to the Platform trait.
2022-09-02 20:13:41 +02:00
Simon Hausmann
7e5de3d5d3 Remove use of euclid types and tags for logical/physical position and size in the public API
Instead provide our own types.
2022-09-02 11:05:53 +02:00
Olivier Goffart
fb7b725182 Upgrade to rp-pico 0.5
Which implies changing from embedded_time to fugit
2022-09-01 14:19:52 +02:00
Simon Hausmann
9338d31535 Remove the use of euclid types from the software renderer public API
Closes #1538
2022-08-31 09:23:38 +02:00
Tobias Hunger
0daa2513af API cleanup: Rename PointerEvent to WindowEvent
Also rename members and related functions as specified in #1543.

Fixes: #1543
2022-08-30 16:47:55 +02:00
Tobias Hunger
3430a13bf8 API cleanup: Remove quit behavior parameter from run_event_loop 2022-08-30 08:34:45 +02:00
Olivier Goffart
9952f7e6b9 impl Deref for the SimpleSoftwareWindow 2022-08-29 19:45:29 +02:00
Olivier Goffart
3ed8ca6fc8 Introduce MinimalSoftwareWindow
This simplifies the implementation of the pico and STM, as they both
have the same PlatformWindow implementation, and is likely to be the
same for every MCU
2022-08-29 19:45:29 +02:00
Tobias Hunger
88cf874d03 API cleanup: Rename create_window to create_window_adapter 2022-08-29 16:53:47 +02:00
Tobias Hunger
1e6ffeaa0f API cleanup: Rename PlatformWindow to WindowAdapter 2022-08-29 16:53:47 +02:00
Olivier Goffart
344f5c437b swrenderer: Move the DirtyTracking enum into a const generic
Closes: 1541
2022-08-29 14:13:55 +02:00
Tobias Hunger
53053683a1 API cleanup: Rename PlatformAbstraction to Platform 2022-08-29 13:26:36 +02:00
Olivier Goffart
4f0e2608d2 Sofware renderer: keep a Weak of the Window
Closes #1545

Not that `SoftwareRenderer::new()`  takes the Weak by value instead of
by reference, because coercing a reference to a `Weak` to a `&Weak<dyn>`
is not possible, while converting a Weak to a `Weak<dyn>` just works.
2022-08-29 11:07:05 +02:00
Simon Hausmann
f239f810c8 Remove the use of i_slint_core in the pico and stm32 bsp modules 2022-08-25 12:54:52 +02:00
Simon Hausmann
c0ab435eed Reduce use of internal API in pico bsp module
What remains is

    i_slint_core::lengths::{PhysicalLength, PhysicalSize}
2022-08-25 12:54:52 +02:00
Simon Hausmann
d90b503a1c Move the mcu backend to become a board support helper crate for examples 2022-08-25 12:54:52 +02:00
Renamed from internal/backends/mcu/pico_st7789.rs (Browse further)