Tuesday 4 October 2011

Metawatch Music Controls in Firmware

Metawatch kinda has music controls but they can be kinda flaky. With my menu system in my modified firmware it was very easy to add. First I needed to send music messages to the watch but as you can't define your own messages i chose to use "GeneralPurposePhoneMsg" with an option of 0x42. The first byte in the payload would be the action. I used the constants already defined in MediaControl class.

I then added a Music menu to my firmware which took all of 10 minutes. This has none of the problems with the phone defined shortcuts overriding items. I'm in the middle of a refactor of the firmware and plan to have multiple home screens like the android launcher with the music controls being one.




All this code can be seen in these two commits:-

https://github.com/garthy/MetaWatch-WDS11x-IAR/commit/acae64ff3b50c028415405f4a9faf54691400a5f
https://github.com/garthy/MWM-for-Android/commit/89574c66b9a231b8886b33a0d8a6f24d8834b27b

No comments:

Post a Comment