-
Notifications
You must be signed in to change notification settings - Fork 56
Reading Physical Buttons
Can Selcik edited this page Mar 25, 2018
·
1 revision
Events from the physical buttons are accessible from /dev/input/event2
.
remarkable: ~/ ./evtest /dev/input/event2
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100
Input device name: "gpio-keys"
Supported events:
Event type 0 (Sync)
Event type 1 (Key)
Event code 102 (Home)
Event code 105 (Left)
Event code 106 (Right)
Event code 116 (Power)
Event code 143 (WakeUp)
Testing ... (interrupt to exit)
Event: time 1519456176.426978, type 1 (Key), code 106 (Right), value 1
Event: time 1519456176.426978, -------------- Report Sync ------------
Event: time 1519456176.706831, type 1 (Key), code 106 (Right), value 0
Event: time 1519456176.706831, -------------- Report Sync ------------