Linux2025. 7. 17. 17:11

gpio를 매번 읽지 않고 이벤트 방식으로 확인할 수 있는 유틸리티

#  gpiomon -c 0 14                                             
224.921879250   rising  gpiochip0 14                                            
226.677878000   falling gpiochip0 14                                            
228.376900625   rising  gpiochip0 14                                            
230.884914250   falling gpiochip0 14   

[링크 : https://stackoverflow.com/questions/78070072/gpiod-not-detecting-rising-edge-but-sysfs-implementation-did]

[링크 : https://github.com/brgl/libgpiod/blob/master/tools/gpiomon.c]

'Linux' 카테고리의 다른 글

dd 로 덤프 하면서 바로 압축하기  (0) 2025.07.24
scrub  (0) 2025.02.04
Block SCSI generic (bsg) driver  (0) 2024.04.16
lsusb -v 로 본 장치(HID MT, mouse)  (0) 2024.03.08
systemd 지연된 시작  (0) 2024.02.29
Posted by 구차니