mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
821c70f5d7
* Use "example" in all example function & variable names, ie use i2c_example_xxx instead of i2c_xxx for example functions. Closes #198 https://github.com/espressif/esp-idf/issues/198 * Mark example functions, etc. static * Replace uses of "test" & "demo" with "example" * Split the UART example into two * Rename "main" example files to end with "_main.c" for disambiguation |
||
---|---|---|
.. | ||
main | ||
Makefile | ||
README.md |
Example: GPIO
###This test code shows how to configure gpio and how to use gpio interrupt.
####GPIO functions:
- GPIO18: output
- GPIO19: output
- GPIO4: input, pulled up, interrupt from rising edge and falling edge
- GPIO5: input, pulled up, interrupt from rising edge.
####Test:
- Connect GPIO18 with GPIO4
- Connect GPIO19 with GPIO5
- Generate pulses on GPIO18/19, that triggers interrupt on GPIO4/5