From d2d67008b94944dff351ad0ac66e4c2b3b10ac36 Mon Sep 17 00:00:00 2001 From: Andrzej Klajnert Date: Wed, 24 Feb 2021 10:16:23 +0100 Subject: [PATCH] Make shorter line breaks in README.md to avoid horizontal scrollbars on crates.io --- README.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c8daa55..a3ef415 100644 --- a/README.md +++ b/README.md @@ -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 = 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 = 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(); @@ -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)