Fu Hanxi 0146f258d7 style: format python files with isort and double-quote-string-fixer před 5 roky
..
main 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) před 5 roky
CMakeLists.txt d51a62e33a dedicated gpio: matrix keyboard example před 5 roky
Makefile 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) před 5 roky
README.md d51a62e33a dedicated gpio: matrix keyboard example před 5 roky
example_test.py 0146f258d7 style: format python files with isort and double-quote-string-fixer před 5 roky

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