esp-idf/examples/peripherals/gpio/generic_gpio
Angus Gratton 66fb5a29bb Whitespace: Automated whitespace fixes (large commit)
Apply the pre-commit hook whitespace fixes to all files in the repo.

(Line endings, blank lines at end of file, trailing whitespace)
2020-11-11 07:36:35 +00:00
..
main Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
CMakeLists.txt dedicated gpio: matrix keyboard example 2020-10-20 21:06:10 +08:00
example_test.py dedicated gpio: matrix keyboard example 2020-10-20 21:06:10 +08:00
Makefile Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
README.md dedicated gpio: matrix keyboard example 2020-10-20 21:06:10 +08:00

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