全文搜索结果:
- lsm6dso陀螺仪传感器 @micropython:mpy-lib:sensor
- ', '', '2000') class LSM6DSO(): def __init__(self, i2c, addr = 0x6B): self.i2c = i2c self.addr = addr self.tb = bytearray(1) self.rb = bytearray(1) self.oneshot = False
- lsm6ds33陀螺仪传感器 @micropython:mpy-lib:sensor
- 0, 8, 0, 16) class LSM6DS33(): def __init__(self, i2c, addr = 0x6B): self.i2c = i2c self.addr = addr self.tb = bytearray(1) self.rb = bytearray(1) self.irq_v = [[0, 0,
- lsm303ah @micropython:mpy-lib:sensor
- const(0x6C) class LSM303AH(): def __init__(self, i2c): self.i2c = i2c self.tb = bytearray(1) self.rb = bytearray(1) if self.getreg(LSM303AH_ADDR_A, 15) != 0x43 an
- bme280温湿度气压传感器 @micropython:mpy-lib:sensor
- R = const(0x76) class BME280(): def __init__(self, i2c): self.i2c = i2c self.dig_T1 = self.get2Reg(0x88) self.dig_T2 = self.short(self.get2Reg(0x8A)) self.dig_T3 =
- hts221 @micropython:mpy-lib:sensor
- mport I2C class HTS221(object): def __init__(self, i2c): self.i2c = i2c self.addr = 0x5F # data buffer self.tb = bytearray(1) self.rb = bytearray(1)
- lis2dw12 @micropython:mpy-lib:sensor
- '8g', '16g') class LIS2DW12(): def __init__(self, i2c, addr = 0x19): self.i2c = i2c self.addr = addr self.tb = bytearray(1) self.rb = bytearray(1) self.oneshot = False
- bmp280气压传感器 @micropython:mpy-lib:sensor
- R = const(0x76) class BMP280(): def __init__(self, i2c): self.i2c = i2c self.tb = bytearray(1) self.rb = bytearray(1) self.dig_T1 = self.get2Reg(0x88) self.
- pcf8563实时时钟 @micropython:mpy-lib:misc
- = const(8) class PCF8563(): def __init__(self, i2c): self.i2c = i2c self.tb = bytearray(1) self.rb = bytearray(1) self.buf = bytearray(7) self.DT = [0]
- ds3231高精度rtc @micropython:mpy-lib:misc
- R_MONTH = (5) class DS3231(): def __init__(self, i2c): self.i2c = i2c self.setReg(DS3231_REG_CTRL, 0x4C) def DecToHex(self, dat): return (dat//10) * 16 + (dat%10)
- bmp280气压传感器 @microbit:micropython:驱动库
- 80_I2C_ADDR = 0x76 class BMP280(): def __init__(self): self._T1 = self._g2r(0x88) self._T2 = self.short(self._g2r(0x8A)) self._T3 = self.short(self._g2r(0x8C)) self._P1
- lis2mdl @micropython:mpy-lib:sensor
- = const(0x6C) class LIS2MDL(): def __init__(self, i2c): self.i2c = i2c self.addr = 0x1E self.tb = bytearray(1) self.rb = bytearray(1) # TEMP_EN=1 LP=0 ODR=
- microbit模拟时钟 @microbit:趣味程序:makecode
- G_RAM = (0xC0) class DS1302: def __init__(self, clk, dio, cs): self.clk = clk self.dio = dio self.cs = cs def DecToHex(self, dat): return (dat//10) * 16 + (dat%10)
- lps22气压传感器 @micropython:mpy-lib:sensor
- L = const(0x29) class LPS22(): def __init__(self, i2c, addr = 0x5D): self.i2c = i2c self.addr = addr self.tb = bytearray(1) self.rb = bytearray(1) self.oneshot = False
- snes_控制器 @microbit:趣味程序:micropython
- t up which micro:bit pins to use def __init__(self, latch, clock, data): self.latch = latch self.clock = clock self.data = data # take a reading and return a 16bit integer def getReadi
- apds9930接近和环境光传感器 @micropython:mpy-lib:sensor
- = (1, 2, 4, 8) class APDS9930: def __init__(self, i2c): self.i2c = i2c self.ATIME(256 - 8) self.setReg(APDS9930_ENABLE, 0) self.setReg(APDS9930_ATIME, 0xFF)