Работа с GPIO/en: различия между версиями
Fizikdaos (обсуждение | вклад) (Новая страница: «Via sysfs interface, you can request a change of state interrupt processor.») |
Fizikdaos (обсуждение | вклад) (Новая страница: «Setting the interrupt is done by writing the values in the file "edge". Values can be: * "none" - disable interrupt * "rising" - enable interrupt on falling edge…») |
||
Строка 83: | Строка 83: | ||
Via sysfs interface, you can request a change of state interrupt processor. | Via sysfs interface, you can request a change of state interrupt processor. | ||
Setting the interrupt is done by writing the values in the file "edge". Values can be: | |||
* "none" - | * "none" - disable interrupt | ||
* "rising" - | * "rising" - enable interrupt on falling edge | ||
* "falling" - | * "falling" - enable interrupt on the rising edge | ||
* "both" - | * "both" - enable interrupt on both edges. | ||
Пример: | Пример: |