admin管理员组文章数量:1026298
I am working on a kivy project to create some control panel for a ship (toggle lights etc). One of the screens I am also working on is a navigation using the kivy_garden.mapview
. This is the screen where I have an issue with.
The rest of the raspberry pi, screens, etc all work flawlessly with the touchscreen, but to zoom in/out on the navigation screen it just spaces out and appears to have a phone touch somewhere; Deduced by that a single touchpoint will just zoom in/out instead of required two. Keep in mind, all the other buttons (all single touch actions) work flawlessly. unplugging, and replugging the usb cable fixes the issue.
The map is initialized like so:
self.map = MapView(
map_source=mapsource,
zoom=14,
lat=52.51677023841208,
lon=4.788266954784756,
pause_on_action=False
)
The touchscreen is wired up hdmi0 on the pi. usb and has its own 5v power connected (did this later and didn't make a difference).
There are two solutions I am thinking on
- add code to my application to just "reset the usb connection"
- debug even more and figure out why this is precisely happening.
Any help is greatly appreciated as I am lost on this issue.
I am working on a kivy project to create some control panel for a ship (toggle lights etc). One of the screens I am also working on is a navigation using the kivy_garden.mapview
. This is the screen where I have an issue with.
The rest of the raspberry pi, screens, etc all work flawlessly with the touchscreen, but to zoom in/out on the navigation screen it just spaces out and appears to have a phone touch somewhere; Deduced by that a single touchpoint will just zoom in/out instead of required two. Keep in mind, all the other buttons (all single touch actions) work flawlessly. unplugging, and replugging the usb cable fixes the issue.
The map is initialized like so:
self.map = MapView(
map_source=mapsource,
zoom=14,
lat=52.51677023841208,
lon=4.788266954784756,
pause_on_action=False
)
The touchscreen is wired up hdmi0 on the pi. usb and has its own 5v power connected (did this later and didn't make a difference).
There are two solutions I am thinking on
- add code to my application to just "reset the usb connection"
- debug even more and figure out why this is precisely happening.
Any help is greatly appreciated as I am lost on this issue.
Share Improve this question asked Nov 18, 2024 at 10:10 SHolzhauerSHolzhauer 1442 silver badges11 bronze badges1 Answer
Reset to default 0In the end the solution was to update the .kivy/config.ini
file
[input]
mouse = none
touch = hidinput
I am working on a kivy project to create some control panel for a ship (toggle lights etc). One of the screens I am also working on is a navigation using the kivy_garden.mapview
. This is the screen where I have an issue with.
The rest of the raspberry pi, screens, etc all work flawlessly with the touchscreen, but to zoom in/out on the navigation screen it just spaces out and appears to have a phone touch somewhere; Deduced by that a single touchpoint will just zoom in/out instead of required two. Keep in mind, all the other buttons (all single touch actions) work flawlessly. unplugging, and replugging the usb cable fixes the issue.
The map is initialized like so:
self.map = MapView(
map_source=mapsource,
zoom=14,
lat=52.51677023841208,
lon=4.788266954784756,
pause_on_action=False
)
The touchscreen is wired up hdmi0 on the pi. usb and has its own 5v power connected (did this later and didn't make a difference).
There are two solutions I am thinking on
- add code to my application to just "reset the usb connection"
- debug even more and figure out why this is precisely happening.
Any help is greatly appreciated as I am lost on this issue.
I am working on a kivy project to create some control panel for a ship (toggle lights etc). One of the screens I am also working on is a navigation using the kivy_garden.mapview
. This is the screen where I have an issue with.
The rest of the raspberry pi, screens, etc all work flawlessly with the touchscreen, but to zoom in/out on the navigation screen it just spaces out and appears to have a phone touch somewhere; Deduced by that a single touchpoint will just zoom in/out instead of required two. Keep in mind, all the other buttons (all single touch actions) work flawlessly. unplugging, and replugging the usb cable fixes the issue.
The map is initialized like so:
self.map = MapView(
map_source=mapsource,
zoom=14,
lat=52.51677023841208,
lon=4.788266954784756,
pause_on_action=False
)
The touchscreen is wired up hdmi0 on the pi. usb and has its own 5v power connected (did this later and didn't make a difference).
There are two solutions I am thinking on
- add code to my application to just "reset the usb connection"
- debug even more and figure out why this is precisely happening.
Any help is greatly appreciated as I am lost on this issue.
Share Improve this question asked Nov 18, 2024 at 10:10 SHolzhauerSHolzhauer 1442 silver badges11 bronze badges1 Answer
Reset to default 0In the end the solution was to update the .kivy/config.ini
file
[input]
mouse = none
touch = hidinput
本文标签: pythontouchscreen raspberry pi phantom touch (reset fixes)Stack Overflow
版权声明:本文标题:python - touchscreen raspberry pi phantom touch (reset fixes) - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745627393a2159947.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论