Commit graph

183 commits

Author SHA1 Message Date
Olivier Goffart
a1576e655e MCU: New version of ft5336 was released that doesn't need a git dependency anymore
Also upgrade stm32h7xx-hal which seems to have no breaking changes
2023-05-16 15:32:12 +02:00
Olivier Goffart
60110fdd75
Update MCU README.md
remove experimental
2023-04-26 16:27:28 +02:00
ogoffart
dfd5fc38b3 Bump version number to 1.0.3 2023-04-26 14:04:08 +00:00
ogoffart
53cce5bf44 Bump version number to 1.0.2 2023-04-26 11:33:16 +02:00
ogoffart
bd63218412 Bump version number to 1.0.1 2023-04-18 14:56:40 +00: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
187e62b776 esp32_s3_box: Try to empty the queue of events between each frame
Makes the scroll in the printer demo feel much less slugish

I have no idea what's the size of the queue so I just added came up with
an arbitrary number
2023-03-09 10:46:28 +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
Simon Hausmann
cc41d9de47 stm32h7: Add support for getrandom()
Use getrandom's way of injecting a custom source for getrandom().
2023-03-08 09:27:37 +01:00
Simon Hausmann
5fdb8cc449
stm32h7: Move peripherals initialization to the init() function (#2342)
This will allow for initializing other peripherals such as the RNG and
using them before run_event_loop().
2023-03-07 16:55:43 +01:00
Olivier Goffart
31f882e05c MCU: Update ESP32 deps
Also enable target-feature=-fp flag on the S3 Box as it miscompiles
otherwise
2023-03-06 18:10:35 +01:00
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