commit | 172cd97add88a8c752224593111cce0a5e02fa4d | [log] [tgz] |
---|---|---|
author | Anthony DiGirolamo <tonymd@google.com> | Thu Oct 12 19:19:16 2023 +0000 |
committer | Anthony DiGirolamo <tonymd@google.com> | Thu Oct 12 19:19:16 2023 +0000 |
tree | f2c855fdb219bb507ab9bf0c78589463b8c7a045 | |
parent | f60d70743e54523cf0657b6a363fb4acd27a3557 [diff] |
Reintroduce pw_touchscreen API with ft6236 support - Addd pw_touchscreen API and implementation for the ft6236. - An ImGui implementation will be added in a followup. Bug: b/304366246 Change-Id: Ibbb7530eacda4ee6c1010d2019ea9ed7a370e32b Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/kudzu/+/175351 Reviewed-by: Armando Montanez <amontanez@google.com>
pw build
Run either of the host build apps:
./out/gn/host_debug/obj/applications/terminal_display/bin/terminal_demo
./out/gn/host_debug/obj/applications/32blit_demo/bin/32blit_demo
picotool reboot -f -u sleep 3 picotool load -x ./out/gn/rp2040/obj/applications/terminal_display/terminal_demo.uf2
picotool reboot -f -u sleep 3 picotool load -x ./out/gn/rp2040/obj/applications/32blit_demo/32blit_demo.uf2
Put the following into /usr/lib/udev/rules.d/49-picoprobe.rules
# Pico app mode SUBSYSTEMS=="usb", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="000a", MODE:="0666" KERNEL=="ttyACM*", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="000a", MODE:="0666", SYMLINK+="rp2040" # RP2 Boot SUBSYSTEMS=="usb", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="0003", MODE:="0666" KERNEL=="ttyACM*", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="0003", MODE:="0666", SYMLINK+="rp2040" # Picoprobe SUBSYSTEMS=="usb", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="0004", MODE:="0666" KERNEL=="ttyACM*", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="0004", MODE:="0666", SYMLINK+="picoprobe"
This will also symlink /dev/picoprobe
and /dev/rp2040
to the respective vendor and product ids.
Apply the above rules with:
sudo udevadm control --reload-rules sudo udevadm trigger