Skip to content

Commit

Permalink
DOCS-1367: Update I2C attributes for mpu6050 (#2298)
Browse files Browse the repository at this point in the history
  • Loading branch information
sguequierre authored Dec 7, 2023
1 parent 04ae4af commit d43abe9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 24 deletions.
Binary file modified assets/components/movement-sensor/mpu6050-builder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 5 additions & 24 deletions docs/components/movement-sensor/mpu6050.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ Then remove and fill in the attributes as applicable to your movement sensor, ac

```json {class="line-numbers linkable-line-numbers"}
{
"board": "<your-board-name>",
"i2c_bus": "<your-i2c-bus-name-on-board>",
"i2c_bus": "<your-i2c-bus-index-on-board>",
"use_alt_i2c_address": <boolean>
}
```
Expand All @@ -41,8 +40,7 @@ Then remove and fill in the attributes as applicable to your movement sensor, ac

```json {class="line-numbers linkable-line-numbers"}
{
"board": "local",
"i2c_bus": "default_i2c_bus"
"i2c_bus": "1"
}
```

Expand All @@ -61,8 +59,7 @@ Then remove and fill in the attributes as applicable to your movement sensor, ac
"type": "movement_sensor",
"namespace": "rdk",
"attributes": {
"board": "<your-board-name>",
"i2c_bus": "<your-i2c-bus-name-on-board>",
"i2c_bus": "<your-i2c-bus-index-on-board>",
"use_alt_i2c_address": <boolean>
},
"depends_on": []
Expand All @@ -77,28 +74,13 @@ Then remove and fill in the attributes as applicable to your movement sensor, ac
```json {class="line-numbers linkable-line-numbers"}
{
"components": [
{
"name": "local",
"model": "pi",
"type": "board",
"namespace": "rdk",
"attributes": {
"i2cs": [
{
"name": "default_i2c_bus",
"bus": "1"
}
]
}
},
{
"name": "my_accelgyro",
"model": "gyro-mpu6050",
"type": "movement_sensor",
"namespace": "rdk",
"attributes": {
"board": "local",
"i2c_bus": "default_i2c_bus"
"i2c_bus": "1"
}
}
]
Expand All @@ -113,8 +95,7 @@ Then remove and fill in the attributes as applicable to your movement sensor, ac
<!-- prettier-ignore -->
| Name | Type | Inclusion | Description |
| --------------------- | ------- | ------------ | ----------- |
| `board` | string | **Required** | The `name` of the [board](/components/board/) to which the device is wired. |
| `i2c_bus` | string | **Required** | The `name` of the [I<sup>2</sup>C bus configured](/components/board/#i2cs) on your [board](/components/board/) wired to this device. |
| `i2c_bus` | string | **Required** | The index of the [I<sup>2</sup>C bus](/components/board/#i2cs) on the [board](/components/board/) that your movement sensor is wired to. |
| `use_alt_i2c_address` | boolean | Optional | Depends on whether you wire AD0 low (leaving the default address of 0x68) or high (making the address 0x69). If high, set `true`. If low, set `false`. <br> Default: `false` |

## Test the movement sensor
Expand Down

0 comments on commit d43abe9

Please sign in to comment.