Renz Christian Bagaporo 6771eead80 examples: use new component registration api 6 лет назад
..
main 6771eead80 examples: use new component registration api 6 лет назад
CMakeLists.txt d9939cedd9 cmake: make main a component again 7 лет назад
Makefile 382999b378 Moved examples to new folders / categories. Removed example numbers from example names 9 лет назад
README.md 264315ab81 Fix markdown and format of GPIO example README 8 лет назад

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