<gh_stars>0
import ev3dev.ev3 as ev3

class UsSensor:
    def __init__(self):
        self.usS = ev3.UltrasonicSensor()
        self.usS.mode = 'US-DIST-CM'
        # distance in cm
        distance = self.usS.value()

    #displays measured data
    def get_value(self):
        #print(self.usS.bin_data())
        return self.usS.value()


import ev3dev.ev3 as ev3

class UsSensor:
    def __init__(self):
        self.usS = ev3.UltrasonicSensor()
        self.usS.mode = 'US-DIST-CM'
        # distance in cm
        distance = self.usS.value()

    #displays measured data
    def get_value(self):
        #print(self.usS.bin_data())
        return self.usS.value()
# distance in cm #displays measured data #print(self.usS.bin_data())