Skip to content

Commit

Permalink
Make shorter line breaks in README.md to avoid horizontal scrollbars …
Browse files Browse the repository at this point in the history
…on crates.io
  • Loading branch information
Andrzej Klajnert committed Feb 24, 2021
1 parent 3a4fdd6 commit d2d6700
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ Control IKEA IDÅSEN standing desk via Bluetooth.
```rust
use idasen::{get_instance, Idasen, Device};

// instantiate the struct, this will attempt to connect to the desk and discover its characteristics
// instantiate the struct, this will attempt to connect to the desk
// and discover its characteristics
let desk: Idasen<impl Device> = get_instance()?;

// alternatively, if there's more than one desk you can get the correct one by it's mac addres
// for some reason, using MAC seems to be more reliable when it comes to device discovering
// let desk: Idasen<impl Device> = get_instance_by_mac("EC:86:F6:44:D3:31")?;
// alternatively, if there's more than one desk you can get the
// correct one by it's mac address
// for some reason, using MAC seems to be more reliable when it
// comes to device discovering:
// let desk = get_instance_by_mac("EC:86:F6:44:D3:31")?;

// move desk up and down
desk.up();
Expand All @@ -24,7 +27,8 @@ desk.down();
// stop desk from moving
desk.stop();

// move desk to desired position - minimum: 6200 (62cm), maximum: 12700 (1.27m)
// move desk to desired position:
// minimum: 6200 (62cm), maximum: 12700 (1.27m)
desk.move_to(7400);

// get the position as an integer (10 = 1mm)
Expand Down

0 comments on commit d2d6700

Please sign in to comment.