diff --git a/content/micropython/01.basics/06.board-examples/board-examples.md b/content/micropython/01.basics/06.board-examples/board-examples.md index e76570b0a6..0a45611a48 100644 --- a/content/micropython/01.basics/06.board-examples/board-examples.md +++ b/content/micropython/01.basics/06.board-examples/board-examples.md @@ -63,8 +63,8 @@ from machine import Pin, I2C lsm = LSM6DSOX(I2C(0, scl=Pin(13), sda=Pin(12))) while (True): - print('Accelerometer: x:{:>8.3f} y:{:>8.3f} z:{:>8.3f}'.format(*lsm.read_accel())) - print('Gyroscope: x:{:>8.3f} y:{:>8.3f} z:{:>8.3f}'.format(*lsm.read_gyro())) + print('Accelerometer: x:{:>8.3f} y:{:>8.3f} z:{:>8.3f}'.format(*lsm.accel())) + print('Gyroscope: x:{:>8.3f} y:{:>8.3f} z:{:>8.3f}'.format(*lsm.gyro())) print("") time.sleep_ms(100) ``` @@ -1528,4 +1528,4 @@ If you need to stop the audio streaming, you can call `.stop_streaming()`. ```python audio.stop_streaming() -``` \ No newline at end of file +```