Skip to content

Commit

Permalink
Fix interrupt pin type and add example (#3088)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebriskin authored Jul 1, 2024
1 parent 6ebd8f2 commit ac566d7
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions docs/build/micro-rdk/board/esp32.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ images: ["/icons/components/board.svg"]
tags: ["board", "components"]
aliases:
- /micro-rdk/board/esp32/
# SMEs: Gautham, Rand
# SMEs: Gautham, Nico, Andrew
---

{{% alert title="REQUIREMENTS" color="caution" %}}
Expand Down Expand Up @@ -54,6 +54,11 @@ Copy the following JSON template and paste it into your configuration inside the
"pin": <int>,
"name": "<your-analog-name>"
}
],
"digital_interrupts" : [
{
"pin": <int>
}
]
},
"depends_on": []
Expand All @@ -76,6 +81,11 @@ Copy the following JSON template and paste it into your configuration inside the
"pin": "34",
"name": "sensor"
}
],
"digital_interrupts": [
{
"pin": 4
}
]
},
"depends_on": []
Expand Down Expand Up @@ -132,7 +142,7 @@ The following properties are available for `digital_interrupts`:
<!-- prettier-ignore -->
| Name | Type | Required? | Description |
| ---- | ---- | --------- | ----------- |
|`pin`| string | **Required** | The GPIO number of the board's GPIO pin that you wish to configure the digital interrupt for. |
|`pin`| integer | **Required** | The GPIO number of the board's GPIO pin that you wish to configure the digital interrupt for. |

### PWM signals on `esp32` pins

Expand Down

0 comments on commit ac566d7

Please sign in to comment.