ogoffart
2171773a3e
Bump version number to 0.3.2
2022-10-28 09:30:14 +00:00
Olivier Goffart
8fa6bbb244
MCU: use a git version of the whole rp-pico crate instead of a patch of rp2040-hal
...
Since rp-pico and rp2040-hal are in the same repo now, that works.
This will prevent warnings when building things with the example
disabled
```
Patch `rp2040-hal v0.6.0 (https://github.com/slint-ui/rp-hal/?branch=dma-0.6#49af1f92 )` was not used in the crate graph.
```
2022-10-26 14:43:02 +02:00
Olivier Goffart
4bceea333d
Fix compile of the STM32h7 port, and outdated feature in the MCU readme
2022-10-19 15:34:04 +02: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
9f312102b1
Update stm32h7xx-hal
2022-10-17 16:47:36 +02:00
Olivier Goffart
34024de8ee
Update esp32s2-hal
...
btw, with the new toolchain, the artifacts (bad size of images) are gone
2022-10-17 15:58:59 +02:00
Simon Hausmann
7f0b68b224
Rephrase the flash section for the pico
...
Separate installation and usage:
1. Install elf2uf2-rs
2. Linux: unmount
3. Run elf2uf2-rs to flash
2022-09-29 09:20:16 +02:00
Simon Hausmann
afa63bbb9c
Fix command line for deploying to the pico with elf2uf2-rs
2022-09-28 13:22:23 +02:00
Simon Hausmann
1581b22042
Fix typo
2022-09-28 13:20:46 +02:00
ogoffart
261614b914
Bump version number to 0.3.1
2022-09-15 14:39:51 +02:00
Olivier Goffart
419016a356
Rename the compat feature again
...
crates.io won't let us upload a feature with dots in it:
```
Uploading slint-interpreter v0.3.0 (/home/olivier/slint/internal/interpreter)
error: failed to publish to registry at https://crates.io
Caused by:
the remote server responded with an error: invalid upload request: invalid value: string "compat-0.3.0", expected a valid feature name at line 1 column 2254
```
2022-09-14 15:55:57 +02:00
Olivier Goffart
29d05bac66
printerdemo_mcu: tweak the features
...
- rename the mcu-simulator feature to just "simulator" (the mcu is
redundent)
- Don't forward other feature than the simulator from the board support
crate. (i don't want to have to forward all features from all
examples)
- default to the simulator (doesn't compile without any feature
otherwise, leads to error in rust-analyzer)
2022-09-14 09:12:32 +02:00
Olivier Goffart
9bef6f519a
Update to next version of st7789
2022-09-12 16:02:10 +02:00
Simon Hausmann
8ee88a53c1
MCU Doc fixes ( #1615 )
...
Various edits to the introduction of how to use Slint on MCUs.
2022-09-09 08:35:01 +02:00
Simon Hausmann
2b59523a38
Fix markdown link syntax
2022-09-08 11:27:35 +02:00
Olivier Goffart
abbf1edd91
Better error message when using the software renderer with a .slint file not compiled for it
2022-09-07 17:11:57 +02:00
Olivier Goffart
8850959a2c
Rename the backend feature flags
2022-09-07 17:11:57 +02:00
Olivier Goffart
15fa69ef55
Rename the compat-0-2-0 feature to compat-0.3.0
...
But keep a compat-0-2-0 fome compatibility anyway
2022-09-07 14:09:07 +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
ogoffart
05a49da906
Bump version number to 0.3.0
2022-09-06 13:00:22 +02:00
Olivier Goffart
0085145d10
MCU documentation
2022-09-04 18:31:26 +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
Olivier Goffart
ed8fba7041
Add license header to make reuse happy
2022-09-02 11:57:27 +02:00
Olivier Goffart
7d3c47cff2
esp32: implement duration_since_start
2022-09-02 11:57:27 +02:00
Olivier Goffart
f1964e75bd
WIP: initial support of the ESP32-S2-Kaluga-1
2022-09-02 11:57:27 +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
Olivier Goffart
8fba65a282
Rename and expose the unsafe-single-threaded feature
2022-08-25 16:47:53 +02:00
Olivier Goffart
877818fa3d
Fix compilation with the "simulator"
2022-08-25 16:02:58 +02:00
Simon Hausmann
621bfe5b01
mcu bsp: remove unnecessary dependency
...
This is a leftover from the copied winit code for the simulator in the
mcu backend.
2022-08-25 13:00:54 +02:00
Simon Hausmann
587b746a7a
mcu bsp: use embedded-graphics only for the pico
2022-08-25 13:00:00 +02:00
Simon Hausmann
f9eaffdb6e
Fix stm32 build
2022-08-25 12:58:22 +02:00
Simon Hausmann
bf801cfdda
Remove mcu bsp feature dependency on i-slint-core for defmt and libm
...
Make both features of the slint crate
2022-08-25 12:54:52 +02:00
Simon Hausmann
8ed35eded1
Remove the std feature from the mcu bsp crate
...
The example can use the std feature of slint directly
2022-08-25 12:54:52 +02:00
Simon Hausmann
94d5444105
Remove swrenderer
feature dependency on i_slint_core from mcu bsp crate
...
Let `renderer-software` enable the API in `slint::platform::swrenderer` and optionally toggle winit support.
2022-08-25 12:54:52 +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
e18f118569
Reduce use of internal API in stm32 bsp module
...
What remains is
i_slint_core::lengths::{PhysicalLength, PhysicalSize}
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