opencardev / crankshaft

Crankshaft: A turnkey GNU/Linux solution that transforms a Raspberry Pi to an Android Auto head unit.
http://getcrankshaft.com
GNU General Public License v3.0
2.17k stars 262 forks source link

Custom Device/Key Mapping #30

Open EveAeternam opened 6 years ago

EveAeternam commented 6 years ago

I don't see this as currently implemented (correct me if I'm wrong!) but would it be possible to implement custom key binding? Like if you have a USB button connected to the Pi, or a USB gadget, having said gadget do an action like "Pause/Play" or "Mute" and volume controls would be wonderful. That way people can integrate their own buttons in the car!

farmaan999 commented 6 years ago

Also if that button could turn on the listening feature for Google Assistant

EveAeternam commented 6 years ago

As long as it's mappable and bindable, I guess anything is possible!

htruong commented 6 years ago

You already can. Just that it will require some tinkering.

https://www.sparkfun.com/tutorials/337

Then map it to OpenAuto's actions. I might get some GPIO stuff going later and it's in the plan too. I plan to resolve #14 at some point.

Coedy commented 6 years ago

I'm sure everyone has seen this already but he does talk about shutdown in his newest video (he uses openauto). https://youtu.be/jFXxtxoi_pc

shimawn commented 6 years ago

What about connecting a bluetooth keyboard using something like this:

https://www.adafruit.com/product/1535

This could make it possible to build some controls into a steering wheel or anywhere else that is impractical to extend a USB cable to.

vistazifta commented 6 years ago

I'm hoping we can do this via gpio so that I can use my steering wheel controls and replace my oem headunit altogether