Skip to content

Instantly share code, notes, and snippets.

@ciniml
Created August 15, 2019 06:05
Show Gist options
  • Select an option

  • Save ciniml/cf10115dec1dbb3bfc1455452c8b30ca to your computer and use it in GitHub Desktop.

Select an option

Save ciniml/cf10115dec1dbb3bfc1455452c8b30ca to your computer and use it in GitHub Desktop.
M5StackFire IMU Check on REPL
MicroPython v1.11-127-g71019d174 on 2019-08-02; ESP32 module with ESP32
Type "help()" for more information.
>>>
>>>
>>> import machine
>>> i2c = machine.I2C(1, sda=21, scl=22, speed=400000)
>>> i2c.scan()
[14, 104, 117]
>>> [hex(x) for x in i2c.scan()]
['0xe', '0x68', '0x75']
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment