mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Update examples in comments.
This commit is contained in:
parent
559d375b1d
commit
b162d4d5a4
@ -4,7 +4,7 @@ Base on: LSM9DS1 driver and https://github.com/arduino-libraries/Arduino_LSM6DSO
|
||||
|
||||
Example usage:
|
||||
import time
|
||||
import lsm6dsox
|
||||
from lsm6dsox import LSM6DSOX
|
||||
|
||||
from machine import Pin, I2C
|
||||
lsm = LSM6DSOX(I2C(0, scl=Pin(13), sda=Pin(12)))
|
||||
|
||||
@ -30,8 +30,9 @@ Source repo: https://github.com/hoihu/projects/tree/master/raspi-hat
|
||||
|
||||
Example usage:
|
||||
import time
|
||||
import lsm9ds1
|
||||
from lsm9ds1 import LSM9DS1
|
||||
from machine import Pin, I2C
|
||||
|
||||
lsm = LSM9DS1(I2C(1, scl=Pin(15), sda=Pin(14)))
|
||||
|
||||
while (True):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user