def __init__ (self, i2cBus, dps):
        self.bus = SMBus(i2cBus)
        self.bus.write_byte_data(Gyroscope.L3GADDR, Gyroscope.CTREG1, Gyroscope.ON)
        self.bus.write_byte_data(Gyroscope.L3GADDR, Gyroscope.CTREG4, dps)
        if dps == Gyroscope.DPS250:
            self.scale = 250.0/32768.0
        if dps == Gyroscope.DPS500:
            self.scale = 500.0/32768.0
        if dps == Gyroscope.DPS2000:
            self.scale = 2000.0/32768.0
dataset/ETHPy150Open ericboehlke/BB-8/IMU.py/Gyroscope.__init__/original