Работа с GPIO/en: различия между версиями

(Новая страница: «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" - 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.


Установка прерывания производится путём записи значения в файл "edge". Значения могут быть:
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.


Пример:
Пример: