Skip to content

Commit

Permalink
Merge pull request #135 from rfuest/migration
Browse files Browse the repository at this point in the history
Update migration guide
  • Loading branch information
almindor authored May 23, 2024
2 parents decf11f + 776bbf2 commit bdfd6b8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion docs/MIGRATION.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Migration guide for MIPIDSI driver
# Migration guide for `mipidsi` crate

## v0.7 -> 0.8

### Users

* The dependencies for the `embedded-hal` and `display-interface` crates have been updated to make `mipidsi` compatible with the 1.0 release of `embedded-hal`.

* The model specific constructors (like `Builder::ili9341_rgb565`) have been removed. Use the generic `Builder::new` constructor instead:
```rust
// 0.7
Expand Down Expand Up @@ -48,6 +50,14 @@
.init(&mut delay)?;
```

* The default values for the `invert_colors` and `color_order` settings were inconsistent between different models in `mipidsi` 0.7. In 0.8 all models use the same default values with no color inversion and RGB subpixel order. Take a look at the [troubleshooting guide](https://github.com/almindor/mipidsi/blob/master/docs/TROUBLESHOOTING.md#incorrect-colors) if your display shows incorrect colors after the update.

### Model writers

* The `default_options` function has been removed from the `Model` trait to make the default options consistent between the models. The maximum framebuffer size is now defined by the added `FRAMEBUFFER_SIZE` constant.

* The type of the `DELAY` parameter in the `init` method has been changed to the `embedded-hal` 1.0 type `DelayNs`.

## v0.6 -> 0.7

No breaking changes.
Expand Down
2 changes: 1 addition & 1 deletion mipidsi/examples/parallel_ili9341_rp_pico/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version = "0.1.0"

[dependencies]
cortex-m = "0.7.7"
cortex-m-rt = "0.7.4"
cortex-m-rt = "0.7.3"
embedded-hal = "1.0.0"

defmt = "0.3.6"
Expand Down

0 comments on commit bdfd6b8

Please sign in to comment.