Skip to content

Commit

Permalink
Add migration guide entry
Browse files Browse the repository at this point in the history
  • Loading branch information
rfuest committed Feb 2, 2024
1 parent 7850123 commit 59f83d1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions mipidsi/docs/MIGRATION.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Migration guide for MIPIDSI driver

## v0.7 -> 0.8

### Users

* The model specific constructors (like `Builder::ili9341_rgb565`) have been removed. Use the generic `Builder::new` constructor instead:
```rust
// 0.7
use mipidsi::Builder;
let display = Builder::ili9341_rgb565(di).init(&mut delay, Some(rst))?;

// 0.8
use mipidsi::{Builder, models::ILI9341Rgb565};
let display = Builder::new(ILI9341Rgb565, di).init(&mut delay, Some(rst))?;
```

## v0.6 -> 0.7

No breaking changes.
Expand Down

0 comments on commit 59f83d1

Please sign in to comment.