Jump to content
Flirc Forums

Raspberry Pi GPIO


Recommended Posts

Hi all,

 

I have an idea and I'm not sure where to get started. My idea is to create a linux daemon that would intercept keyboard combinations (ctrl-shift-1 for example) and toggle a GPIO pin on the raspberry Pi or increase/decrease PWM. I would like to use it to control LED light strings and close motor driven curtains while running Kodi. With this kind of daemon I could use any button on any remote to issue the keyboard combinations through my Flirc.

 

Any way, what I would like to know is does this sound feasable and how hard would it be?

 

Kevin Fonda

Link to comment
Share on other sites

Thanks, that looks like exectly what I was looking to do...only much easier because somebody else already did it. :-) Since I posted I did some more reading and found out the Kodi can run pyton scripts from the keyboard.xml file and  managed to get it to do What I wanted from there, but trigger happy looks like it will be better since it is at the system level and doesn't count on kodi running.

Link to comment
Share on other sites

Using Kodi keymaps and python scripts is also a nice idea. It may depend on Kodi being running correctly but it also gives ability to change keymaps depending on current app state: for example you can run different scripts (or with different arguments) for fullscreen player and different for main menu. Every method is good as long as it does what it needs to do :).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...