648 views
in Getting started by
Hi,

According to the below guide, I've managed to up and running EW example on Raspberry Pi 3 board.

http://doc.embedded-wizard.de/getting-started-raspberrypi

However, the touch sensor doesn't work in this example even tough the board is capable of getting touch action.

Could you please let me know how to enable the touch sensor in this example?

Regards,

Wonho

1 Answer

0 votes
by

Hi Wonho,

The current implementations of the GUI applications within the 'Examples' folder are all set-up to use

/dev/input/event0

as touch input device. If you have attached a keyboard or mouse to your Raspberry Pi, then it could be that the touch controller is assigned to a different id. You can found out the names and other attributes of the attached input devices by executing

cat /proc/bus/input/devices

on your shell. Then please adapt the adequate device within the TouchEventThread() of your main.c.

Best regards,

Manuel

by

Hi Manuel,

In my RP3 board, the touch input is assigned to event2.

So, I changed one line as below and it works well!

  touchDev = open( "/dev/input/event2", O_RDONLY );

Thank you very much for your prompt answer.

Regards,

Wonho

Embedded Wizard Website | Privacy Policy | Imprint

...