Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
85 views
in Technique[技术] by (71.8m points)

python keyboard library raspberry pi

so I'm working on building a robot on my raspberry pi 3B+ and I wanted to control the motors with my wireless keyboard I bought. I downloaded the python library keyboard which is what I've used in the past for projects on my pc. the import works fine but when I try to use the keyboard.is_pressed() it says that I have to be signed into a the root account. it took me some time but I figured how to get into that but I realized that I lose all of my scripts and data if I sign into root. I found I can kinda do the same thing with pygame but I don't really like that way. is there anyway I can get around the root restrict or get all my data from my main account to root.

question from:https://stackoverflow.com/questions/65866559/python-keyboard-library-raspberry-pi

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...