From b8aae334b76fce6145d086e4b0ccc7f4f8ea01c4 Mon Sep 17 00:00:00 2001 From: FDonkers <143848224+FDonkers@users.noreply.github.com> Date: Mon, 20 Nov 2023 10:04:18 +0100 Subject: [PATCH] Update board-examples.md renamed function calls to 'LSM6DSOX' library because library uses different function names. --- .../01.basics/06.board-examples/board-examples.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 +```