Commit graph

72 commits

Author SHA1 Message Date
Olivier Goffart
90314cbaf7 esp32_s3_box: adjust frequencies 2023-02-22 17:24:25 +01:00
Olivier Goffart
5850e5655e esp32_s3_box: Implement unimplemented function
Fixes panic when touching the screen on the carousel demo
2023-02-21 12:30:13 +01:00
Olivier Goffart
8a299fbff2 esp32_s3_box: Touch driver 2023-02-21 12:30:13 +01:00
Olivier Goffart
066ecaacce esp32_s3_box: fix red and blue being inverted 2023-02-21 12:30:13 +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
792a5bbd23 Janitor: Update esp32 dependencies
(I did compile the code for the s3 box, but did not try it as i don't
have the hardware)
2023-02-17 15:27:43 +01:00
Olivier Goffart
8450e01a3f
Change the name of the compat feature (#2230)
And remove the compat-0-2-0 and compat-0-3-0 features
2023-02-16 09:40:44 +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
ogoffart
e7f48512ee Bump version number to 1.0.0 2023-02-03 11:07:15 +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
ogoffart
ce07d078ce Bump version number to 0.3.4 2022-12-16 09:36:15 +00: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
a1808a175c janitor: Don't use deprecated types 2022-11-30 11:43:41 +01:00
Simon Hausmann
14a954f57c janitor: Don't use deprecated types 2022-11-30 11:37:10 +01:00
ogoffart
fb02b4118b Bump version number to 0.3.3 2022-11-28 13:11:11 +00:00
Simon Hausmann
809255ea56 Remove the hard-coded USB port from the sample command line
This way the command line can be copied and pasted into a terminal, even
when the USB port differs (for example on macOS). Instead, this now
defaults to a command line that makes espflash prompt, but the added
text explains how to shortcut that.
2022-11-21 15:29:49 +01:00
Simon Hausmann
9c7cb54b34 mcu: Add support for the ESP32-S3 box
This is a work-in-progress.

Similar to the S2 Kaluga board, this provides the basic support for
showing pixels on the screen of the S3 Box. There is no support for
touch input yet, or any of the button peripherals. There is also a bug
somewhere that causes the printerdemo_mcu to raise an uncaught
exception. Only a content-reduced version of the printer demo shows on
the screen.
2022-11-21 15:29:49 +01:00
Simon Hausmann
f3b3519278 Fix typo 2022-11-21 15:29:49 +01:00
Simon Hausmann
85df47966e Remove stray whitespace 2022-11-18 19:42:29 +01:00
Simon Hausmann
3ca1fbde88 janitor: remove duplicate crate dependency 2022-11-15 12:08:48 +01:00
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