package io.scanse.sweep;

import java.util.List;

public class Example {

    public static void main(String[] args) throws Exception {
        try (SweepDevice device = new SweepDevice("/dev/ttyUSB0")) {
            device.startScanning();
            while (!device.isMotorReady()) {
                Thread.sleep(10);
            }

            for (List<SweepSample> s : device.scans()) {
                System.err.println(s);
            }
        }
    }

}

@@ -214,111 +214,244 @@
     
-device.startScanning();%0A            while (!device.isMotorReady()) %7B%0A                Thread.sleep(10
+int speed = device.getMotorSpeed();%0A            int rate = device.getSampleRate();%0A%0A            System.out.println(String.format(%22Motor Speed: %25s Hz%22, speed));%0A            System.out.println(String.format(%22Sample Rate: %25s Hz%22, rate)
 );%0A
+%0A
     
@@ -458,17 +458,39 @@
         
-%7D
+device.startScanning();
 %0A%0A      

Update example to match others