

Xdotool search –name CapacitanceVisualizer key F11 F1 KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add” home/pi/ft5406-capacitive-touch/CapacitanceVisualizer/CapacitanceVisualizer & I could then run CapacitanceVisualizer to display the scan.įor ease of use, I made a shell script (“launch.sh”) that called the program and maxed out the zoom, as follows: (If any changes are made and you need to recompile, you’ll also need to make aĬhange to “main.cpp” and then make again). “make prepare” from within ft5406-capacitive-touch/CapacitanceVisualizer (You can also install i2c-tools, or the prepare step below will do it for you) To install the code I did the following (these steps may be obvious to others, but they weren’t all obvious to me!): The second change increases the max zoom to fit my display screen, and might not work with all screens.) The first reverses the scan order so the image is the same horizontal orientation as the screen on the back. (These changes were for my preferred use and display style. In SDLEventHandler.hpp, changed line 55 to “_zoom = std::min(50, _zoom + 1) ” In FT5406.hpp, changed line 83 to “for (int rowAddr = rows rowAddr > 0 rowAddr–)” I also updated the console version of raspi-config and enabled Full KMS (Under GL settings) to get the external HDMI screen to take priority over the displayport screen.įor the software, I used Optisimon’s code, with a few tweaks as follows: I also added a line to config.txt enabling the shutdown overlay.

I changed the /boot/config.txt and raspi-config settings as described on Optisimon’s page to enable I2C and disable touch input from the bottom screen. It seemd to be the right age to work with the 2016 code, but still new enough to work with the Pi 3B. I used Rasbian Stretch as the OS on the Pi. Momentary push button with jumper cables for shutdown trigger. USB battery pack with two high-power output ports. (9.0″ x 5.9″ x 3.4″) ABS project enclosure (other sizes might work). Screen protector for above (since we’ll be sliding it on surfaces) ( Note, only older ones with the FT5406 chip will work!) Raspberry Pi 3 B (Other models might work, but this is the same as the original project used). For the hardware side of this, I used the following:
