@pazos @ken
Quote:
Originally Posted by pazos
|
Unless mine is different then all others, its in there.
/dev/input/event2
Input driver version is 1.0.0
Input device ID: bus 0x18 vendor 0x0 product 0x0 version 0x0
Input device name: "mma7660abs"
Supported events:
Event type 0 (Sync)
Event type 3 (Absolute)
Event code 0 (X)
Value 1
Min 0
Max 0
Event code 1 (Y)
Value 19
Min 0
Max 0
Event code 2 (Z)
Value 0
Min 0
Max 0
Event code 40 (Misc)
Value 25
Min 0
Max 0
Testing ... (interrupt to exit)
>> "PORTRAIT"
Event: time 1552293573.090151 ------- Report Sync ------ x: 2 y: 21 p: 36728 ------------
Event: time 1552293573.590137 ------- Report Sync ------ x: 0 y: 21 p: 36728 ------------
Event: time 1552293574.590117 ------- Report Sync ------ x: 1 y: 20 p: 36728 ------------
Event: time 1552293575.090122 ------- Report Sync ------ x: 0 y: 19 p: 36728 ------------
Event: time 1552293575.590128 ------- Report Sync ------ x: 1 y: 22 p: 36728 ------------
Event: time 1552293576.090148 ------- Report Sync ------ x: 1 y: 20 p: 36728 ------------
Event: time 1552293576.590149 ------- Report Sync ------ x: 0 y: 22 p: 36728 ------------
>> -90 TURN to "LANDSCAPE"
Event: time 1552293577.090123 ------- Report Sync ------ x: -10 y: 18 p: 36728 ------------
Event: time 1552293577.590130 ------- Report Sync ------ x: -13 y: 15 p: 36728 ------------
Event: time 1552293578.090118 ------- Report Sync ------ x: -17 y: 11 p: 36728 ------------
Event: time 1552293578.590126 ------- Report Sync ------ x: -18 y: 7 p: 36728 ------------
>> LANDSCAPE
Event: time 1552293579.090125 ------- Report Sync ------ x: -19 y: 6 p: 36728 ------------
Event: time 1552293579.590147 ------- Report Sync ------ x: -19 y: 2 p: 36728 ------------
Event: time 1552293580.090124 ------- Report Sync ------ x: -20 y: 1 p: 36728 ------------
Event: time 1552293580.590124 ------- Report Sync ------ x: -19 y: 1 p: 36728 ------------
Event: time 1552293581.590164 ------- Report Sync ------ x: -18 y: 0 p: 36728 ------------
Event: time 1552293582.090137 ------- Report Sync ------ x: -20 y: 0 p: 36728 ------------
>> +90 TURN to "PORTRAIT"
Event: time 1552293582.590153 ------- Report Sync ------ x: -18 y: 7 p: 36728 ------------
Event: time 1552293583.090165 ------- Report Sync ------ x: -13 y: 14 p: 36728 ------------
Event: time 1552293583.590168 ------- Report Sync ------ x: -12 y: 17 p: 36728 ------------
Event: time 1552293584.090167 ------- Report Sync ------ x: -10 y: 17 p: 36728 ------------
Event: time 1552293584.590181 ------- Report Sync ------ x: -5 y: 19 p: 36728 ------------
Event: time 1552293585.090155 ------- Report Sync ------ x: -3 y: 20 p: 36728 ------------
Event: time 1552293585.590139 ------- Report Sync ------ x: -2 y: 20 p: 36728 ------------
Event: time 1552293586.090145 ------- Report Sync ------ x: -1 y: 21 p: 36728 ------------
>> "PORTRAIT"
Event: time 1552293586.590136 ------- Report Sync ------ x: 0 y: 21 p: 36728 ------------
Event: time 1552293587.090151 ------- Report Sync ------ x: -1 y: 20 p: 36728 ------------
Event: time 1552293587.590140 ------- Report Sync ------ x: -1 y: 21 p: 36728 ------------
Event: time 1552293588.590141 ------- Report Sync ------ x: -2 y: 20 p: 36728 ------------
Event: time 1552293589.090144 ------- Report Sync ------ x: -1 y: 21 p: 36728 ------------
Event: time 1552293589.590165 ------- Report Sync ------ x: 2 y: 20 p: 36728 ------------
Event: time 1552293590.090159 ------- Report Sync ------ x: -1 y: 20 p: 36728 ------------
Added a proof of concept, it works like expected