全文搜索结果:
- esp8266快速指南 @micropython:主要硬件平台:esp8266
- p(1) # sleep for 1 second time.sleep_ms(500) # sleep for 500 milliseconds time.sleep_us(10) # sleep for 10 microseconds start = time.ti... ine import Timer tim = Timer(-1) tim.init(period=5000, mode=Timer.ONE_SHOT, callback=lambda t:print(1)... turn off PWM on the pin pwm2 = PWM(Pin(2), freq=500, duty=512) # create and configure in one go </cod
- 性能比较 @micropython
- alcTest ^chip (borad) ^freq ^ram ^ver ^100 ^500 ^1000 ^2000 ^5000 ^10000 ^100000 | |STM32F073 (Nucleo F073RZ) |32 |14400 |1.18 |101 |1516 ... 098 |947708 | |STM32L432 (Nucleo L432KC) |32 |50048 |1.18 |51 |547 |2019 |8494 |45673 |17562... |52945 |- | |iMXRT1010 (MIMXRT1010 Eval Kit) |500 |64000 |1.18 |3 |26 |88 |363 |2062 |7927
- mpl115a1驱动 @microbit:micropython:驱动库
- a level (AMSL) SCROLL_SPEED = 80 READ_INTERVAL = 5000 # milliseconds class MPL115A1: """Read pr... elf.b2 * tadc self.P = pcomp * ((1150.0 - 500.0) / 1023.0) + 500.0 self.P0 = self.P / pow(1.0 - (self.altitude / 44330.0), 5.255) se
- 圆周率计算 @micropython:开发板:rpipico:demo
- t(' ', ticks_diff(t2, t1), 'ms') for i in (100, 500, 1000, 5000, 10000): try: print('\nCalc {} bits pi'.format(i)) pi_t(i) except:... **运行结果** <code> Calc 100 bits pi 17 ms Calc 500 bits pi 190 ms Calc 1000 bits pi 665 ms Calc 5000 bits pi 19950 ms Calc 10000 bits pi 74292
- apds9930接近和环境光传感器 @micropython:mpy-lib:sensor
- 9930.APDS9930(i2c) while True: time.sleep_ms(500) apds.getALS() </code> 接近传感器(**VL** pin must... Proximity_Enable() while True: time.sleep_ms(500) apds.getProximity() </code> ---- 源码 <code
- pyboard快速指南 @micropython:主要硬件平台:stm32
- p(1) # sleep for 1 second time.sleep_ms(500) # sleep for 500 milliseconds time.sleep_us(10) # sleep for 10 microseconds start = time.ti... s1.angle(45) # move to 45 degrees s1.angle(-60, 1500) # move to -60 degrees in 1500ms s1.speed(50) # f
- 微控制器的python时事新闻 @circuitpython
- tpython-icymi-micropython-thepsf/) - 2022-02-16, [500 Adafruit Open Source Boards, CircuitPython 7.2.0-... 02/16/icymi-python-on-microcontrollers-newsletter-500-adafruit-open-source-boards-circuitpython-7-2-0-a
- esp32快速指南 @micropython:主要硬件平台:esp32
- time.sleep(1) # sleep for 1 second time.sleep_ms(500) # sleep for 500 milliseconds time.sleep_us(10) # sleep for 10 microseconds start = time.ticks_ms() # ... hine import Timer tim = Timer(-1) tim.init(period=5000, mode=Timer.ONE_SHOT, callback=lambda t:print(1)
- 麦昆的超声波驱动 @microbit:micropython:驱动库
- tp.write_digital(0) ts = time_pulse_us(ep, 1, 5000) if ts > 0: return ts * 17 // 100 return ts while True: dist = distance(pin1, pin2) print(dist) sleep(500) </code>
- 从deepsleep唤醒 @micropython:主要硬件平台:esp32
- sleep import esp32 t = TouchPad(Pin(14)) t.config(500) # configure the threshold at which the pin is co
- 圆周率 @micropython:代码和程序
- += t return c // (10 ** extra) def pi_t(n = 500): t1 = monotonic() calc_pi(n) t2 = mo
- 开源的ins_gnss导航开发板pellicanus @micropython:开发板
- 范围: ±2 g、±4 g、±8 g 或 ±16 g * 陀螺仪测量范围: ±250 dps、±500 dps、±1000 dps 或 ±2000 dps * 磁力测量范围: ±8 高斯 * 压
- bmp280气压传感器 @micropython:mpy-lib:sensor
- 280.BMP280(I2C(1)) while True: time.sleep_ms(500) b.get() </code> **驱动源码** <code python| bmp
- lsm6ds33陀螺仪传感器 @micropython:mpy-lib:sensor
- = (1, 8, 2, 4) LSM6DS33_SCALEG = ('250', '125', '500', '', '1000', '', '2000') LSM6DS33_COEG = (2, 1,